services.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. rename_device_service:
  2. name: Example 101 Rename API device
  3. description: >
  4. Change the name of a device on the example API
  5. fields:
  6. device_id:
  7. name: Device ID
  8. description: The device ID to rename
  9. example: 1
  10. required: true
  11. selector:
  12. number:
  13. min: 1
  14. step: 1
  15. mode: box
  16. name:
  17. name: Device name
  18. description: New name for the device
  19. example: "Kitchen Light 3"
  20. required: true
  21. selector:
  22. text:
  23. response_service:
  24. name: Example 101 Response Service
  25. description: A simple response service
  26. fields:
  27. device_id:
  28. name: Device ID
  29. description: The name of the entity to perform the service on
  30. example: 1
  31. required: true
  32. selector:
  33. number:
  34. min: 1
  35. step: 1
  36. mode: box
  37. set_off_timer:
  38. name: Set off timer
  39. decription: Set an off timer for a light
  40. target:
  41. entity:
  42. integration: msp_integration_101_intermediate
  43. domain:
  44. - light
  45. fields:
  46. off_time:
  47. name: "Turn off in"
  48. description: "The time to countdown to turn off"
  49. example: "12:00:00"
  50. default: "12:00:00"
  51. required: true
  52. selector:
  53. time: