single_switch_with_backlight.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: Single Switch With Backlight
  2. products:
  3. - id: gbdzignerqxddcuj
  4. entities:
  5. - entity: switch
  6. dps:
  7. - id: 1
  8. name: switch
  9. type: boolean
  10. - entity: number
  11. class: duration
  12. translation_key: timer
  13. category: config
  14. dps:
  15. - id: 7
  16. name: value
  17. type: integer
  18. range:
  19. min: 0
  20. max: 86400
  21. mapping:
  22. - scale: 60
  23. step: 60
  24. unit: min
  25. - entity: select
  26. category: config
  27. translation_key: initial_state
  28. dps:
  29. - id: 14
  30. name: option
  31. type: string
  32. mapping:
  33. - dps_val: last
  34. value: memory
  35. - dps_val: power_on
  36. value: "on"
  37. - dps_val: power_off
  38. value: "off"
  39. - entity: select
  40. category: config
  41. translation_key: light_mode
  42. dps:
  43. - id: 15
  44. name: option
  45. type: string
  46. mapping:
  47. - dps_val: relay
  48. value: state
  49. - dps_val: pos
  50. value: locator
  51. - dps_val: none
  52. value: "off"
  53. - entity: light
  54. translation_key: backlight
  55. category: config
  56. dps:
  57. - id: 16
  58. name: switch
  59. type: boolean