smartplugv2_energy.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. name: Advanced energy monitoring smartplug
  2. products:
  3. - id: bf819f3f0e0f958b17ufid
  4. name: Arlec PC191HA
  5. - id: 2fxr6sttw70cgbau
  6. name: Antela ZY-OYD-Y
  7. - id: qiv5hllylfebpl4g
  8. name: Eightree ET20
  9. - id: 7k5zwdhwlnrtsuhu
  10. name: SWE SAGEWE F2s501-GB
  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. optional: true
  22. - id: 26
  23. type: bitfield
  24. name: fault_code
  25. optional: true
  26. - id: 41
  27. type: string
  28. name: cycle_timer
  29. optional: true
  30. - id: 42
  31. type: string
  32. name: random_timer
  33. optional: true
  34. secondary_entities:
  35. - entity: number
  36. category: config
  37. name: Timer
  38. icon: "mdi:timer"
  39. dps:
  40. - id: 9
  41. type: integer
  42. name: value
  43. unit: min
  44. range:
  45. min: 0
  46. max: 86400
  47. mapping:
  48. - scale: 60
  49. step: 60
  50. - entity: sensor
  51. category: diagnostic
  52. name: Energy
  53. dps:
  54. - id: 17
  55. name: sensor
  56. type: integer
  57. unit: Wh
  58. optional: true
  59. - id: 25
  60. type: integer
  61. name: calibration
  62. optional: true
  63. - entity: sensor
  64. category: diagnostic
  65. class: current
  66. dps:
  67. - id: 18
  68. name: sensor
  69. type: integer
  70. class: measurement
  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. unit: W
  85. mapping:
  86. - scale: 10
  87. - id: 24
  88. type: integer
  89. name: calibration
  90. optional: true
  91. - entity: sensor
  92. category: diagnostic
  93. class: voltage
  94. dps:
  95. - id: 20
  96. name: sensor
  97. type: integer
  98. class: measurement
  99. unit: V
  100. mapping:
  101. - scale: 10
  102. - id: 22
  103. type: integer
  104. name: calibration
  105. optional: true
  106. - entity: binary_sensor
  107. class: problem
  108. category: diagnostic
  109. name: Error
  110. dps:
  111. - id: 26
  112. type: bitfield
  113. name: sensor
  114. optional: true
  115. persist: false
  116. mapping:
  117. - dps_val: 0
  118. value: false
  119. - dps_val: null
  120. value: false
  121. - value: true
  122. - entity: select
  123. category: config
  124. name: Initial state
  125. icon: "mdi:toggle-switch"
  126. dps:
  127. - id: 38
  128. type: string
  129. name: option
  130. optional: true
  131. mapping:
  132. - dps_val: "on"
  133. value: "On"
  134. - dps_val: "off"
  135. value: "Off"
  136. - dps_val: memory
  137. value: "Last State"
  138. - entity: switch
  139. name: Overcharge cutoff
  140. category: config
  141. icon: "mdi:battery-charging"
  142. dps:
  143. - id: 46
  144. type: boolean
  145. name: switch
  146. optional: true
  147. mapping:
  148. - dps_val: null
  149. invalid: true
  150. - entity: select
  151. name: Light
  152. icon: "mdi:circle-double"
  153. category: config
  154. dps:
  155. - id: 39
  156. type: string
  157. name: option
  158. optional: true
  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: lock
  169. name: Child lock
  170. icon: "mdi:hand-back-right-off"
  171. category: config
  172. dps:
  173. - id: 40
  174. type: boolean
  175. name: lock
  176. optional: true