smartplugv2_energy.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. name: Advanced energy monitoring smartplug
  2. products:
  3. - id: auojpnb4hpc13ftb
  4. manufacturer: Arlec
  5. model: PC191HA
  6. - id: 2fxr6sttw70cgbau
  7. manufacturer: Antela
  8. model: ZY-OYD-Y
  9. - id: qiv5hllylfebpl4g
  10. manufacturer: Eightree
  11. model: ET20
  12. - id: 7k5zwdhwlnrtsuhu
  13. manufacturer: SWE SAGEWE
  14. model: F2s501-GB
  15. - id: uqehhcrmk5depvtl
  16. manufacturer: Smatrul
  17. model: 16A/20A
  18. entities:
  19. - entity: switch
  20. class: outlet
  21. dps:
  22. - id: 1
  23. type: boolean
  24. name: switch
  25. - id: 21
  26. type: integer
  27. name: test_bit
  28. optional: true
  29. - id: 41
  30. type: string
  31. name: cycle_timer
  32. optional: true
  33. - id: 42
  34. type: string
  35. name: random_timer
  36. optional: true
  37. - entity: number
  38. category: config
  39. class: duration
  40. translation_key: timer
  41. dps:
  42. - id: 9
  43. type: integer
  44. name: value
  45. unit: min
  46. range:
  47. min: 0
  48. max: 86400
  49. mapping:
  50. - scale: 60
  51. step: 60
  52. - entity: sensor
  53. category: diagnostic
  54. name: Energy
  55. dps:
  56. - id: 17
  57. name: sensor
  58. type: integer
  59. unit: Wh
  60. optional: true
  61. - id: 25
  62. type: integer
  63. name: calibration
  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. unit: mA
  74. - id: 23
  75. type: integer
  76. name: calibration
  77. optional: true
  78. - entity: sensor
  79. category: diagnostic
  80. class: power
  81. dps:
  82. - id: 19
  83. name: sensor
  84. type: integer
  85. class: measurement
  86. unit: W
  87. mapping:
  88. - scale: 10
  89. - id: 24
  90. type: integer
  91. name: calibration
  92. optional: true
  93. - entity: sensor
  94. category: diagnostic
  95. class: voltage
  96. dps:
  97. - id: 20
  98. name: sensor
  99. type: integer
  100. class: measurement
  101. unit: V
  102. mapping:
  103. - scale: 10
  104. - id: 22
  105. type: integer
  106. name: calibration
  107. optional: true
  108. - entity: binary_sensor
  109. class: problem
  110. category: diagnostic
  111. dps:
  112. - id: 26
  113. type: bitfield
  114. name: sensor
  115. optional: true
  116. persist: false
  117. mapping:
  118. - dps_val: 0
  119. value: false
  120. - dps_val: null
  121. value: false
  122. - value: true
  123. - id: 26
  124. type: bitfield
  125. name: fault_code
  126. optional: true
  127. - entity: select
  128. category: config
  129. translation_key: initial_state
  130. dps:
  131. - id: 38
  132. type: string
  133. name: option
  134. optional: true
  135. mapping:
  136. - dps_val: "on"
  137. value: "on"
  138. - dps_val: "off"
  139. value: "off"
  140. - dps_val: memory
  141. value: memory
  142. - entity: switch
  143. name: Overcharge cutoff
  144. category: config
  145. icon: "mdi:battery-charging"
  146. dps:
  147. - id: 46
  148. type: boolean
  149. name: switch
  150. optional: true
  151. mapping:
  152. - dps_val: null
  153. invalid: true
  154. - entity: select
  155. name: Light
  156. icon: "mdi:circle-double"
  157. category: config
  158. dps:
  159. - id: 39
  160. type: string
  161. name: option
  162. optional: true
  163. mapping:
  164. - dps_val: relay
  165. value: State
  166. - dps_val: pos
  167. value: Position
  168. - dps_val: none
  169. value: "Off"
  170. - dps_val: "on"
  171. value: "On"
  172. - entity: lock
  173. translation_key: child_lock
  174. category: config
  175. dps:
  176. - id: 40
  177. type: boolean
  178. name: lock
  179. optional: true