-
-
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
Some devices only become available in HA if Z2M is restarted while HA is running #21495
Comments
Okay i really have no clue what happend but after several restarts it just works now |
okay so i had it again with different remotes and the issue is now narrowed: it works when i first restart HA, wait until everything is up and only then restart Z2M (not from HA but from the Z2M GUI). My theory is now that HA somehow misses the availability message somehow. If anyone has an idea how to configure everything so the restart procedure is not required pls let me know. |
This here actually saved my problems with unavailability of devices. Just disabling "availability" in settings and now all devices work again for >9 hours. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days |
What happened?
I have one OSRAM AC02517 that works perfectly in my setup for some time now. Recent i wanted to add a new one and everything seemed to work fine. It could connect to z2m, it was properly interviewed and bound. In Z2M it shows almost exactly the same as the old switch. Hoever in HA the new switch shows as unavailable and cannot be used to create automations. When listening to the MQTT broker, i can see that actions are still dispached though. When i turn off the availability feature in Z2M completely, the switch works in HA. When i turn it on again the switch shows as unavailable again in HA. I would like to use the availability feature in general though so turning it off is not really a solution.
I investigated a little further and i could make 2 observations:
"battery_low":false
in the payload of the message while the new one does not. (both provide the"battery"
property)So my theory is that HA marks the switch as unavailable because the
battery_low
property is missing. Please correct me if this is not correct.I would love to do a PR to fix this but im a little lost where too look exactly in the codebase.
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.35.3
Adapter firmware version
0x26690700
Adapter
ConBee2/RaspBee2
Setup
Add-on Home assistant on raspi 3
Debug log
Old switch (AC02517 | x2619) that works and shows as available:
New switch (AC02517 | x1719) that only works when availability is off:
The text was updated successfully, but these errors were encountered: