homemate_multi_switch.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. name: Multi Switch
  2. products:
  3. - id: ai2cizw27dqsamlr
  4. manufacturer: HomeMate
  5. model: 4Gang Switch
  6. - id: jbaaqtkiuyjyuwtq
  7. manufacturer: HomeMate
  8. model: 2Gang Switch
  9. entities:
  10. - entity: switch
  11. translation_key: switch_x
  12. translation_placeholders:
  13. x: 1
  14. dps:
  15. - id: 1
  16. name: switch
  17. type: boolean
  18. - entity: switch
  19. translation_key: switch_x
  20. translation_placeholders:
  21. x: 2
  22. dps:
  23. - id: 2
  24. name: switch
  25. type: boolean
  26. - entity: switch
  27. translation_key: switch_x
  28. translation_placeholders:
  29. x: 3
  30. hidden: unavailable
  31. dps:
  32. - id: 3
  33. name: switch
  34. type: boolean
  35. optional: true
  36. - id: 3
  37. name: available
  38. type: boolean
  39. optional: true
  40. mapping:
  41. - dps_val: null
  42. value: false
  43. - value: true
  44. - entity: switch
  45. translation_key: switch_x
  46. translation_placeholders:
  47. x: 4
  48. hidden: unavailable
  49. dps:
  50. - id: 4
  51. name: switch
  52. type: boolean
  53. optional: true
  54. - id: 4
  55. name: available
  56. type: boolean
  57. optional: true
  58. mapping:
  59. - dps_val: null
  60. value: false
  61. - value: true
  62. - entity: switch
  63. icon: "mdi:toggle-switch"
  64. name: Main switch
  65. dps:
  66. - id: 13
  67. type: boolean
  68. name: switch
  69. - entity: number
  70. category: config
  71. class: duration
  72. translation_key: timer_x
  73. translation_placeholders:
  74. x: 1
  75. dps:
  76. - id: 7
  77. type: integer
  78. name: value
  79. unit: min
  80. optional: true
  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: 2
  93. dps:
  94. - id: 8
  95. type: integer
  96. name: value
  97. unit: min
  98. optional: true
  99. range:
  100. min: 0
  101. max: 86400
  102. mapping:
  103. - scale: 60
  104. step: 60
  105. - entity: number
  106. category: config
  107. class: duration
  108. translation_key: timer_x
  109. translation_placeholders:
  110. x: 3
  111. hidden: unavailable
  112. dps:
  113. - id: 9
  114. type: integer
  115. name: value
  116. unit: min
  117. optional: true
  118. range:
  119. min: 0
  120. max: 86400
  121. mapping:
  122. - scale: 60
  123. step: 60
  124. - id: 3
  125. name: available
  126. type: boolean
  127. optional: true
  128. mapping:
  129. - dps_val: null
  130. value: false
  131. - value: true
  132. - entity: number
  133. category: config
  134. class: duration
  135. translation_key: timer_x
  136. translation_placeholders:
  137. x: 4
  138. hidden: unavailable
  139. dps:
  140. - id: 10
  141. type: integer
  142. name: value
  143. unit: min
  144. optional: true
  145. range:
  146. min: 0
  147. max: 86400
  148. mapping:
  149. - scale: 60
  150. step: 60
  151. - id: 4
  152. name: available
  153. type: boolean
  154. optional: true
  155. mapping:
  156. - dps_val: null
  157. value: false
  158. - value: true
  159. - entity: select
  160. translation_key: initial_state
  161. category: config
  162. dps:
  163. - id: 14
  164. type: string
  165. name: option
  166. optional: true
  167. mapping:
  168. - dps_val: "off"
  169. value: "off"
  170. - dps_val: "on"
  171. value: "on"
  172. - dps_val: "memory"
  173. value: "memory"