dual_power_monitor_smartplugv2.yaml 3.1 KB

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