smartplugv2_energyv2.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. entities:
  12. - entity: switch
  13. class: outlet
  14. dps:
  15. - id: 1
  16. type: boolean
  17. name: switch
  18. - id: 21
  19. type: integer
  20. name: test_bit
  21. optional: true
  22. - id: 42
  23. type: string
  24. name: cycle_timer
  25. optional: true
  26. - id: 43
  27. type: string
  28. name: random_timer
  29. optional: true
  30. - id: 44
  31. type: string
  32. name: inching
  33. optional: true
  34. - entity: number
  35. category: config
  36. class: duration
  37. translation_key: timer
  38. dps:
  39. - id: 9
  40. type: integer
  41. name: value
  42. unit: min
  43. range:
  44. min: 0
  45. max: 86400
  46. mapping:
  47. - scale: 60
  48. step: 60
  49. - entity: sensor
  50. category: diagnostic
  51. name: Energy
  52. dps:
  53. - id: 17
  54. name: sensor
  55. type: integer
  56. optional: true
  57. unit: Wh
  58. - id: 25
  59. type: integer
  60. name: calibration
  61. optional: true
  62. - entity: sensor
  63. category: diagnostic
  64. class: current
  65. dps:
  66. - id: 18
  67. name: sensor
  68. type: integer
  69. class: measurement
  70. force: true
  71. unit: mA
  72. - id: 23
  73. type: integer
  74. name: calibration
  75. optional: true
  76. - entity: sensor
  77. category: diagnostic
  78. class: power
  79. dps:
  80. - id: 19
  81. name: sensor
  82. type: integer
  83. class: measurement
  84. force: true
  85. unit: W
  86. mapping:
  87. - scale: 10
  88. - id: 24
  89. type: integer
  90. name: calibration
  91. optional: true
  92. - entity: sensor
  93. category: diagnostic
  94. class: voltage
  95. dps:
  96. - id: 20
  97. name: sensor
  98. type: integer
  99. class: measurement
  100. force: true
  101. unit: V
  102. mapping:
  103. - scale: 10
  104. - id: 22
  105. type: integer
  106. name: calibration
  107. optional: true
  108. - entity: binary_sensor
  109. class: problem
  110. category: diagnostic
  111. dps:
  112. - id: 26
  113. type: bitfield
  114. name: sensor
  115. mapping:
  116. - dps_val: 0
  117. value: false
  118. - value: true
  119. - id: 26
  120. type: bitfield
  121. name: fault_code
  122. - entity: select
  123. category: config
  124. translation_key: initial_state
  125. dps:
  126. - id: 38
  127. type: string
  128. name: option
  129. mapping:
  130. - dps_val: "on"
  131. value: "on"
  132. - dps_val: "off"
  133. value: "off"
  134. - dps_val: memory
  135. value: memory
  136. - entity: switch
  137. name: Overcharge protection
  138. category: config
  139. dps:
  140. - id: 39
  141. type: boolean
  142. name: switch
  143. optional: true
  144. - entity: lock
  145. translation_key: child_lock
  146. category: config
  147. dps:
  148. - id: 41
  149. type: boolean
  150. name: lock
  151. - entity: select
  152. name: Light mode
  153. icon: "mdi:television-ambient-light"
  154. category: config
  155. dps:
  156. - id: 40
  157. type: string
  158. name: option
  159. optional: true
  160. mapping:
  161. - dps_val: relay
  162. value: State
  163. - dps_val: pos
  164. value: Position
  165. - dps_val: "on"
  166. value: "On"
  167. - entity: binary_sensor
  168. name: Online
  169. class: connectivity
  170. category: diagnostic
  171. dps:
  172. - id: 66
  173. type: boolean
  174. optional: true
  175. name: sensor
  176. mapping:
  177. - dps_val: offline
  178. value: false
  179. - dps_val: online
  180. value: true
  181. # if missing, assume online as we can reach it
  182. - dps_val: null
  183. value: true