denver_shp200mk2_dualsmartplug.yaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. name: Dual smartplug
  2. products:
  3. - id: hhmfhqctaquluc7t
  4. manufacturer: Denver
  5. model: SHP-200mk2
  6. entities:
  7. - entity: switch
  8. translation_key: outlet_x
  9. translation_placeholders:
  10. x: "1"
  11. class: outlet
  12. dps:
  13. - id: 1
  14. type: boolean
  15. name: switch
  16. - id: 17
  17. type: integer
  18. name: add_ele
  19. optional: true
  20. - id: 21
  21. type: bitfield
  22. name: factory_test
  23. optional: true
  24. - id: 25
  25. type: integer
  26. name: ele_calibration
  27. optional: true
  28. - id: 41
  29. type: string
  30. name: schedule
  31. optional: true
  32. - id: 42
  33. type: string
  34. optional: true
  35. name: random_schedule
  36. - entity: switch
  37. translation_key: outlet_x
  38. translation_placeholders:
  39. x: "2"
  40. class: outlet
  41. dps:
  42. - id: 2
  43. type: boolean
  44. name: switch
  45. - entity: time
  46. category: config
  47. translation_key: timer_x
  48. translation_placeholders:
  49. x: "1"
  50. dps:
  51. - id: 9
  52. type: integer
  53. name: second
  54. range:
  55. min: 0
  56. max: 86400
  57. - entity: time
  58. category: config
  59. translation_key: timer_x
  60. translation_placeholders:
  61. x: "2"
  62. dps:
  63. - id: 10
  64. type: integer
  65. name: second
  66. range:
  67. min: 0
  68. max: 86400
  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