Please can you add a method of gracefully handling smart devices that are expected to be regularly missing from the network?
I expect the main use case for this to be devices like smart TVs and similar which get routinely switched off at the wall or remotely powered down, causing a flurry of error messages in the Home Assistant log. In my case, I have have several smart plugs that are automated to turn off smart TVs, consoles, soundbars, network gear, etc. overnight or when I am on vacation, saving a large amount of standby power. The same feature might also be useful for portable devices that are physically removed from the home.
What I am imagining is a service that could be used to dynamically disable and re-enable devices before you shut them down, so that their integrations stop trying to poll them or log the resulting error messages when they cannot make contact. Some considerations:
- The feature should work per device, rather than per integration, as there might be other devices present that use the same integration but are not switched off.
- The feature should not interfere with integrations auto-detecting new devices.
- The feature should not totally disable logging for the whole integration, or for the target device at other times. We still want to see unexpected errors and warnings.
- This feature could be added to individual integrations separately, but it might be more elegant to implement it in the core of Home Assistant, so that it could work with any type of device. In my case, the Android TV, Google Cast, Sony Bravia TV and Sony Songpal integrations are all relevant. A halfway house could be to specify a standard service name that integrations could choose to provide.
- If it is not feasible to implement a feature to dynamically disable devices, a compromise might be to allow logging for specific devices to be dynamically enabled and disabled.
Thanks for considering this!