smartplugv2_energyv3.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. 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. name: Energy
  54. dps:
  55. - id: 17
  56. name: sensor
  57. type: integer
  58. unit: Wh
  59. optional: true
  60. - id: 25
  61. type: integer
  62. name: calibration
  63. # seems to be present even when 17 is missing, but for consistency
  64. optional: true
  65. - entity: sensor
  66. category: diagnostic
  67. class: current
  68. dps:
  69. - id: 18
  70. name: sensor
  71. type: integer
  72. class: measurement
  73. force: true
  74. unit: mA
  75. - id: 23
  76. type: integer
  77. name: calibration
  78. - entity: sensor
  79. category: diagnostic
  80. class: power
  81. dps:
  82. - id: 19
  83. name: sensor
  84. type: integer
  85. class: measurement
  86. force: true
  87. unit: W
  88. mapping:
  89. - scale: 10
  90. constraint: switch
  91. conditions:
  92. - dps_val: false
  93. value: 0
  94. - id: 1
  95. type: boolean
  96. name: switch
  97. - id: 24
  98. type: integer
  99. name: calibration
  100. - entity: sensor
  101. category: diagnostic
  102. class: voltage
  103. dps:
  104. - id: 20
  105. name: sensor
  106. type: integer
  107. class: measurement
  108. force: true
  109. unit: V
  110. mapping:
  111. - scale: 10
  112. - id: 22
  113. type: integer
  114. name: calibration
  115. - entity: binary_sensor
  116. class: problem
  117. category: diagnostic
  118. dps:
  119. - id: 26
  120. type: bitfield
  121. name: sensor
  122. mapping:
  123. - dps_val: 0
  124. value: false
  125. - value: true
  126. - entity: select
  127. category: config
  128. name: Initial state
  129. icon: "mdi:toggle-switch"
  130. dps:
  131. - id: 38
  132. type: string
  133. name: option
  134. mapping:
  135. - dps_val: "on"
  136. value: "On"
  137. - dps_val: "off"
  138. value: "Off"
  139. - dps_val: memory
  140. value: "Last State"
  141. - entity: lock
  142. translation_key: child_lock
  143. category: config
  144. dps:
  145. - id: 41
  146. type: boolean
  147. name: lock
  148. optional: true
  149. - entity: select
  150. name: Light mode
  151. category: config
  152. icon: "mdi:lightbulb"
  153. dps:
  154. - id: 40
  155. type: string
  156. name: option
  157. mapping:
  158. - dps_val: relay
  159. value: State
  160. - dps_val: pos
  161. value: Position
  162. - dps_val: none
  163. value: "Off"
  164. - dps_val: "on"
  165. value: "On"
  166. - entity: switch
  167. name: Overcharge protection
  168. category: config
  169. dps:
  170. - id: 39
  171. type: boolean
  172. name: switch
  173. optional: true
  174. - entity: sensor
  175. class: temperature
  176. category: diagnostic
  177. dps:
  178. - id: 47
  179. type: integer
  180. optional: true
  181. name: sensor
  182. unit: C
  183. class: measurement