smartplugv2_energy.yaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. name: Advanced energy monitoring smartplug
  2. products:
  3. - id: auojpnb4hpc13ftb
  4. manufacturer: Arlec
  5. model: PC191HA
  6. - id: 2fxr6sttw70cgbau
  7. manufacturer: Antela
  8. model: ZY-OYD-Y
  9. - id: qiv5hllylfebpl4g
  10. manufacturer: Eightree
  11. model: ET20
  12. - id: 7k5zwdhwlnrtsuhu
  13. manufacturer: SWE SAGEWE
  14. model: F2s501-GB
  15. - id: uqehhcrmk5depvtl
  16. manufacturer: Smatrul / Beston
  17. model: 16A/20A / BDS01
  18. - id: u8x8hhpomtchfyag
  19. manufacturer: Prosto
  20. model: WFU-T12PM
  21. entities:
  22. - entity: switch
  23. class: outlet
  24. dps:
  25. - id: 1
  26. type: boolean
  27. name: switch
  28. - id: 21
  29. type: integer
  30. name: test_bit
  31. optional: true
  32. - id: 41
  33. type: string
  34. name: cycle_timer
  35. optional: true
  36. - id: 42
  37. type: string
  38. name: random_timer
  39. optional: true
  40. - entity: number
  41. category: config
  42. class: duration
  43. translation_key: timer
  44. dps:
  45. - id: 9
  46. type: integer
  47. optional: true
  48. name: value
  49. unit: min
  50. range:
  51. min: 0
  52. max: 86400
  53. mapping:
  54. - scale: 60
  55. step: 60
  56. - entity: sensor
  57. category: diagnostic
  58. hidden: true
  59. name: Energy
  60. dps:
  61. - id: 17
  62. name: sensor
  63. type: integer
  64. unit: Wh
  65. class: measurement
  66. optional: true
  67. - id: 25
  68. type: integer
  69. name: calibration
  70. optional: true
  71. - entity: sensor
  72. category: diagnostic
  73. class: current
  74. dps:
  75. - id: 18
  76. name: sensor
  77. type: integer
  78. class: measurement
  79. unit: mA
  80. - id: 23
  81. type: integer
  82. name: calibration
  83. optional: true
  84. - entity: sensor
  85. category: diagnostic
  86. class: power
  87. dps:
  88. - id: 19
  89. name: sensor
  90. type: integer
  91. class: measurement
  92. unit: W
  93. mapping:
  94. - scale: 10
  95. - id: 24
  96. type: integer
  97. name: calibration
  98. optional: true
  99. - entity: sensor
  100. category: diagnostic
  101. class: voltage
  102. dps:
  103. - id: 20
  104. name: sensor
  105. type: integer
  106. class: measurement
  107. unit: V
  108. mapping:
  109. - scale: 10
  110. - id: 22
  111. type: integer
  112. name: calibration
  113. optional: true
  114. - entity: binary_sensor
  115. class: problem
  116. category: diagnostic
  117. dps:
  118. - id: 26
  119. type: bitfield
  120. name: sensor
  121. optional: true
  122. persist: false
  123. mapping:
  124. - dps_val: 0
  125. value: false
  126. - dps_val: null
  127. value: false
  128. - value: true
  129. - id: 26
  130. type: bitfield
  131. name: fault_code
  132. optional: true
  133. - entity: select
  134. category: config
  135. hidden: unavailable
  136. translation_key: initial_state
  137. dps:
  138. - id: 38
  139. type: string
  140. optional: true
  141. name: available
  142. mapping:
  143. - dps_val: null
  144. value: false
  145. - value: true
  146. - id: 38
  147. type: string
  148. name: option
  149. optional: true
  150. mapping:
  151. - dps_val: "on"
  152. value: "on"
  153. - dps_val: "off"
  154. value: "off"
  155. - dps_val: memory
  156. value: memory
  157. - entity: switch
  158. name: Overcharge cutoff
  159. category: config
  160. hidden: unavailable
  161. icon: "mdi:battery-charging"
  162. dps:
  163. - id: 46
  164. type: boolean
  165. optional: true
  166. name: available
  167. mapping:
  168. - dps_val: null
  169. value: true
  170. constraint: alt_switch
  171. conditions:
  172. - dps_val: null
  173. value: false
  174. - value: true
  175. - id: 46
  176. type: boolean
  177. name: switch
  178. optional: true
  179. mapping:
  180. - dps_val: null
  181. value_redirect: alt_switch
  182. - id: 51
  183. type: boolean
  184. name: alt_switch
  185. optional: true
  186. hidden: true
  187. - entity: select
  188. name: Light
  189. icon: "mdi:circle-double"
  190. hidden: unavailable
  191. category: config
  192. dps:
  193. - id: 39
  194. type: string
  195. optional: true
  196. name: available
  197. mapping:
  198. - dps_val: null
  199. value: false
  200. - value: true
  201. - id: 39
  202. type: string
  203. name: option
  204. optional: true
  205. mapping:
  206. - dps_val: relay
  207. value: State
  208. - dps_val: pos
  209. value: Position
  210. - dps_val: none
  211. value: "Off"
  212. - dps_val: "on"
  213. value: "On"
  214. - entity: lock
  215. translation_key: child_lock
  216. hidden: unavailable
  217. category: config
  218. dps:
  219. - id: 40
  220. type: boolean
  221. optional: true
  222. name: available
  223. mapping:
  224. - dps_val: null
  225. value: false
  226. - value: true
  227. - id: 40
  228. type: boolean
  229. name: lock
  230. optional: true