gosund_sp112_usbsmartplug.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. name: Smartplug
  2. products:
  3. - id: zmql6aexy8ua5rox
  4. manufacturer: Gosund
  5. model: SP112-RTL
  6. entities:
  7. - entity: switch
  8. class: outlet
  9. dps:
  10. - id: 1
  11. name: switch
  12. type: boolean
  13. - id: 21
  14. name: factory_test
  15. type: bitfield
  16. - id: 41
  17. name: cycle_time
  18. type: base64
  19. - id: 42
  20. name: random_time
  21. type: base64
  22. - id: 43
  23. name: inching
  24. type: base64
  25. - id: 101
  26. name: unknown_101
  27. type: boolean
  28. optional: true
  29. - entity: switch
  30. name: USB
  31. dps:
  32. - id: 7
  33. type: boolean
  34. name: switch
  35. - entity: sensor
  36. name: Energy
  37. category: diagnostic
  38. hidden: true
  39. dps:
  40. - id: 17
  41. type: integer
  42. name: sensor
  43. unit: Wh
  44. class: measurement
  45. optional: true
  46. - id: 25
  47. type: integer
  48. name: calibration
  49. optional: true
  50. - entity: sensor
  51. class: current
  52. category: diagnostic
  53. dps:
  54. - id: 18
  55. type: integer
  56. name: sensor
  57. unit: mA
  58. class: measurement
  59. force: true
  60. - id: 23
  61. type: integer
  62. name: calibration
  63. optional: true
  64. - entity: sensor
  65. class: power
  66. category: diagnostic
  67. dps:
  68. - id: 19
  69. type: integer
  70. name: sensor
  71. unit: W
  72. class: measurement
  73. force: true
  74. mapping:
  75. - scale: 10
  76. - id: 24
  77. type: integer
  78. name: calibration
  79. optional: true
  80. - entity: sensor
  81. class: voltage
  82. category: diagnostic
  83. dps:
  84. - id: 20
  85. type: integer
  86. name: sensor
  87. unit: V
  88. class: measurement
  89. force: true
  90. mapping:
  91. - scale: 10
  92. - id: 22
  93. type: integer
  94. name: calibration
  95. optional: true
  96. - entity: number
  97. translation_key: timer
  98. class: duration
  99. category: config
  100. dps:
  101. - id: 9
  102. type: integer
  103. name: value
  104. unit: min
  105. range:
  106. min: 0
  107. max: 86400
  108. mapping:
  109. - scale: 60
  110. step: 60
  111. - entity: number
  112. name: USB timer
  113. category: config
  114. class: duration
  115. translation_key: timer
  116. dps:
  117. - id: 15
  118. type: integer
  119. name: value
  120. unit: min
  121. range:
  122. min: 0
  123. max: 86400
  124. mapping:
  125. - scale: 60
  126. step: 60
  127. - entity: select
  128. translation_key: initial_state
  129. category: config
  130. dps:
  131. - id: 38
  132. type: string
  133. name: option
  134. mapping:
  135. - dps_val: "1"
  136. value: "on"
  137. - dps_val: "0"
  138. value: "off"
  139. - dps_val: "2"
  140. value: memory
  141. - entity: select
  142. translation_key: light_mode
  143. category: config
  144. dps:
  145. - id: 39
  146. type: string
  147. name: option
  148. mapping:
  149. - dps_val: relay
  150. value: state
  151. - dps_val: pos
  152. value: locator
  153. - dps_val: none
  154. value: "off"
  155. - entity: lock
  156. translation_key: child_lock
  157. category: config
  158. dps:
  159. - id: 40
  160. type: boolean
  161. name: lock