single_switch_with_backlight.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. name: "Backlight Mode"
  42. icon: "mdi:television-ambient-light"
  43. dps:
  44. - id: 15
  45. name: option
  46. type: string
  47. mapping:
  48. - dps_val: relay
  49. value: "Indicate On/Off"
  50. - dps_val: pos
  51. value: "Indicate Location"
  52. - dps_val: none
  53. value: "Off"
  54. - entity: light
  55. translation_key: backlight
  56. category: config
  57. dps:
  58. - id: 16
  59. name: switch
  60. type: boolean