smartplugv2_energyv3.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. name: Energy monitoring smartplug
  2. products:
  3. - id: 2iepauebcvo74ujc
  4. name: Aubess 20A
  5. - id: wrz6vzch8htux2zp
  6. name: Elivco CB2S-16DL
  7. - id: 3lbgj7cu27nsmh0w
  8. name: AT-Q-SY2-JWT
  9. - id: cipuwutzfuqk3iru
  10. name: UNSH SMKG-KNL
  11. primary_entity:
  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. - id: 26
  22. type: bitfield
  23. name: fault_code
  24. - id: 42
  25. type: base64
  26. name: cycle_timer
  27. optional: true
  28. - id: 43
  29. type: base64
  30. name: random_timer
  31. optional: true
  32. - id: 44
  33. type: base64
  34. name: inching
  35. optional: true
  36. secondary_entities:
  37. - entity: number
  38. category: config
  39. name: Timer
  40. icon: "mdi:timer"
  41. dps:
  42. - id: 9
  43. type: integer
  44. name: value
  45. unit: min
  46. range:
  47. min: 0
  48. max: 86400
  49. mapping:
  50. - scale: 60
  51. step: 60
  52. - entity: sensor
  53. category: diagnostic
  54. name: Energy
  55. dps:
  56. - id: 17
  57. name: sensor
  58. type: integer
  59. unit: Wh
  60. optional: true
  61. - id: 25
  62. type: integer
  63. name: calibration
  64. # seems to be present even when 17 is missing, but for consistency
  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. - entity: sensor
  80. category: diagnostic
  81. class: power
  82. dps:
  83. - id: 19
  84. name: sensor
  85. type: integer
  86. class: measurement
  87. force: true
  88. unit: W
  89. mapping:
  90. - scale: 10
  91. constraint: switch
  92. conditions:
  93. - dps_val: false
  94. value: 0
  95. - id: 1
  96. type: boolean
  97. name: switch
  98. - id: 24
  99. type: integer
  100. name: calibration
  101. - entity: sensor
  102. category: diagnostic
  103. class: voltage
  104. dps:
  105. - id: 20
  106. name: sensor
  107. type: integer
  108. class: measurement
  109. force: true
  110. unit: V
  111. mapping:
  112. - scale: 10
  113. - id: 22
  114. type: integer
  115. name: calibration
  116. - entity: binary_sensor
  117. class: problem
  118. category: diagnostic
  119. name: Error
  120. dps:
  121. - id: 26
  122. type: bitfield
  123. name: sensor
  124. mapping:
  125. - dps_val: 0
  126. value: false
  127. - value: true
  128. - entity: select
  129. category: config
  130. name: Initial state
  131. icon: "mdi:toggle-switch"
  132. dps:
  133. - id: 38
  134. type: string
  135. name: option
  136. mapping:
  137. - dps_val: "on"
  138. value: "On"
  139. - dps_val: "off"
  140. value: "Off"
  141. - dps_val: memory
  142. value: "Last State"
  143. - entity: lock
  144. name: Child Lock
  145. category: config
  146. icon: "mdi:hand-back-right-off"
  147. dps:
  148. - id: 41
  149. type: boolean
  150. name: lock
  151. optional: true
  152. - entity: select
  153. name: Light mode
  154. category: config
  155. icon: "mdi:lightbulb"
  156. dps:
  157. - id: 40
  158. type: string
  159. name: option
  160. mapping:
  161. - dps_val: relay
  162. value: State
  163. - dps_val: pos
  164. value: Position
  165. - dps_val: none
  166. value: "Off"
  167. - dps_val: "on"
  168. value: "On"
  169. - entity: switch
  170. name: Overcharge protection
  171. category: config
  172. dps:
  173. - id: 39
  174. type: boolean
  175. name: switch
  176. optional: true
  177. - entity: sensor
  178. class: temperature
  179. category: diagnostic
  180. dps:
  181. - id: 47
  182. type: integer
  183. optional: true
  184. name: sensor
  185. unit: C
  186. class: measurement