smartplugv2_energy.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. translation_key: timer
  38. dps:
  39. - id: 9
  40. type: integer
  41. name: value
  42. unit: min
  43. range:
  44. min: 0
  45. max: 86400
  46. mapping:
  47. - scale: 60
  48. step: 60
  49. - entity: sensor
  50. category: diagnostic
  51. name: Energy
  52. dps:
  53. - id: 17
  54. name: sensor
  55. type: integer
  56. unit: Wh
  57. optional: true
  58. - id: 25
  59. type: integer
  60. name: calibration
  61. optional: true
  62. - entity: sensor
  63. category: diagnostic
  64. class: current
  65. dps:
  66. - id: 18
  67. name: sensor
  68. type: integer
  69. class: measurement
  70. unit: mA
  71. - id: 23
  72. type: integer
  73. name: calibration
  74. optional: true
  75. - entity: sensor
  76. category: diagnostic
  77. class: power
  78. dps:
  79. - id: 19
  80. name: sensor
  81. type: integer
  82. class: measurement
  83. unit: W
  84. mapping:
  85. - scale: 10
  86. - id: 24
  87. type: integer
  88. name: calibration
  89. optional: true
  90. - entity: sensor
  91. category: diagnostic
  92. class: voltage
  93. dps:
  94. - id: 20
  95. name: sensor
  96. type: integer
  97. class: measurement
  98. unit: V
  99. mapping:
  100. - scale: 10
  101. - id: 22
  102. type: integer
  103. name: calibration
  104. optional: true
  105. - entity: binary_sensor
  106. class: problem
  107. category: diagnostic
  108. dps:
  109. - id: 26
  110. type: bitfield
  111. name: sensor
  112. optional: true
  113. persist: false
  114. mapping:
  115. - dps_val: 0
  116. value: false
  117. - dps_val: null
  118. value: false
  119. - value: true
  120. - entity: select
  121. category: config
  122. name: Initial state
  123. icon: "mdi:toggle-switch"
  124. dps:
  125. - id: 38
  126. type: string
  127. name: option
  128. optional: true
  129. mapping:
  130. - dps_val: "on"
  131. value: "On"
  132. - dps_val: "off"
  133. value: "Off"
  134. - dps_val: memory
  135. value: "Last State"
  136. - entity: switch
  137. name: Overcharge cutoff
  138. category: config
  139. icon: "mdi:battery-charging"
  140. dps:
  141. - id: 46
  142. type: boolean
  143. name: switch
  144. optional: true
  145. mapping:
  146. - dps_val: null
  147. invalid: true
  148. - entity: select
  149. name: Light
  150. icon: "mdi:circle-double"
  151. category: config
  152. dps:
  153. - id: 39
  154. type: string
  155. name: option
  156. optional: true
  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: lock
  167. translation_key: child_lock
  168. category: config
  169. dps:
  170. - id: 40
  171. type: boolean
  172. name: lock
  173. optional: true