-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuya ZG-204ZM Presence Sensor - erro changing motion detection mode #23023
Comments
I have no idea if this is related, but I recently added two Tuya microwave sensors to my setup: The ZY-M100-S_2 has configurable values for: target_distance, radar_sensitivity, minimum_range, maximum_range, detection_delay, fading_time. I get error messages when trying to change any of them. The ZG-205Z/A has configurable values for: large_motion_detection_sensitivity, large_motion_detection_distance, fading_time, medium_motion_detection_distance, medium_motion_detection_sensitivity, indicator, small_detection_distance, small_detection_sensitivity. I get error messages when trying to change any of them. Z2M 1.38.0 (docker container on Debian 12) Sample error message (ZG-205Z/A): |
I am having the same problem as @wafliron |
I also have this issue, Presence value always has null too! |
FYI Presence value being null might be (likely is?) a separate issue - that one works fine for me. In fact the whole sensor works OK, except for being unable to change the Motion Detection Mode setting as per my OP. |
Just a suggestion, but you should probably open a separate ticket for these issues given they're a different model of device to mine. I would think more likely to get attention that way. |
Any idea on how to fix this? |
Unfortunately not. It reads like a flat out code bug to me, like there’s a typo in the array of possible values or something like that. Hopefully it’ll get looked at at some stage. |
Do you know any workaround? It used to work fine for me.. Maybe downgrade the z2mqtt version? |
I am also experiencing this issue. The error seems clear to me. Looks to be caused by the mismatch between what Zigbee2MQTT is sending and what the device expects. Zigbee2MQTT is sending the update using the "+" character instead of the word "and" in the payload. It should just require an update to fix the payload, right? |
For anyone following this - looks like someone else had already reported the same issue (not sure how I missed that, I did search!) - and it's been fixed in Z2M 1.39.0: Koenkk/zigbee-herdsman-converters#7590 |
Awesome
Cheers,
Dom
…On Tue, 2 Jul 2024 at 11:55, wafliron ***@***.***> wrote:
For anyone following this - looks like someone else had already reported
the same issue (not sure how I missed that, I did search!) - and it's been
fixed in Z2M 1.39.0: Koenkk/zigbee-herdsman-converters#7590
<Koenkk/zigbee-herdsman-converters#7590>
—
Reply to this email directly, view it on GitHub
<#23023 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDRZMSNGE4QJHNEPVAIY7DZKICAFAVCNFSM6AAAAABJGNGLS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBRGY2TQMRQGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
What happened?
Changing the "Motion detection mode" setting on a ZG-204ZM presence sensor throws the error:
"Publish 'set' 'motion_detection_mode' to '' failed: 'Error: Value: 'PIR+Dadar' not found in: [only_pir, pir_and_dadar, only_dadar]'
'PIR+Dadar' in the error message will change to whatever value you're trying to set, out of the three available ones ("Only PIR", "PIR+Dadar", "Only Dadar".
My ZG-204ZM is on firmware 0122052017, which is a high enough version for this setting to be supported.
What did you expect to happen?
Motion detection mode to change
How to reproduce it (minimal and precise)
Choose any option from "Motion detection mode" setting in "Exposes" tab for the device.
Zigbee2MQTT version
1.38.0
Adapter firmware version
20230507
Adapter
Sonoff ZBDongle-P
Setup
Add-on on Home Assistant OS, running in an ESXi VM
Debug log
No response
The text was updated successfully, but these errors were encountered: