-
-
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
[Problem]: Iluminize 5120.1100 wrong state #10409
Comments
Please provide the debug log of this. See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging. |
The device is called mqtt_Dimmer01 (0x804b50fffebbf21f) |
Looks to be a home assistant issue, the on is directly published after the off, HA should use the latest message only.
@emontnemery could you check this? |
As you can see below a state change of the device results in three messages:
Message no. 2 and 3 have exactly the same timestamp. I'm using openHAB for my smarthome and I have a rule which says "lower the blind in the bathroom when it's dark outside and the light turns on". Another rule says 'open the blind in the bathroom when the light is turned off". This was definitely different before 1.22.1 as the blind acted as expected. |
I see, I cannot explain the duplicate messages yet, could you share me your |
Here you are... configuration.yaml
devices.yaml '0x7cb03eaa0a046444': |
It maybe be due to the |
Oh, that's just a leftover from some tests I did before I opened the issue. The settings were the same as with "mqtt_Dimmer03", which is the same type of device. A quick test showed the same result: |
Just did another test with a Sonoff ZBMINI. Turning it on and off again results in
At least all the states are correct but the number of messages seams way too many. |
Can you provide the debug log again now? Without it I cannot determine where these messages come from. |
Test device is "mqtt_zbmini02" |
Just checked, it indeed provides 3 updates per state change:
|
Thank you for your update. Just tested the Iluminize device with last_seen=disabled and I only get one message per state change. So it looks like it's all "last_seen" related. What are the side effects of disabling last_seen? Will "availability" still work? |
|
So, is disabling "last_seen" just a workaround or the final solution? |
It is not a workaround, you should decide for yourself if you want this option or not, but depending on the device this could produce an additional message.
could you provide me the debug log of this? (let me know if last seen was enabled or disabled in this log) |
It's in the debug log from 5 days ago. Device is mqtt_Dimmer01 and "last_seen" was enabled. You quoted the log entries in your answer to the debug log. |
@Koenkk do you still need me to check from a HA perspective? |
@emontnemery no, thanks!
I don't see the ON, OFF, ON, just OFF, ON which seems to be correct in this case, I've annotated the log:
If you would disable last_seen the first STATE: OFF publish should be gone. (so only 1 publish with STATE: ON) Note that you see different behaviour between the mqtt_Dimmer01 and the ZBMINI because they report in differently; the ZBMINI confirms its state with an additional message while mqtt_Dimmer01 doesn't. |
Here is an example event log from openHAB:
As you can see "TasterBad_1_PressShort" initiates to publish {"state":"ON"} to "mqtt_DimmerBad_OnOff" and then you see changing the state from "ON" to "OFF" and back to "ON" again. z2m.log shows only two entries
It looks like the (wrong) state "OFF" (first entry in z2m.log) is processed before the (right) state "ON" (2nd entry in z2m.log) in openHAB. |
I found the openHAB event.log entries corresponding to your quotes. Looks like this:
Koenkk wrote: |
@Jogobo if you don't want to have the complete state send on every state update, you can set |
Made some more tests with different settings for
Every press on the switch produces 2 messages
|
Had to go back to |
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 am consistently running into this issue:
For me it started with upgrading z2m (1.22.2 -> 1.23.0) and hb (v1.3.9 -> v1.4.0) |
What happened?
Since the last update I have a problem with my dimmer. When I publish the payload '{"state":"ON"}' to the device the subscriber receives the following two messages:
{"state":"ON"}
{"brightness":254,"last_seen":"2021-12-28T16:25:29.267Z","linkquality":18,"state":"OFF"}
The device reacts as expected and the light turns on. Rules which check for a state change receive "ON" and immediately after that "OFF" from the long message. Thus resulting in performing the "OFF" action instead of "ON".
What did you expect to happen?
I would expect the get message to show the state which has been set before.
How to reproduce it (minimal and precise)
Just subscribe to the device and send the payload.
Zigbee2MQTT version
1.22.1
Adapter firmware version
20210708
Adapter
Slaesh's CC2652RB stick
Debug log
No debug log available
The text was updated successfully, but these errors were encountered: