smartplugv2_energyv3.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. - id: azpywu5zfg5wyzpn
  12. name: EARU 1P Breaker
  13. primary_entity:
  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. - id: 26
  24. type: bitfield
  25. name: fault_code
  26. - id: 42
  27. type: base64
  28. name: cycle_timer
  29. optional: true
  30. - id: 43
  31. type: base64
  32. name: random_timer
  33. optional: true
  34. - id: 44
  35. type: base64
  36. name: inching
  37. optional: true
  38. secondary_entities:
  39. - entity: number
  40. category: config
  41. translation_key: timer
  42. dps:
  43. - id: 9
  44. type: integer
  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. name: Energy
  56. dps:
  57. - id: 17
  58. name: sensor
  59. type: integer
  60. unit: Wh
  61. optional: true
  62. - id: 25
  63. type: integer
  64. name: calibration
  65. # seems to be present even when 17 is missing, but for consistency
  66. optional: true
  67. - entity: sensor
  68. category: diagnostic
  69. class: current
  70. dps:
  71. - id: 18
  72. name: sensor
  73. type: integer
  74. class: measurement
  75. force: true
  76. unit: mA
  77. - id: 23
  78. type: integer
  79. name: calibration
  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. constraint: switch
  93. conditions:
  94. - dps_val: false
  95. value: 0
  96. - id: 1
  97. type: boolean
  98. name: switch
  99. - id: 24
  100. type: integer
  101. name: calibration
  102. - entity: sensor
  103. category: diagnostic
  104. class: voltage
  105. dps:
  106. - id: 20
  107. name: sensor
  108. type: integer
  109. class: measurement
  110. force: true
  111. unit: V
  112. mapping:
  113. - scale: 10
  114. - id: 22
  115. type: integer
  116. name: calibration
  117. - entity: binary_sensor
  118. class: problem
  119. category: diagnostic
  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. translation_key: child_lock
  145. category: config
  146. dps:
  147. - id: 41
  148. type: boolean
  149. name: lock
  150. optional: true
  151. - entity: select
  152. name: Light mode
  153. category: config
  154. icon: "mdi:lightbulb"
  155. dps:
  156. - id: 40
  157. type: string
  158. name: option
  159. mapping:
  160. - dps_val: relay
  161. value: State
  162. - dps_val: pos
  163. value: Position
  164. - dps_val: none
  165. value: "Off"
  166. - dps_val: "on"
  167. value: "On"
  168. - entity: switch
  169. name: Overcharge protection
  170. category: config
  171. dps:
  172. - id: 39
  173. type: boolean
  174. name: switch
  175. optional: true
  176. - entity: sensor
  177. class: temperature
  178. category: diagnostic
  179. dps:
  180. - id: 47
  181. type: integer
  182. optional: true
  183. name: sensor
  184. unit: C
  185. class: measurement