somgom_single_switch.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: Wall switch
  2. products:
  3. - id: nqodepctqralr6su
  4. manufacturer: Novadigital
  5. - id: vxo9yezswiumvync
  6. manufacturer: PST
  7. model: WT-E1
  8. entities:
  9. - entity: switch
  10. dps:
  11. - id: 1
  12. name: switch
  13. type: boolean
  14. - entity: number
  15. translation_key: timer
  16. class: duration
  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. translation_key: initial_state
  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: memory
  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: memory
  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: memory
  63. - entity: light
  64. translation_key: backlight
  65. category: config
  66. dps:
  67. - id: 16
  68. name: switch
  69. type: boolean