dual_power_monitor_smartplugv2.yaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. name: Dual smartplug
  2. products:
  3. - id: 3jnmzqoyuopg4vtf
  4. manufacturer: Deltaco
  5. model: SH-P02
  6. - id: arf4t5idnhpt88ii
  7. manufacturer: Smatrul
  8. name: Dual wall plug
  9. - id: rfg85jbg44atrd3a
  10. manufacturer: Kogan
  11. model: IP44 outdoor dual
  12. model_id: KASMPLGOD2A
  13. - id: gijt75s5nj2lmlup
  14. manufacturer: FreshLink
  15. model: Smart socket with USB
  16. entities:
  17. - entity: switch
  18. translation_key: outlet_x
  19. translation_placeholders:
  20. x: "1"
  21. class: outlet
  22. dps:
  23. - id: 1
  24. type: boolean
  25. name: switch
  26. - id: 17
  27. type: integer
  28. name: add_ele
  29. optional: true
  30. - id: 21
  31. type: bitfield
  32. name: factory_test
  33. optional: true
  34. - id: 25
  35. type: integer
  36. name: ele_calibration
  37. optional: true
  38. - id: 42
  39. type: string
  40. name: schedule
  41. optional: true
  42. - id: 43
  43. type: string
  44. optional: true
  45. name: random_schedule
  46. - id: 44
  47. type: string
  48. optional: true
  49. name: inching
  50. - entity: switch
  51. translation_key: outlet_x
  52. translation_placeholders:
  53. x: "2"
  54. class: outlet
  55. dps:
  56. - id: 2
  57. type: boolean
  58. name: switch
  59. - entity: number
  60. category: config
  61. translation_key: timer_x
  62. translation_placeholders:
  63. x: "1"
  64. class: duration
  65. dps:
  66. - id: 9
  67. type: integer
  68. name: value
  69. unit: min
  70. range:
  71. min: 0
  72. max: 86400
  73. mapping:
  74. - scale: 60
  75. step: 60
  76. - entity: number
  77. category: config
  78. translation_key: timer_x
  79. translation_placeholders:
  80. x: "2"
  81. class: duration
  82. dps:
  83. - id: 10
  84. type: integer
  85. name: value
  86. unit: min
  87. range:
  88. min: 0
  89. max: 86400
  90. mapping:
  91. - scale: 60
  92. step: 60
  93. - entity: sensor
  94. class: current
  95. category: diagnostic
  96. dps:
  97. - id: 18
  98. type: integer
  99. name: sensor
  100. unit: mA
  101. class: measurement
  102. - id: 23
  103. type: integer
  104. name: calibration
  105. optional: true
  106. - entity: sensor
  107. class: power
  108. category: diagnostic
  109. dps:
  110. - id: 19
  111. type: integer
  112. name: sensor
  113. unit: W
  114. class: measurement
  115. mapping:
  116. - scale: 10
  117. - id: 24
  118. type: integer
  119. name: calibration
  120. optional: true
  121. - entity: sensor
  122. class: voltage
  123. category: diagnostic
  124. dps:
  125. - id: 20
  126. type: integer
  127. name: sensor
  128. unit: V
  129. class: measurement
  130. mapping:
  131. - scale: 10
  132. - id: 22
  133. type: integer
  134. name: calibration
  135. optional: true
  136. - entity: binary_sensor
  137. class: problem
  138. category: diagnostic
  139. dps:
  140. - id: 26
  141. type: bitfield
  142. name: sensor
  143. optional: true
  144. persist: false
  145. mapping:
  146. - dps_val: null
  147. value: false
  148. - dps_val: 0
  149. value: false
  150. - value: true
  151. - id: 26
  152. type: bitfield
  153. name: fault_code
  154. optional: true
  155. - entity: select
  156. translation_key: initial_state
  157. category: config
  158. dps:
  159. - id: 38
  160. type: string
  161. name: option
  162. optional: true
  163. mapping:
  164. - dps_val: "on"
  165. value: "on"
  166. - dps_val: "off"
  167. value: "off"
  168. - dps_val: memory
  169. value: memory
  170. - dps_val: null
  171. invalid: true
  172. - entity: select
  173. name: Light mode
  174. icon: "mdi:circle-double"
  175. category: config
  176. hidden: unavailable
  177. dps:
  178. - id: 40
  179. type: string
  180. optional: true
  181. name: available
  182. mapping:
  183. - dps_val: null
  184. value: false
  185. - value: true
  186. - id: 40
  187. type: string
  188. optional: true
  189. name: option
  190. mapping:
  191. - dps_val: relay
  192. value: State
  193. - dps_val: pos
  194. value: Position
  195. - dps_val: none
  196. value: "Off"
  197. - dps_val: "on"
  198. value: "On"
  199. - entity: lock
  200. translation_key: child_lock
  201. category: config
  202. dps:
  203. - id: 41
  204. type: boolean
  205. name: lock
  206. optional: true
  207. mapping:
  208. - dps_val: null
  209. invalid: true