Skip to content

Commit

Permalink
Add support for WL-RTCZ-05Z human presence sensor
Browse files Browse the repository at this point in the history
Issue #2546
  • Loading branch information
make-all committed Dec 25, 2024
1 parent d1e987f commit 245369e
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 0 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,3 +780,4 @@ Further device support has been made with the assistance of users. Please consid
- [Flo0008](https://github.com/Flo0008) for assisting with support for Sboard III mini Weigand access control interface.
- [Kenneth-Audenaert](https://github.com/Kenneth-Audenaert) for contributing support for Aygrochy ventilation duct fan.
- [DutchKillerBee](https://github.com/DutchKillerBee) for assisting with support for Qlima D812 dehumidifier.
- [dgcartersa](https://github.com/dgcartersa) for assisting with support for WL-RTCZ-05Z zigbee human presence sensor.
1 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ entity types as sub devices.
- PY321-Z-TY energy meter
- Temperature and humidity sensor with alarm feature
- WL-898WZ water leak sensor
- WL-RTCZ-05Z human presence sensor
- Zemismart SPM01 energy meter
- ZPmeter 214C-Z water meter

Expand Down
206 changes: 206 additions & 0 deletions custom_components/tuya_local/devices/wlrtcz05z_presencesensor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
name: Human presence
# products:
# - id: UNKNOWN
# name: WL-RTCZ-05Z
primary_entity:
entity: binary_sensor
class: occupancy
dps:
- id: 1
type: string
name: sensor
mapping:
- dps_val: none
value: false
- value: true
- id: 1
type: string
name: status
- id: 120
type: string
optional: true
name: debug
secondary_entities:
- entity: binary_sensor
class: movement
dps:
- id: 1
type: string
name: sensor
mapping:
- dps_val: small_move
value: true
- dps_val: large_move
value: true
- value: false
- entity: sensor
class: distance
dps:
- id: 101
type: integer
name: sensor
unit: cm
class: measurement
- entity: sensor
class: illuminance
dps:
- id: 102
type: integer
name: sensor
unit: lx
class: measurement
- entity: number
name: Gone delay
category: config
translation_key: timer
dps:
- id: 103
type: integer
name: value
unit: s
range:
min: 0
max: 28800
- id: 105
type: integer
name: minutes
- id: 106
type: integer
name: seconds
- entity: light
translation_key: indicator
category: config
dps:
- id: 104
type: boolean
name: switch
- entity: number
name: Maximum motion distance
category: config
icon: "mdi:signal-distance-variant"
dps:
- id: 107
type: integer
name: value
unit: cm
range:
min: 0
max: 1000
- entity: number
name: Minimum motion distance
category: config
icon: "mdi:signal-distance-variant"
dps:
- id: 108
type: integer
name: value
unit: cm
range:
min: 0
max: 1000
- entity: number
name: Maximum breathing distance
category: config
icon: "mdi:signal-distance-variant"
dps:
- id: 109
type: integer
name: value
unit: cm
range:
min: 0
max: 600
- entity: number
name: Minimum breathing distance
category: config
icon: "mdi:signal-distance-variant"
dps:
- id: 110
type: integer
name: value
unit: cm
range:
min: 0
max: 600
- entity: button
translation_key: factory_reset
category: config
dps:
- id: 113
type: string
optional: true
name: button
mapping:
- dps_val: reset
value: true
- entity: number
name: Maximum small movement distance
category: config
icon: "mdi:signal-distance-variant"
dps:
- id: 114
type: integer
name: value
unit: cm
range:
min: 0
max: 600
- entity: number
name: Minimum small movement distance
category: config
icon: "mdi:signal-distance-variant"
dps:
- id: 115
type: integer
name: value
unit: cm
range:
min: 0
max: 600
- entity: number
name: Motion sensitivity
category: config
icon: "mdi:motion-sensor"
dps:
- id: 116
type: integer
name: value
range:
min: 0
max: 10
- entity: number
name: Small movement sensitivity
category: config
icon: "mdi:motion-sensor"
dps:
- id: 117
type: integer
name: value
range:
min: 0
max: 10
- entity: number
name: Breathing sensitivity
category: config
icon: "mdi:motion-sensor"
dps:
- id: 118
type: integer
name: value
range:
min: 0
max: 10
- entity: event
name: Detection
dps:
- id: 119
type: string
name: event
optional: true
mapping:
- dps_val: "none"
value: null
- value: detected
- id: 119
type: string
name: motion_type

0 comments on commit 245369e

Please sign in to comment.