Skip to content

fix: add 'near' movement state value to ZG-205W mmWave presence sensor - #5465

Merged
make-all merged 1 commit into
make-all:mainfrom
robelmes:fix/zg205w-add-near-movement-state
Jul 1, 2026
Merged

fix: add 'near' movement state value to ZG-205W mmWave presence sensor#5465
make-all merged 1 commit into
make-all:mainfrom
robelmes:fix/zg205w-add-near-movement-state

Conversation

@robelmes

@robelmes robelmes commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion fix to #5411. DPS 116 (Movement state) on the ZG-205Z sensor also emits near as a real device value, but this was not included in the previous PR.

Without this mapping, HA logs a continuous error:

Entity sensor.presence_sensor_office_pc_movement_state provides state value 'near',
which is not in the list of options ['Large', 'Small', 'Breathe', 'None', 'Far']

Evidence

Observed in production over a 2-hour window with a subject present in the room:

State Count
Far 453
Near 320
Breathe 215
Large 215

The sensor cycles through Far → Near → Large → Breathe as the subject moves, confirming near is a genuine device-emitted value representing presence detection in the near zone.

Change

Added dps_val: near / value: Near to the DPS 116 mapping, immediately following the far entry added in #5411.

DPS 116 (Movement state) on the ZG-205Z sensor emits 'near' as a real
device value alongside the 'far' value added in make-all#5411. Without this
mapping the sensor entity raises a ValueError and logs an error:

  provides state value 'near', which is not in the list of options

Confirmed observed in production: 320 occurrences in a 2-hour window,
cycling between Far → Near → Large → Breathe as subjects move.

Fixes the companion gap to make-all#5411.
@make-all
make-all merged commit d7f1b86 into make-all:main Jul 1, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Tuya Local Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants