smartplugv2_energyv3.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. name: Energy monitoring smartplug
  2. products:
  3. - id: 2iepauebcvo74ujc
  4. manufacturer: Aubess
  5. model: 20A
  6. - id: wrz6vzch8htux2zp
  7. manufacturer: Elivco
  8. model: CB2S-16DL
  9. - id: 3lbgj7cu27nsmh0w
  10. model: AT-Q-SY2-JWT
  11. - id: cipuwutzfuqk3iru
  12. model: UNSH SMKG-KNL
  13. - id: azpywu5zfg5wyzpn
  14. manufacturer: EARU
  15. model: 1P Breaker
  16. - id: mkdejkrgvhsfwfrd
  17. manufacturer: Antela
  18. model: F1s302-UK
  19. entities:
  20. - entity: switch
  21. class: outlet
  22. dps:
  23. - id: 1
  24. type: boolean
  25. name: switch
  26. - id: 21
  27. type: integer
  28. optional: true
  29. name: test_bit
  30. - id: 42
  31. type: base64
  32. name: cycle_timer
  33. optional: true
  34. - id: 43
  35. type: base64
  36. name: random_timer
  37. optional: true
  38. - id: 44
  39. type: base64
  40. name: inching
  41. optional: true
  42. - entity: number
  43. category: config
  44. class: duration
  45. translation_key: timer
  46. dps:
  47. - id: 9
  48. type: integer
  49. name: value
  50. unit: min
  51. range:
  52. min: 0
  53. max: 86400
  54. mapping:
  55. - scale: 60
  56. step: 60
  57. - entity: sensor
  58. category: diagnostic
  59. hidden: true
  60. name: Energy
  61. dps:
  62. - id: 17
  63. name: sensor
  64. type: integer
  65. unit: Wh
  66. optional: true
  67. class: measurement
  68. - id: 25
  69. type: integer
  70. name: calibration
  71. # seems to be present even when 17 is missing, but for consistency
  72. optional: true
  73. - entity: sensor
  74. category: diagnostic
  75. class: current
  76. dps:
  77. - id: 18
  78. name: sensor
  79. type: integer
  80. class: measurement
  81. optional: true
  82. force: true
  83. unit: mA
  84. - id: 23
  85. type: integer
  86. name: calibration
  87. - entity: sensor
  88. category: diagnostic
  89. class: power
  90. dps:
  91. - id: 19
  92. name: sensor
  93. type: integer
  94. class: measurement
  95. optional: true
  96. force: true
  97. unit: W
  98. mapping:
  99. - scale: 10
  100. constraint: switch
  101. conditions:
  102. - dps_val: false
  103. value: 0
  104. - id: 1
  105. type: boolean
  106. name: switch
  107. - id: 24
  108. type: integer
  109. name: calibration
  110. - entity: sensor
  111. category: diagnostic
  112. class: voltage
  113. dps:
  114. - id: 20
  115. name: sensor
  116. type: integer
  117. class: measurement
  118. optional: true
  119. force: true
  120. unit: V
  121. mapping:
  122. - scale: 10
  123. - id: 22
  124. type: integer
  125. name: calibration
  126. - entity: binary_sensor
  127. class: problem
  128. category: diagnostic
  129. dps:
  130. - id: 26
  131. type: bitfield
  132. name: sensor
  133. mapping:
  134. - dps_val: 0
  135. value: false
  136. - value: true
  137. - id: 26
  138. type: bitfield
  139. name: fault_code
  140. - entity: select
  141. category: config
  142. translation_key: initial_state
  143. dps:
  144. - id: 38
  145. type: string
  146. name: option
  147. mapping:
  148. - dps_val: "on"
  149. value: "on"
  150. - dps_val: "off"
  151. value: "off"
  152. - dps_val: memory
  153. value: memory
  154. - entity: lock
  155. translation_key: child_lock
  156. category: config
  157. hidden: unavailable
  158. dps:
  159. - id: 41
  160. type: boolean
  161. optional: true
  162. name: available
  163. mapping:
  164. - dps_val: null
  165. value: false
  166. - value: true
  167. - id: 41
  168. type: boolean
  169. name: lock
  170. optional: true
  171. - entity: select
  172. name: Light mode
  173. category: config
  174. hidden: unavailable
  175. icon: "mdi:lightbulb"
  176. dps:
  177. - id: 40
  178. type: string
  179. optional: true
  180. name: option
  181. mapping:
  182. - dps_val: relay
  183. value: State
  184. - dps_val: pos
  185. value: Position
  186. - dps_val: none
  187. value: "Off"
  188. - dps_val: "on"
  189. value: "On"
  190. - id: 40
  191. type: string
  192. optional: true
  193. name: available
  194. mapping:
  195. - dps_val: null
  196. value: false
  197. - value: true
  198. - entity: switch
  199. name: Overcharge protection
  200. category: config
  201. hidden: unavailable
  202. dps:
  203. - id: 39
  204. type: boolean
  205. optional: true
  206. name: available
  207. mapping:
  208. - dps_val: null
  209. value: false
  210. - value: true
  211. - id: 39
  212. type: boolean
  213. name: switch
  214. optional: true
  215. - entity: sensor
  216. class: temperature
  217. hidden: unavailable
  218. category: diagnostic
  219. dps:
  220. - id: 47
  221. type: integer
  222. optional: true
  223. name: available
  224. mapping:
  225. - dps_val: null
  226. value: false
  227. - value: true
  228. - id: 47
  229. type: integer
  230. optional: true
  231. name: sensor
  232. unit: C
  233. class: measurement