smartplugv2_energyv2.yaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. name: Energy monitoring smartplug
  2. products:
  3. - id: jdj6ccklup7btq3a
  4. manufacturer: Tongou
  5. model: TO-Q-SY1-JWT
  6. - id: w906qkrrhd3otiwd
  7. manufacturer: Moes
  8. model: ME322
  9. - id: ncwuazeo5y1pujun
  10. model: STY-63TM
  11. - id: uvbhl96dsubgimll
  12. manufacturer: Almo
  13. entities:
  14. - entity: switch
  15. class: outlet
  16. dps:
  17. - id: 1
  18. type: boolean
  19. name: switch
  20. - id: 21
  21. type: integer
  22. name: test_bit
  23. optional: true
  24. - id: 42
  25. type: string
  26. name: cycle_timer
  27. optional: true
  28. - id: 43
  29. type: string
  30. name: random_timer
  31. optional: true
  32. - id: 44
  33. type: string
  34. name: inching
  35. optional: true
  36. - entity: number
  37. category: config
  38. class: duration
  39. translation_key: timer
  40. dps:
  41. - id: 9
  42. type: integer
  43. name: value
  44. unit: min
  45. range:
  46. min: 0
  47. max: 86400
  48. mapping:
  49. - scale: 60
  50. step: 60
  51. - entity: sensor
  52. category: diagnostic
  53. hidden: true
  54. name: Energy
  55. dps:
  56. - id: 17
  57. name: sensor
  58. type: integer
  59. optional: true
  60. unit: Wh
  61. class: measurement
  62. - id: 25
  63. type: integer
  64. name: calibration
  65. optional: true
  66. - entity: sensor
  67. category: diagnostic
  68. class: current
  69. dps:
  70. - id: 18
  71. name: sensor
  72. type: integer
  73. class: measurement
  74. force: true
  75. unit: mA
  76. - id: 23
  77. type: integer
  78. name: calibration
  79. optional: true
  80. - entity: sensor
  81. category: diagnostic
  82. class: power
  83. dps:
  84. - id: 19
  85. name: sensor
  86. type: integer
  87. class: measurement
  88. force: true
  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. force: true
  105. unit: V
  106. mapping:
  107. - scale: 10
  108. - id: 22
  109. type: integer
  110. name: calibration
  111. optional: true
  112. - entity: binary_sensor
  113. class: problem
  114. category: diagnostic
  115. dps:
  116. - id: 26
  117. type: bitfield
  118. name: sensor
  119. mapping:
  120. - dps_val: 0
  121. value: false
  122. - value: true
  123. - id: 26
  124. type: bitfield
  125. name: fault_code
  126. - entity: select
  127. category: config
  128. translation_key: initial_state
  129. dps:
  130. - id: 38
  131. type: string
  132. name: option
  133. mapping:
  134. - dps_val: "on"
  135. value: "on"
  136. - dps_val: "off"
  137. value: "off"
  138. - dps_val: memory
  139. value: memory
  140. - entity: switch
  141. name: Overcharge protection
  142. category: config
  143. hidden: unavailable
  144. dps:
  145. - id: 39
  146. type: boolean
  147. optional: true
  148. name: available
  149. mapping:
  150. - dps_val: null
  151. value: false
  152. - value: true
  153. - id: 39
  154. type: boolean
  155. name: switch
  156. optional: true
  157. - entity: lock
  158. translation_key: child_lock
  159. category: config
  160. dps:
  161. - id: 41
  162. type: boolean
  163. name: lock
  164. - entity: select
  165. translation_key: light_mode
  166. category: config
  167. hidden: unavailable
  168. dps:
  169. - id: 40
  170. type: string
  171. optional: true
  172. name: available
  173. mapping:
  174. - dps_val: null
  175. value: false
  176. - value: true
  177. - id: 40
  178. type: string
  179. name: option
  180. optional: true
  181. mapping:
  182. - dps_val: relay
  183. value: state
  184. - dps_val: pos
  185. value: locator
  186. - dps_val: "on"
  187. value: "on"
  188. - entity: binary_sensor
  189. name: Online
  190. class: connectivity
  191. hidden: unavailable
  192. category: diagnostic
  193. dps:
  194. - id: 66
  195. type: string
  196. optional: true
  197. name: available
  198. mapping:
  199. - dps_val: null
  200. value: false
  201. - value: true
  202. - id: 66
  203. type: string
  204. optional: true
  205. name: sensor
  206. mapping:
  207. - dps_val: offline
  208. value: false
  209. - dps_val: online
  210. value: true
  211. # if missing, assume online as we can reach it
  212. - dps_val: null
  213. value: true