somgom_single_switch.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. translation_key: timer
  16. category: config
  17. dps:
  18. - id: 7
  19. name: value
  20. type: integer
  21. range:
  22. min: 0
  23. max: 86400
  24. mapping:
  25. - scale: 60
  26. unit: min
  27. - entity: select
  28. name: Initial state
  29. icon: "mdi:toggle-switch"
  30. category: config
  31. dps:
  32. - id: 14
  33. type: string
  34. name: option
  35. optional: true
  36. mapping:
  37. - conditions:
  38. - dps_val: ["0", "1", "2"]
  39. mapping:
  40. - dps_val: "0"
  41. value: "Off"
  42. - dps_val: "1"
  43. value: "On"
  44. - dps_val: "2"
  45. value: Last state
  46. - dps_val: ["memory", "off", "on"]
  47. mapping:
  48. - dps_val: "off"
  49. value: "Off"
  50. - dps_val: "on"
  51. value: "On"
  52. - dps_val: memory
  53. value: Last state
  54. # during startup there may be no value, but we need the options
  55. - dps_val: null
  56. mapping:
  57. - dps_val: "off"
  58. value: "Off"
  59. - dps_val: "on"
  60. value: "On"
  61. - dps_val: memory
  62. value: "Last state"
  63. - entity: light
  64. name: Backlight
  65. category: config
  66. dps:
  67. - id: 16
  68. name: switch
  69. type: boolean