smartplugv2_energyv3.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. name: Energy monitoring smartplug
  2. products:
  3. - id: 2iepauebcvo74ujc
  4. manufacturer: Aubess
  5. model: 20A
  6. - id: wrz6vzch8htux2zp
  7. manufacturer: Elivco
  8. model: CB2S-16DL
  9. - id: 3lbgj7cu27nsmh0w
  10. model: AT-Q-SY2-JWT
  11. - id: cipuwutzfuqk3iru
  12. model: UNSH SMKG-KNL
  13. - id: azpywu5zfg5wyzpn
  14. manufacturer: EARU
  15. model: 1P Breaker
  16. entities:
  17. - entity: switch
  18. class: outlet
  19. dps:
  20. - id: 1
  21. type: boolean
  22. name: switch
  23. - id: 21
  24. type: integer
  25. name: test_bit
  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. - entity: number
  39. category: config
  40. class: duration
  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. - id: 26
  129. type: bitfield
  130. name: fault_code
  131. - entity: select
  132. category: config
  133. translation_key: initial_state
  134. dps:
  135. - id: 38
  136. type: string
  137. name: option
  138. mapping:
  139. - dps_val: "on"
  140. value: "on"
  141. - dps_val: "off"
  142. value: "off"
  143. - dps_val: memory
  144. value: memory
  145. - entity: lock
  146. translation_key: child_lock
  147. category: config
  148. dps:
  149. - id: 41
  150. type: boolean
  151. name: lock
  152. optional: true
  153. - entity: select
  154. name: Light mode
  155. category: config
  156. icon: "mdi:lightbulb"
  157. dps:
  158. - id: 40
  159. type: string
  160. name: option
  161. mapping:
  162. - dps_val: relay
  163. value: State
  164. - dps_val: pos
  165. value: Position
  166. - dps_val: none
  167. value: "Off"
  168. - dps_val: "on"
  169. value: "On"
  170. - entity: switch
  171. name: Overcharge protection
  172. category: config
  173. dps:
  174. - id: 39
  175. type: boolean
  176. name: switch
  177. optional: true
  178. - entity: sensor
  179. class: temperature
  180. category: diagnostic
  181. dps:
  182. - id: 47
  183. type: integer
  184. optional: true
  185. name: sensor
  186. unit: C
  187. class: measurement