quad_powerstrip_usb.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. name: Quad powerstrip with USB
  2. entities:
  3. - entity: switch
  4. translation_key: outlet_x
  5. translation_placeholders:
  6. x: "1"
  7. class: outlet
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - id: 17
  13. type: integer
  14. name: add_ele
  15. optional: true
  16. - id: 25
  17. type: integer
  18. name: ele_calibration
  19. optional: true
  20. - entity: switch
  21. translation_key: outlet_x
  22. translation_placeholders:
  23. x: "2"
  24. class: outlet
  25. dps:
  26. - id: 2
  27. type: boolean
  28. name: switch
  29. - entity: switch
  30. translation_key: outlet_x
  31. translation_placeholders:
  32. x: "3"
  33. class: outlet
  34. dps:
  35. - id: 3
  36. type: boolean
  37. name: switch
  38. - entity: switch
  39. translation_key: outlet_x
  40. translation_placeholders:
  41. x: "4"
  42. class: outlet
  43. dps:
  44. - id: 4
  45. type: boolean
  46. name: switch
  47. - entity: switch
  48. name: USB
  49. dps:
  50. - id: 5
  51. type: boolean
  52. name: switch
  53. - entity: number
  54. category: config
  55. class: duration
  56. translation_key: timer_x
  57. translation_placeholders:
  58. x: "1"
  59. dps:
  60. - id: 9
  61. type: integer
  62. name: value
  63. unit: min
  64. range:
  65. min: 0
  66. max: 86400
  67. mapping:
  68. - scale: 60
  69. step: 60
  70. - entity: number
  71. category: config
  72. class: duration
  73. translation_key: timer_x
  74. translation_placeholders:
  75. x: "2"
  76. dps:
  77. - id: 10
  78. type: integer
  79. name: value
  80. unit: min
  81. range:
  82. min: 0
  83. max: 86400
  84. mapping:
  85. - scale: 60
  86. step: 60
  87. - entity: number
  88. category: config
  89. class: duration
  90. translation_key: timer_x
  91. translation_placeholders:
  92. x: "3"
  93. dps:
  94. - id: 11
  95. type: integer
  96. name: value
  97. unit: min
  98. range:
  99. min: 0
  100. max: 86400
  101. mapping:
  102. - scale: 60
  103. step: 60
  104. - entity: number
  105. category: config
  106. class: duration
  107. translation_key: timer_x
  108. translation_placeholders:
  109. x: "4"
  110. dps:
  111. - id: 12
  112. type: integer
  113. name: value
  114. unit: min
  115. range:
  116. min: 0
  117. max: 86400
  118. mapping:
  119. - scale: 60
  120. step: 60
  121. - entity: number
  122. name: USB timer
  123. class: duration
  124. category: config
  125. translation_key: timer
  126. dps:
  127. - id: 13
  128. name: value
  129. type: integer
  130. unit: min
  131. range:
  132. min: 0
  133. max: 86400
  134. mapping:
  135. - scale: 60
  136. step: 60
  137. - entity: sensor
  138. category: diagnostic
  139. class: current
  140. dps:
  141. - id: 18
  142. name: sensor
  143. type: integer
  144. class: measurement
  145. force: true
  146. unit: mA
  147. - id: 23
  148. type: integer
  149. name: calibration
  150. optional: true
  151. - entity: sensor
  152. category: diagnostic
  153. class: power
  154. dps:
  155. - id: 19
  156. name: sensor
  157. type: integer
  158. class: measurement
  159. force: true
  160. unit: W
  161. mapping:
  162. - scale: 10
  163. - id: 24
  164. type: integer
  165. name: calibration
  166. optional: true
  167. - entity: sensor
  168. category: diagnostic
  169. class: voltage
  170. dps:
  171. - id: 20
  172. name: sensor
  173. type: integer
  174. class: measurement
  175. force: true
  176. unit: V
  177. mapping:
  178. - scale: 10
  179. - id: 22
  180. type: integer
  181. name: calibration
  182. optional: true
  183. - entity: select
  184. translation_key: initial_state
  185. category: config
  186. dps:
  187. - id: 38
  188. type: string
  189. name: option
  190. optional: true
  191. mapping:
  192. - dps_val: "on"
  193. value: "on"
  194. - dps_val: "off"
  195. value: "off"
  196. - dps_val: memory
  197. value: memory
  198. - entity: select
  199. name: Backlight
  200. icon: "mdi:circle-double"
  201. category: config
  202. dps:
  203. - id: 40
  204. type: string
  205. name: option
  206. optional: true
  207. mapping:
  208. - dps_val: relay
  209. value: State
  210. - dps_val: pos
  211. value: Position
  212. - dps_val: none
  213. value: "Off"
  214. - entity: lock
  215. translation_key: child_lock
  216. category: config
  217. dps:
  218. - id: 41
  219. type: boolean
  220. name: lock
  221. optional: true
  222. - entity: binary_sensor
  223. class: problem
  224. category: diagnostic
  225. dps:
  226. - id: 26
  227. type: bitfield
  228. name: sensor
  229. optional: true
  230. mapping:
  231. - dps_val: 0
  232. value: false
  233. - dps_val: null
  234. value: false
  235. - value: true
  236. - id: 26
  237. type: bitfield
  238. name: fault_code
  239. optional: true