dual_power_monitor_smartplugv2.yaml 3.3 KB

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