-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Some devices change state after zigbee2mqtt startup #4477
Comments
Could you provide the debug logging of this? First enable debug logging, reboot your system (and watch the issue happen), then go into the To enable debug logging set in advanced:
log_level: debug |
For sure... |
Zigbee2MQTT receives commands to control devices:
You have to figure out who sends these MQTT messages, probably these are retained MQTT messages and you need to clear them. (http://www.steves-internet-guide.com/mqtt-retained-messages-example/). If that's the case you can clear them by using an MQTT client and sending an empty message to e.g. Since it's not a Zigbee2MQTT problem I will close this. |
What happened
When I start zigbee2mqtt some devices change state. In particular one Innr Smart Plug switch OFF and another one switch ON, regardless what was precedent state.
What did you expect to happen
I expect no state change
How to reproduce it (minimal and precise)
I have zigbee2mqtt (+mosquitto server) running on a Raspberry Pi and when I reboot it or restart after an update, the problem occurs.
Looking at old issues, at the beginning I thought it was a problem of state.json/cache but I deleted the file and the problem persists. Also adding "cache_state_send_on_startup: false" to configuration doesn't resolve this issue.
In the log I can see that during startup, zigbee send a message to the plug topic with payload "ON" (or "OFF" for the other plug) and I really don't know why.
I have also home assistant mqtt integration but this happens also when home assistant is shutted down.
Debug info
Zigbee2MQTT version: 1.14.4
Adapter hardware: CC2531
Adapter firmware version: latest
The text was updated successfully, but these errors were encountered: