single_switch_with_backlight.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: Single Switch With Backlight
  2. products:
  3. - id: gbdzignerqxddcuj
  4. primary_entity:
  5. entity: switch
  6. dps:
  7. - id: 1
  8. name: switch
  9. type: boolean
  10. secondary_entities:
  11. - entity: number
  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. name: "Restore Power State"
  28. icon: "mdi:toggle-switch"
  29. dps:
  30. - id: 14
  31. name: option
  32. type: string
  33. mapping:
  34. - dps_val: last
  35. value: "Remember Last Status"
  36. - dps_val: power_on
  37. value: "On"
  38. - dps_val: power_off
  39. value: "Off"
  40. - entity: select
  41. category: config
  42. name: "Backlight Mode"
  43. icon: "mdi:television-ambient-light"
  44. dps:
  45. - id: 15
  46. name: option
  47. type: string
  48. mapping:
  49. - dps_val: relay
  50. value: "Indicate On/Off"
  51. - dps_val: pos
  52. value: "Indicate Location"
  53. - dps_val: none
  54. value: "Off"
  55. - entity: light
  56. name: "Backlight"
  57. category: config
  58. dps:
  59. - id: 16
  60. name: switch
  61. type: boolean
  62. mapping:
  63. - dps_val: true
  64. icon: "mdi:lightbulb-on"
  65. - dps_val: false
  66. icon: "mdi:lightbulb-outline"