dual_power_monitor_smartplugv2.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. entities:
  14. - entity: switch
  15. translation_key: outlet_x
  16. translation_placeholders:
  17. x: "1"
  18. class: outlet
  19. dps:
  20. - id: 1
  21. type: boolean
  22. name: switch
  23. - id: 17
  24. type: integer
  25. name: add_ele
  26. optional: true
  27. - id: 21
  28. type: bitfield
  29. name: factory_test
  30. optional: true
  31. - id: 25
  32. type: integer
  33. name: ele_calibration
  34. optional: true
  35. - id: 42
  36. type: string
  37. name: schedule
  38. optional: true
  39. - entity: switch
  40. translation_key: outlet_x
  41. translation_placeholders:
  42. x: "2"
  43. class: outlet
  44. dps:
  45. - id: 2
  46. type: boolean
  47. name: switch
  48. - entity: number
  49. category: config
  50. translation_key: timer_x
  51. translation_placeholders:
  52. x: "1"
  53. class: duration
  54. dps:
  55. - id: 9
  56. type: integer
  57. name: value
  58. unit: min
  59. range:
  60. min: 0
  61. max: 86400
  62. mapping:
  63. - scale: 60
  64. step: 60
  65. - entity: number
  66. category: config
  67. translation_key: timer_x
  68. translation_placeholders:
  69. x: "2"
  70. class: duration
  71. dps:
  72. - id: 10
  73. type: integer
  74. name: value
  75. unit: min
  76. range:
  77. min: 0
  78. max: 86400
  79. mapping:
  80. - scale: 60
  81. step: 60
  82. - entity: sensor
  83. class: current
  84. category: diagnostic
  85. dps:
  86. - id: 18
  87. type: integer
  88. name: sensor
  89. unit: mA
  90. class: measurement
  91. - id: 23
  92. type: integer
  93. name: calibration
  94. optional: true
  95. - entity: sensor
  96. class: power
  97. category: diagnostic
  98. dps:
  99. - id: 19
  100. type: integer
  101. name: sensor
  102. unit: W
  103. class: measurement
  104. mapping:
  105. - scale: 10
  106. - id: 24
  107. type: integer
  108. name: calibration
  109. optional: true
  110. - entity: sensor
  111. class: voltage
  112. category: diagnostic
  113. dps:
  114. - id: 20
  115. type: integer
  116. name: sensor
  117. unit: V
  118. class: measurement
  119. mapping:
  120. - scale: 10
  121. - id: 22
  122. type: integer
  123. name: calibration
  124. optional: true
  125. - entity: binary_sensor
  126. class: problem
  127. category: diagnostic
  128. dps:
  129. - id: 26
  130. type: bitfield
  131. name: sensor
  132. optional: true
  133. persist: false
  134. mapping:
  135. - dps_val: null
  136. value: false
  137. - dps_val: 0
  138. value: false
  139. - value: true
  140. - id: 26
  141. type: bitfield
  142. name: fault_code
  143. optional: true
  144. - entity: select
  145. translation_key: initial_state
  146. category: config
  147. dps:
  148. - id: 38
  149. type: string
  150. name: option
  151. optional: true
  152. mapping:
  153. - dps_val: "on"
  154. value: "on"
  155. - dps_val: "off"
  156. value: "off"
  157. - dps_val: memory
  158. value: memory
  159. - dps_val: null
  160. invalid: true
  161. - entity: lock
  162. translation_key: child_lock
  163. category: config
  164. dps:
  165. - id: 41
  166. type: boolean
  167. name: lock
  168. optional: true
  169. mapping:
  170. - dps_val: null
  171. invalid: true