somgom_single_switch.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: Wall switch
  2. products:
  3. - id: nqodepctqralr6su
  4. name: Novadigital switch
  5. - id: vxo9yezswiumvync
  6. name: PST WT-E1
  7. primary_entity:
  8. entity: switch
  9. dps:
  10. - id: 1
  11. name: switch
  12. type: boolean
  13. secondary_entities:
  14. - entity: number
  15. name: Timer
  16. icon: "mdi:timer"
  17. category: config
  18. dps:
  19. - id: 7
  20. name: value
  21. type: integer
  22. range:
  23. min: 0
  24. max: 86400
  25. mapping:
  26. - scale: 60
  27. unit: min
  28. - entity: select
  29. name: Initial state
  30. icon: "mdi:toggle-switch"
  31. category: config
  32. dps:
  33. - id: 14
  34. type: string
  35. name: option
  36. optional: true
  37. mapping:
  38. - conditions:
  39. - dps_val: ["0", "1", "2"]
  40. mapping:
  41. - dps_val: "0"
  42. value: "Off"
  43. - dps_val: "1"
  44. value: "On"
  45. - dps_val: "2"
  46. value: Last state
  47. - dps_val: ["memory", "off", "on"]
  48. mapping:
  49. - dps_val: "off"
  50. value: "Off"
  51. - dps_val: "on"
  52. value: "On"
  53. - dps_val: memory
  54. value: Last state
  55. - entity: light
  56. name: Backlight
  57. category: config
  58. dps:
  59. - id: 16
  60. name: switch
  61. type: boolean