Fix HomeMatic availability detection#17341
Fix HomeMatic availability detection#17341danielperna84 merged 4 commits intohome-assistant:devfrom danielperna84:homematic_availability
Conversation
|
That was my origin code. The problem is, that the library don't update this flag internal. I never found out why. Do you test that local? This current code work also only if the device send data otherwise it stay unavailability. If that now work, it would be the best solution instead my workaround |
It actually does. At least in the following scenario the change in this PR works as intended:
Before my change this did not work. I can't easily test the opposite direction. Removing the battery doesn't send the In any case this is an improvement (for me) because devices that were unavailble at startup eventually go online later on. Until now they would stay offline until I restart HASS. |
Description:
Currently the transition from unavailable to available for devices that are offline during startup doesn't work reliably. pyhomematic handles the availability state internally though, and this change makes use of that. This should have been fixed with #16202, but for some reason it still didn't work.
Checklist:
tox. Your PR cannot be merged unless tests pass