haozee_presence_wallswitch.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. name: Presence dual lightswitch
  2. products:
  3. - id: s7rsrtbg
  4. manufacturer: Haozee
  5. model: ZG-302ZM 2-gang
  6. entities:
  7. - entity: light
  8. translation_key: switch_x
  9. translation_placeholders:
  10. x: "1"
  11. dps:
  12. - id: 101
  13. type: boolean
  14. name: switch
  15. - entity: light
  16. translation_key: switch_x
  17. translation_placeholders:
  18. x: "2"
  19. dps:
  20. - id: 102
  21. type: boolean
  22. name: switch
  23. - entity: binary_sensor
  24. class: occupancy
  25. dps:
  26. - id: 1
  27. type: string
  28. name: sensor
  29. mapping:
  30. - dps_val: presence
  31. value: true
  32. - value: false
  33. - entity: number
  34. name: Sensitivity
  35. category: config
  36. icon: "mdi:motion-sensor"
  37. dps:
  38. - id: 2
  39. type: integer
  40. name: value
  41. range:
  42. min: 0
  43. max: 19
  44. - entity: number
  45. name: Detection distance
  46. category: config
  47. class: distance
  48. dps:
  49. - id: 4
  50. type: integer
  51. name: value
  52. unit: m
  53. range:
  54. min: 0
  55. max: 1000
  56. mapping:
  57. - scale: 100
  58. - entity: number
  59. translation_key: timer_x
  60. translation_placeholders:
  61. x: "1"
  62. class: duration
  63. category: config
  64. dps:
  65. - id: 103
  66. type: integer
  67. optional: true
  68. name: value
  69. unit: s
  70. range:
  71. min: 0
  72. max: 43200
  73. - entity: number
  74. translation_key: timer_x
  75. translation_placeholders:
  76. x: "2"
  77. class: duration
  78. category: config
  79. dps:
  80. - id: 104
  81. type: integer
  82. optional: true
  83. name: value
  84. unit: s
  85. range:
  86. min: 0
  87. max: 43200
  88. - entity: button
  89. name: All on
  90. category: config
  91. dps:
  92. - id: 107
  93. type: boolean
  94. optional: true
  95. name: button
  96. - entity: button
  97. name: Toggle 1
  98. category: config
  99. hidden: true
  100. dps:
  101. - id: 108
  102. type: string
  103. optional: true
  104. name: button
  105. mapping:
  106. - dps_val: ch1
  107. value: true
  108. - entity: button
  109. name: Toggle 2
  110. category: config
  111. hidden: true
  112. dps:
  113. - id: 108
  114. type: string
  115. optional: true
  116. name: button
  117. mapping:
  118. - dps_val: ch2
  119. value: true
  120. - entity: button
  121. name: All off
  122. category: config
  123. dps:
  124. - id: 109
  125. type: boolean
  126. optional: true
  127. name: button
  128. - entity: number
  129. name: Light sensitivity
  130. category: config
  131. icon: "mdi:theme-light-dark"
  132. dps:
  133. - id: 110
  134. type: integer
  135. name: value
  136. range:
  137. min: 0
  138. max: 10
  139. - entity: light
  140. translation_key: backlight
  141. category: config
  142. dps:
  143. - id: 111
  144. type: boolean
  145. name: switch
  146. - entity: select
  147. translation_key: initial_state
  148. category: config
  149. dps:
  150. - id: 112
  151. type: string
  152. name: option
  153. mapping:
  154. - dps_val: "off"
  155. value: "off"
  156. - dps_val: "on"
  157. value: "on"
  158. - dps_val: memory
  159. value: memory
  160. - entity: select
  161. name: Occupied turn on
  162. icon: "mdi:lightbulb-multiple"
  163. category: config
  164. dps:
  165. - id: 113
  166. type: string
  167. name: option
  168. mapping:
  169. - dps_val: "off"
  170. value: Disabled
  171. - dps_val: all
  172. value: Both
  173. - dps_val: ch1
  174. value: Light 1
  175. - dps_val: ch2
  176. value: Light 2
  177. - entity: number
  178. name: Unoccupied delay
  179. category: config
  180. icon: "mdi:motion-sensor"
  181. dps:
  182. - id: 114
  183. type: integer
  184. name: value
  185. unit: s
  186. range:
  187. min: 5
  188. max: 28800
  189. - entity: select
  190. name: Unoccupied turn off
  191. icon: "mdi:lightbulb-multiple"
  192. category: config
  193. dps:
  194. - id: 115
  195. type: string
  196. name: option
  197. mapping:
  198. - dps_val: "off"
  199. value: Disabled
  200. - dps_val: all
  201. value: Both
  202. - dps_val: ch1
  203. value: Light 1
  204. - dps_val: ch2
  205. value: Light 2