wf39m_dimmer_smartplug.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. name: Dimmer smartplug
  2. products:
  3. - id: zbisbtukzuiifmp6
  4. manufacturer: Newone
  5. model: WF39M
  6. entities:
  7. - entity: light
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - id: 2
  13. type: integer
  14. name: brightness
  15. range:
  16. min: 10
  17. max: 1000
  18. - entity: select
  19. name: Light type
  20. icon: "mdi:lightbulb"
  21. category: config
  22. dps:
  23. - id: 4
  24. type: string
  25. name: option
  26. mapping:
  27. - dps_val: led
  28. value: LED
  29. - dps_val: incandescent
  30. value: Incandescent
  31. - dps_val: halogen
  32. value: Halogen
  33. - entity: number
  34. name: Minimum brightneess
  35. category: config
  36. icon: "mdi:lightbulb-on-20"
  37. dps:
  38. - id: 3
  39. type: integer
  40. name: value
  41. unit: "%"
  42. range:
  43. min: 10
  44. max: 1000
  45. mapping:
  46. - scale: 10
  47. - entity: number
  48. name: Maximum brightness
  49. category: config
  50. icon: "mdi:lightbulb-on-90"
  51. dps:
  52. - id: 5
  53. type: integer
  54. name: value
  55. unit: "%"
  56. range:
  57. min: 10
  58. max: 1000
  59. mapping:
  60. - scale: 10
  61. - entity: number
  62. class: duration
  63. translation_key: timer
  64. category: config
  65. dps:
  66. - id: 6
  67. type: integer
  68. optional: true
  69. name: value
  70. unit: min
  71. range:
  72. min: 0
  73. max: 86400
  74. mapping:
  75. - scale: 60
  76. step: 60
  77. - entity: select
  78. translation_key: initial_state
  79. category: config
  80. dps:
  81. - id: 14
  82. type: string
  83. name: option
  84. mapping:
  85. - dps_val: "off"
  86. value: "off"
  87. - dps_val: "on"
  88. value: "on"
  89. - dps_val: memory
  90. value: memory
  91. - entity: select
  92. translation_key: light_mode
  93. category: config
  94. dps:
  95. - id: 21
  96. type: string
  97. name: option
  98. mapping:
  99. - dps_val: none
  100. value: "off"
  101. - dps_val: relay
  102. value: state
  103. - dps_val: pos
  104. value: locator