Skip to content
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

Delay marking a node as unavailable #568

Merged
merged 4 commits into from
Feb 21, 2024
Merged

Conversation

marcelveldt
Copy link
Collaborator

@marcelveldt marcelveldt commented Feb 21, 2024

After our recent change with the proactive node detection using our own mdns discovery we also changed how/when we mark a node as unavailable/offline if its not responding. we lowered the treshold in favor of re-detecting it over mdns.

We however get multiple reports that people now see their nodes go unavailable a lot more often.
Now we can go argue that they should fix their networks/devices so they do not miss the subscription intervals but real world is that dropouts may happen and bad devices do exist ;-)

I have investigated other platforms like Apple Home and Google home and they're all a huge bit more forgiving than us, basically "hiding" the node unavailability for a while by debouncing it. This PR extends our tresholds as well to follow that pattern but it still logs these events so people are still aware that something is going on in their network (and hopefully fix it).

The outcome is that devices won't be marked unavailable in HA as fast as before, basically reproducing the behavior of other platforms.

@marcelveldt
Copy link
Collaborator Author

I'm going to release a new beta based on this branch to allow some users to test it

@marcelveldt marcelveldt added bugfix Pull request that fixes a (known) issue/bug maintenance Code (quality) improvement or small enhancement which not a new feature labels Feb 21, 2024
marcelveldt and others added 2 commits February 21, 2024 15:31
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
@marcelveldt marcelveldt merged commit 1c0e7e1 into main Feb 21, 2024
4 checks passed
@marcelveldt marcelveldt deleted the delay-node-availability branch February 21, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a (known) issue/bug maintenance Code (quality) improvement or small enhancement which not a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants