-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
RTCGQ11LM Aqara Motion Sensor no_occupancy_since message malformed #18083
Comments
Correction: it still works kinda odd, observe the following log:
So currently the process is to start counting the
Which makes much more sense. |
The attribute is also not showing in HASS but I am unsure where is the problem here. |
Similar behavior reported in #17957 |
There seem to be an issue with how z2m UI writes the configuration, which it does as follow in the current version exposing this bug :
Instead of :
or :
Fixing the config file seems to fix the issue at least for me. |
The bug is still there for this module : https://www.zigbee2mqtt.io/devices/RTCGQ01LM.html#xiaomi-rtcgq01lm |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
i have the same problem now, also on the motion sensor, the gui is writing it wrong into the configuration file |
Same for me, the config is saved as per below when setting the values through z2m gui.
Editing/cleaning the config manually is required. |
Will this not be fixed? Has somebody identified the wrong code? |
Would love to have this resolved :) |
What happened?
When
no_occupancy_since
is set a malformed message arrives after a specified time period, example:Received MQTT message on 'zigbee2mqtt/bridge/request/device/options' with data '{"id":"0x00158d0007758324","options":{"no_occupancy_since":[{"undefined":30}]},"transaction":"fjz2v-14"}'
Such message is ignored by HASS and the attribute
no_occupancy_since
is not added to the device.What did you expect to happen?
Correct format should be per the field description:
So my understanding is I should've received:
Received MQTT message on 'zigbee2mqtt/bridge/request/device/options' with data '{"id":"0x00158d0007758324","options":{"no_occupancy_since":30},"transaction":"fjz2v-14"}'
instead.
How to reproduce it (minimal and precise)
Configure
no_occupancy_since
for Aqara Motion Sensor device.Zigbee2MQTT version
1.31.2
Adapter firmware version
6.7.10.0 build 423
Adapter
Xiaomi Gateway 3
Debug log
This is the message Z2M sends when changing
no_occupancy_since
via web UI:Received MQTT message on 'zigbee2mqtt/bridge/request/device/options' with data '{"id":"0x00158d0007758324","options":{"no_occupancy_since":[{"undefined":30}]},"transaction":"3zkk4-2"}'
This is the correct message:
pub -t 'zigbee2mqtt/bridge/request/device/options' -m '{"id":"0xa4c138741b588475","options":{"no_occupancy_since":[30]},"transaction":"fjz2v-20"}'
When I publish manually everything works as expected.
The text was updated successfully, but these errors were encountered: