somgom_single_switch.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. translation_key: initial_state
  29. category: config
  30. dps:
  31. - id: 14
  32. type: string
  33. name: option
  34. optional: true
  35. mapping:
  36. - conditions:
  37. - dps_val: ["0", "1", "2"]
  38. mapping:
  39. - dps_val: "0"
  40. value: "off"
  41. - dps_val: "1"
  42. value: "on"
  43. - dps_val: "2"
  44. value: memory
  45. - dps_val: ["memory", "off", "on"]
  46. mapping:
  47. - dps_val: "off"
  48. value: "off"
  49. - dps_val: "on"
  50. value: "on"
  51. - dps_val: memory
  52. value: memory
  53. # during startup there may be no value, but we need the options
  54. - dps_val: null
  55. mapping:
  56. - dps_val: "off"
  57. value: "off"
  58. - dps_val: "on"
  59. value: "on"
  60. - dps_val: memory
  61. value: memory
  62. - entity: light
  63. translation_key: backlight
  64. category: config
  65. dps:
  66. - id: 16
  67. name: switch
  68. type: boolean