-
-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Set ping interval to 15 seconds instead of 5 minutes #105191
Conversation
Hey there @jpbede, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Thanks, I would have done that in a few seconds also 👍 It was the default refresh interval of the binary sensor platform I used here |
Please update the documentation aswell |
I've already prepared that in https://github.com/nohn/home-assistant.io/tree/sane_ping_interval. Should I open a PR for that as well? |
Yes please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
when we still had the scan_interval, we were told not to set this too high, as it might cause a lot of network traffic, and the reliability of this tracker on mobile phones is a bit questionable, as those tend to not use the network all the time in order to save battery. setting it to 15 secs by default now is rather high from that perspective, and now forces users that dont need that to disable polling and manually update by means of the automated homeassistant.update_entity service. fully aware this is hard to please everyone, but flooding the network with those pings (especially when having more than a few devices pinged) cant be the final choice of the team? the 15 secs timing seems a less than default requirement, and users needing that could easily set it in an automation. re-adding the consider_home option might be better choice for everyone, as that truly blows to finetune this tracker. |
@Mariusthvdb It was discussed and revised in: #105199 |
o sorry, I missed that, thanks. anyways, thanks for the ping and re-adjusting. |
The solution would be bringing all config options that existed in YAML back to the GUI. |
Sorry, that won't be happening. We don't allow scan interval configuration in the UI. ../Frenck |
What is the reason for that? Specifically for the ping sensor there are so many different scenarios where different intervals totally make sense and using automations for that is crude, to put it mildly. |
Let's keep that out of scope for this PR, as it has nothing to do with the contents of the code reviewed here. If you want to learn and discuss these things, our Discord server and community forums are the right places. ../Frenck |
It appears that the HA development team is concerned that low ping times can affect the performance of HA, the network and the device its pinging and has settled on a 15 second interval in #105191. Maybe a solution would be to allow the users to configure the scan_interval but not set it lower than 15 seconds. |
As per above, we don't allow that in our architecture. Please also see: #105199 |
Proposed change
When moving ping integration from yaml to GUI instead of a configurable interval, a fixed interval of 5 minutes is used. An interval that long does not make much sense in a home automation context. This PR changes that interval to a way more sane 15 seconds.
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: