Does anybody know how often the ping binary sensor updates itself, or how to change the frequency? I have one set up to monitor 8.8.8.8 to test my internet connection. It noticed quickly when it went offline but the internet has been back up for several minutes and it still shows off
I think the default for that is 5 minutes.
Try setting scan_interval: 30
ā¦for 30 seconds.
You can find out for yourself in the file: components/binary_sensor/ping.py
There is a line that says : SCAN_INTERVAL = timedelta(minutes=5)
More about that can be found here.
Awesome, thanks! It didnāt mention scan_interval on the binary ping component page, so i had no clue about those additional options (nor did i know where/how to go looking thru the source code)
Got this thread looking for the same info. I think it would be useful to include it in the doc page for the Ping sensor component.
Scan interval applies to pretty much every component.
It should probably be mentioned in a component page and linked to there from other platform pages.
I created the pull request, I hope the mantainers will like it
@bbrendon I think that in the Ping command the ping interval is more useful that in other components, and the at least should be mentioned in the doc that the default interval is 5 minutes.