somgom_single_switch.yaml 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: Wall switch
  2. products:
  3. - id: nqodepctqralr6su
  4. name: Novadigital switch
  5. primary_entity:
  6. entity: switch
  7. dps:
  8. - id: 1
  9. name: switch
  10. type: boolean
  11. secondary_entities:
  12. - entity: number
  13. name: Timer
  14. icon: "mdi:timer"
  15. category: config
  16. dps:
  17. - id: 7
  18. name: value
  19. type: integer
  20. range:
  21. min: 0
  22. max: 86400
  23. mapping:
  24. - scale: 60
  25. unit: min
  26. - entity: select
  27. name: Initial state
  28. icon: "mdi:toggle-switch"
  29. category: config
  30. dps:
  31. - id: 14
  32. type: string
  33. name: option
  34. optional: true
  35. mapping:
  36. - dps_val: "0"
  37. value: "Off"
  38. - dps_val: "1"
  39. value: "On"
  40. - dps_val: "2"
  41. value: Last state
  42. - entity: light
  43. name: Backlight
  44. category: config
  45. dps:
  46. - id: 16
  47. name: switch
  48. type: boolean