The ping change is a step back imo From a simple config.yaml like below to having to disable polling on the integration, then create an automation to define the custom scan interval!
Is there an alternative to ping? I use it to open my electric gates when I get in my car. I have a little card that is plugged into a usb port in my car. Ping pings it every second and, when it gets a response, it opens the gate (this also works when I get home). Losing the ability to choose ping frequency seems utterly absurd.
You can create an automation that will override the default 5 mins. It is referenced in the ping integration documentation.
I agree this is a bad move and creates additional work for users to maintain old functionality.
I made an automation for mine already. Basically it is just check to see if the state of the ping sensor has not changed in three minutes and then it runs it again. I also set it to check on Home Assistant start.
With 1 second checks it is probably going to be noisy in your log viewer though.
Thanks. I saw that. I just wonder if thereâs another approach that would be possible. I also hugely resent the condescending comment in the release notes âIf you are using custom interval and really need itâŚâ. Of course I, and no doubt many many others, really need it. We havenât just made it up. Who would think a fixed 5 minutes is a sensible âupgradeâ! Also, would a custom automation actually cause a ping to my device? I need a very prompt response.
But⌠Why? Itâs not like this is an integration with a huge cluttered interface and we need to cut out the least relevant ones.
of course I want control over how often the pings are sent. Why do I need to make an automation just for that? Can someone explain that to me?
This approach may cause less flexibility. This is an âApple approachâ: we weâll ban this, weâll disable this, weâll not implement this - because we know better what users need.
A simple check like âdo not allow setting values < xxxâ would be sufficient.
Iâm not sure why. I personally would have really liked it to still be available. Perhaps it could have defaulted to a certain amount and then let us change the amount. If they add a tooltip explaining it and then conditionally show a warning if the user sets it below 30 seconds, then I think it could have worked really well.
Uptime Kuma as an example lets you set pings all the way down to 20 seconds.
Unless youâre adding heaps of devices to ping, most servers and devices should be able to handle frequent pinging.
This is correct. We got a lot of complaints in the past of people who used scan interval on any integration to hammer devices and services until they got Home Assistant blocked. The scan_interval option has been deprecated for a long time and is not allowed to be set via the UI. It is still possible for people, but you got to put in effort and hopefully know better what youâre doing to prevent abuse.
Ok, but if a user certainly knows that some value of âscan_intervalâ (like â60 secâ) will not harm the system - why not to allow him to set it?
This is HIS system. If he wants to break it - itâs his choice.
Once again, we can limit a value to (letâs say) 60 sec.
People are very inventive with blaming HA. For instance, they put a non-existing option_X to card_Y - and get angry âwhy it does not workâ.
Hmm, do not think that this is a majority of using ping.
Well, I quite OK with deprecating âscan_intervalâ - using automations anyway. But imho this is reducing flexibility.