wenzhi_wz35_presencesensor.yaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. name: Presence sensor
  2. products:
  3. - id: 19m3dfjwe46njety
  4. manufacturer: Wenzhi
  5. model: WZ35 24GHz
  6. model_id: MTG236-WF-RL
  7. entities:
  8. - entity: binary_sensor
  9. class: occupancy
  10. category: diagnostic
  11. dps:
  12. - id: 1
  13. type: string
  14. optional: true
  15. name: sensor
  16. mapping:
  17. - dps_val: presence
  18. value: true
  19. - value: false
  20. - id: 103
  21. type: string
  22. optional: true
  23. name: cline
  24. - entity: number
  25. name: Sensitivity
  26. category: config
  27. icon: "mdi:motion-sensor"
  28. dps:
  29. - id: 2
  30. type: integer
  31. name: value
  32. optional: true
  33. range:
  34. min: 1
  35. max: 9
  36. - entity: number
  37. name: Nearest range
  38. category: config
  39. class: distance
  40. icon: "mdi:face-recognition"
  41. dps:
  42. - id: 3
  43. type: integer
  44. optional: true
  45. name: value
  46. unit: m
  47. range:
  48. min: 0
  49. max: 1000
  50. mapping:
  51. - scale: 100
  52. step: 10
  53. - entity: number
  54. name: Furthest range
  55. class: distance
  56. category: config
  57. icon: "mdi:walk"
  58. dps:
  59. - id: 4
  60. type: integer
  61. optional: true
  62. name: value
  63. unit: m
  64. range:
  65. min: 150
  66. max: 1000
  67. mapping:
  68. - scale: 100
  69. step: 10
  70. - entity: binary_sensor
  71. class: problem
  72. category: diagnostic
  73. dps:
  74. - id: 6
  75. type: string
  76. optional: true
  77. name: sensor
  78. mapping:
  79. - dps_val: check_failure
  80. value: true
  81. - dps_val: comm_fault
  82. value: true
  83. - dps_val: radar_fault
  84. value: true
  85. - dps_val: others
  86. value: true
  87. - value: false
  88. - id: 6
  89. type: string
  90. optional: true
  91. # checking, check_success, check_failure, others, comm_fault,
  92. # radar_fault
  93. name: description
  94. - id: 113
  95. type: string
  96. optional: true
  97. # none, trigdis_err, dis_near, dis_far, relay_no,
  98. # inhibit_err, polarity_err
  99. name: param_result
  100. - entity: sensor
  101. class: distance
  102. dps:
  103. - id: 9
  104. type: integer
  105. optional: true
  106. name: sensor
  107. unit: m
  108. class: measurement
  109. mapping:
  110. - scale: 100
  111. - entity: number
  112. name: Detection delay
  113. category: config
  114. icon: "mdi:run"
  115. dps:
  116. - id: 101
  117. type: integer
  118. optional: true
  119. name: value
  120. unit: s
  121. range:
  122. min: 0
  123. max: 200
  124. mapping:
  125. - scale: 100
  126. - entity: number
  127. name: Departure delay
  128. category: config
  129. icon: "mdi:exit-run"
  130. dps:
  131. - id: 102
  132. type: integer
  133. optional: true
  134. name: value
  135. unit: s
  136. range:
  137. min: 5
  138. max: 1500
  139. - entity: sensor
  140. class: illuminance
  141. dps:
  142. - id: 104
  143. type: integer
  144. optional: true
  145. name: sensor
  146. unit: lx
  147. class: measurement
  148. mapping:
  149. - scale: 10
  150. - entity: number
  151. name: Trigger sensitivity
  152. category: config
  153. icon: "mdi:toggle-switch"
  154. dps:
  155. - id: 105
  156. type: integer
  157. optional: true
  158. name: value
  159. range:
  160. min: 1
  161. max: 9
  162. - entity: number
  163. name: Trigger distance
  164. class: distance
  165. category: config
  166. dps:
  167. - id: 106
  168. type: integer
  169. name: value
  170. unit: m
  171. range:
  172. min: 0
  173. max: 1000
  174. mapping:
  175. - scale: 100
  176. - entity: select
  177. name: Relay mode
  178. icon: "mdi:toggle-switch"
  179. category: config
  180. dps:
  181. - id: 107
  182. type: string
  183. optional: true
  184. name: option
  185. mapping:
  186. - dps_val: standard
  187. value: Manual control
  188. - dps_val: local
  189. value: Presence control
  190. - dps_val: force
  191. value: Force
  192. - dps_val: none
  193. value: Sensor only
  194. - dps_val: null
  195. value: Sensor only
  196. hidden: true
  197. - entity: switch
  198. name: Relay
  199. dps:
  200. - id: 108
  201. type: string
  202. optional: true
  203. name: switch
  204. mapping:
  205. - dps_val: "off"
  206. value: false
  207. - dps_val: "on"
  208. value: true
  209. - entity: binary_sensor
  210. class: running
  211. category: diagnostic
  212. dps:
  213. - id: 109
  214. type: string
  215. optional: true
  216. name: sensor
  217. mapping:
  218. - dps_val: "off"
  219. value: false
  220. - dps_val: "on"
  221. value: true
  222. - entity: number
  223. name: Light threshold
  224. class: illumination
  225. category: config
  226. icon: "mdi:weather-sunset"
  227. dps:
  228. - id: 110
  229. type: integer
  230. optional: true
  231. name: value
  232. unit: lx
  233. range:
  234. min: 0
  235. max: 10000
  236. mapping:
  237. - scale: 10
  238. step: 25
  239. - entity: select
  240. name: Relay polarity
  241. icon: "mdi:swap-horizontal"
  242. category: config
  243. dps:
  244. - id: 111
  245. type: string
  246. optional: true
  247. name: option
  248. mapping:
  249. - dps_val: close
  250. value: Normally closed
  251. - dps_val: open
  252. value: Normally open
  253. - entity: number
  254. name: Re-entry delay
  255. category: config
  256. class: duration
  257. icon: "mdi:camera-timer"
  258. dps:
  259. - id: 112
  260. type: integer
  261. optional: true
  262. name: value
  263. unit: s
  264. range:
  265. min: 1
  266. max: 600
  267. mapping:
  268. - scale: 10
  269. - entity: button
  270. translation_key: factory_reset
  271. category: config
  272. dps:
  273. - id: 114
  274. type: string
  275. optional: true
  276. name: button
  277. mapping:
  278. - dps_val: reset_setting
  279. value: true
  280. - entity: select
  281. name: Sensor mode
  282. icon: "mdi:motion-sensor"
  283. category: config
  284. dps:
  285. - id: 115
  286. type: string
  287. optional: true
  288. name: option
  289. mapping:
  290. - dps_val: "no"
  291. value: Turn on
  292. - dps_val: "off"
  293. value: Turn off
  294. - dps_val: occupy
  295. value: Occupied
  296. - dps_val: unoccupy
  297. value: Unoccupied