smartplugv2_energy.yaml 5.0 KB

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