gosund_sp112_usbsmartplug.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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: time
  97. translation_key: timer
  98. category: config
  99. dps:
  100. - id: 9
  101. type: integer
  102. name: second
  103. range:
  104. min: 0
  105. max: 86400
  106. - entity: time
  107. category: config
  108. translation_key: timer_x
  109. translation_placeholders:
  110. x: USB
  111. dps:
  112. - id: 15
  113. type: integer
  114. name: second
  115. range:
  116. min: 0
  117. max: 86400
  118. - entity: select
  119. translation_key: initial_state
  120. category: config
  121. dps:
  122. - id: 38
  123. type: string
  124. name: option
  125. mapping:
  126. - dps_val: "1"
  127. value: "on"
  128. - dps_val: "0"
  129. value: "off"
  130. - dps_val: "2"
  131. value: memory
  132. - entity: select
  133. translation_key: light_mode
  134. category: config
  135. dps:
  136. - id: 39
  137. type: string
  138. name: option
  139. mapping:
  140. - dps_val: relay
  141. value: state
  142. - dps_val: pos
  143. value: locator
  144. - dps_val: none
  145. value: "off"
  146. - entity: lock
  147. translation_key: child_lock
  148. category: config
  149. dps:
  150. - id: 40
  151. type: boolean
  152. name: lock