single_switch_with_backlight.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. name: Timer
  13. icon: "mdi:timer"
  14. category: config
  15. dps:
  16. - id: 7
  17. name: value
  18. type: integer
  19. range:
  20. min: 0
  21. max: 86400
  22. mapping:
  23. - scale: 60
  24. step: 60
  25. unit: min
  26. - entity: select
  27. category: config
  28. name: "Restore Power State"
  29. icon: "mdi:toggle-switch"
  30. dps:
  31. - id: 14
  32. name: option
  33. type: string
  34. mapping:
  35. - dps_val: last
  36. value: "Remember Last Status"
  37. - dps_val: power_on
  38. value: "On"
  39. - dps_val: power_off
  40. value: "Off"
  41. - entity: select
  42. category: config
  43. name: "Backlight Mode"
  44. icon: "mdi:television-ambient-light"
  45. dps:
  46. - id: 15
  47. name: option
  48. type: string
  49. mapping:
  50. - dps_val: relay
  51. value: "Indicate On/Off"
  52. - dps_val: pos
  53. value: "Indicate Location"
  54. - dps_val: none
  55. value: "Off"
  56. - entity: light
  57. name: "Backlight"
  58. category: config
  59. dps:
  60. - id: 16
  61. name: switch
  62. type: boolean
  63. mapping:
  64. - dps_val: true
  65. icon: "mdi:lightbulb-on"
  66. - dps_val: false
  67. icon: "mdi:lightbulb-outline"