yidi_fan_light_switch.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: Wall switch
  2. products:
  3. - id: 66urzkokqdufersv
  4. manufacturer: NHZS
  5. name: Fan and light switch
  6. entities:
  7. - entity: fan
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - id: 4
  13. type: integer
  14. name: speed
  15. range:
  16. min: 1
  17. max: 100
  18. - entity: light
  19. dps:
  20. - id: 5
  21. type: boolean
  22. name: switch
  23. - entity: number
  24. name: Fan timer
  25. category: config
  26. class: duration
  27. translation_key: timer
  28. dps:
  29. - id: 2
  30. type: integer
  31. name: value
  32. unit: min
  33. range:
  34. min: 0
  35. max: 86400
  36. mapping:
  37. - scale: 60
  38. step: 60
  39. - entity: select
  40. translation_key: initial_state
  41. category: config
  42. dps:
  43. - id: 11
  44. type: string
  45. name: option
  46. mapping:
  47. - dps_val: "off"
  48. value: "off"
  49. - dps_val: "on"
  50. value: "on"
  51. - dps_val: memory
  52. value: memory
  53. optional: true
  54. - entity: light
  55. translation_key: backlight
  56. category: config
  57. dps:
  58. - id: 13
  59. type: boolean
  60. name: switch