About the ping affaire: I guess I’m one of the advanced users that implemented a system of ping and other mechanism in HA in order to get notified of LAN connectivity issues. I’ll work around it using the suggested way of using automations and see if it’s responsive enough for my use case.
I’m just a bit conflicted whether I should wait on this as I already see a PR to lower the default from 5 minutes to 15 seconds: that’s quite a big change and would negate the argument I saw about users abusing ping / causing DDOS and/or ban for HA.
Also what about device tracker’s ping? I don’t see a way to implement consider_home at this point. I see there’s a PR for this, but it’s not clear to me what’s the official advice on ping scan_interval and consider_home with the new UI for this release.
Yeah, I have 86 items with various counts & intervals depending on what the end device is - and HA is effectively my home network monitor.
Moving from a text file where I can “copy / paste” 12 items at a time (I just added 12 lightbulbs) to a UI where I get RSI from all the mouse clicking… that’s a HUGE step back for me… sure I can do monitoring with Uptime Kuma, etc, but why would I need all that extra stuff
And moving over to an automation with a different scan feels like a workaround.
The thing is, the UI is fine for those that just need the basic config, but all these configuration parameters are stored somewhere… why make it harder by going from the easily editable yaml file to a “database”?
Can I update 12 ping sensors in the database?? Maybe… will it break something else… usually
Thanks @BenAndo for creating the github issue, I might add to that too.
yes, Ive raised that and still looking for a definitive conclusion.
really fine with the new update on Ping (I just learned its going to be 30secs by default with the next update) and if that would prove to be too taxing, its easy enough to lower that further with an automation.
the consider_home though is a generic device_tracker setting, and as the ping tracker was the last one I had in yaml, I can no longer set that anywhere…
how to proceed on that (especially thinking of trying to fix/mitigate the modern phones toggling wifi to save batteries, but also triggering ‘false’ device_tracking because of that)
O and before I forget (just did): its been an amazingly smooth Beta, really nice, and no more errors in the startup log
talking about disabling polling, it would be useful to learn which integrations do update on startup (even when polling is disabled and which dont)
currently I have an issue with a rest sensor exceeding the api limit, and I’ve even set it to scan_interval: 86400 (can up that with a *7…) and automate the updating with a condition to not pass when ha has just restarted or some integration were reloaded:
Thanks for confirming this! Also while I can see other benefits (code wise) to not have every integration have a scan_interval and just use automations, I’m confused by this statement by balloob
If this is the rationale for the change (and I get it), why lower the default from 300 to 30 seconds now? Also scan_interval has been deprecated for years (at least 4), but without any clear roadmap on when so I think is normal many people were still using it and are a bit surprised by the breaking change. Unless I missed some very important info on the ping integration that 2023.12 was going to be the end of scan_interval.
I’m using it for automation to reboot device and send notification if device is not responding for longer than 30sec. Now with default way minimum time to reliably reboot device is 10min…
I am pinging MY device in MY local network. Pinging once a second is a trivial load these days. Why couldn’t “fast” ping be limited to local networks? There must be a huge set of use cases where people are pinging local devices relatively frequently!
This is why breaking changes need very very careful consideration. This will break something I use just about every day and until now I had a very simple and reasonably elegant solution. I will now have to use a kludge!
I think given it’s a breaking change in a new release, the feeling of the community needs to be clear and that should be in the thread for the new release (sorry)!
This change has been in the making for 3 years in every other UI integration and scan_interval has been deprecated for a few years before that. Automations give you full control over the frequency that you update the sensor. E.g. If you want it to update it only when you are home, for example.
An abnormal scan interval, or scan intervals for integrations that do not have them is one of the most asked feature requests. Sorry that this is harder than before, but the benefits outweigh the ease of use. The default scan interval should be good enough, if it’s not, you have to make an automation to alter it.
As you said yourself
We give you the most flexibility. I.e. you can dream anything up with the automation engine.
30s v 5 minutes is frankly irrelevant as it won’t satisfy everybody. What if I want more? What if I want less? And by changing it, doesn’t it suggest it should be configurable?!
Auto T I also have many things on my network monitored at sensible specified intervals dpeending on the type of device.
Having to edit a database rather than a simple’ish YAML file is a major backward step for me. I suspect some of my devices will fail badly if pinged too often and others will go offline if ot ping’d at the correct frequency to keep them alve. Automations - horrible solution to a minor specification item no longer being provided. You did not have to specify this as the default does suit many devices and systems.
It is configurable with an automation and the homeassistant.update_entity service. This is the path forward, it’s set in stone. It’s something that isn’t going to change. The decision was made years ago at this point. Sorry. All UI integrations are this way and any YAML integration that moves to the UI will adopt this functionality. And before you get upset with me, I did not make this decision, it was a group decision from many volunteer & core developers.
Yes. That’s why I’m confused. I do understand the reasoning, but I still don’t get why then change the defaults just after the relase.
Also the deprecation occured so long ago, but was still advised in the documentation without any hint this would be removed (as it is now for the YAML config).
Anyways I do appreciate that it can be done with automations, for me the issue is what are we supposed to do with the device tracker consider_home option.
This release breaks functionality of the device tracker ping platform without a clear documented path to remedy. Again, if I’m not mistaken.
I’ve had to roll back to 2023.11.3 as my ping stopped working also the RPi 4 CPU Temperature. Ping is used to auto reboot my Router after 16S is the connection cuts and CPU Cooling Fan Control.
I think you may agree with me that this is not 2023.12-related.
This is probably worth to be discussed in another place.
As for “yaml->UI” trend - totally agree with you.
As for PING:
I had 10-15 ping sensors (mainly device_trackers, 2 binary_sensors) in yaml.
After update I got these (they seemed as “these”) entities added in “Integrations” UI. Then I commented lines for these entities in a code.
And none of these device_trackers were working.
Rebooted - did not help, all tracker not_home.
Removed all PING integrations for device_trackers from UI, only 2 PING binary_sensors remained .
Rebooted.
Quest continues.