gosund_sp211_dualsmartplug.yaml 3.3 KB

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