wf39m_dimmer_smartplug.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. name: Dimmer smartplug
  2. products:
  3. - id: zbisbtukzuiifmp6
  4. name: Newone WF39M
  5. primary_entity:
  6. entity: light
  7. dps:
  8. - id: 1
  9. type: boolean
  10. name: switch
  11. - id: 2
  12. type: integer
  13. name: brightness
  14. range:
  15. min: 10
  16. max: 1000
  17. secondary_entities:
  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. translation_key: timer
  63. category: config
  64. dps:
  65. - id: 6
  66. type: integer
  67. optional: true
  68. name: value
  69. unit: min
  70. range:
  71. min: 0
  72. max: 86400
  73. mapping:
  74. - scale: 60
  75. step: 60
  76. - entity: select
  77. name: Initial state
  78. icon: "mdi:toggle-switch"
  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: "Last state"
  91. - entity: select
  92. name: Indicator light
  93. icon: "mdi:power"
  94. category: config
  95. dps:
  96. - id: 21
  97. type: string
  98. name: option
  99. mapping:
  100. - dps_val: none
  101. value: "Off"
  102. - dps_val: relay
  103. value: State
  104. - dps_val: pos
  105. value: Position