Devices maybe turned off when they are not needed. This triggers in return quite a few annoyances in the log and in the integration page. An entity that is set to on or off following power on/off device state could be tracked by integration that will stay quiet in case the related entity is off. Just to give examples: Cambridge audio triggers a failed to setup when the device is off. Same with NAS integration or printer integration.
Every day with my fronius solar inverter
I would love to have a config setting like “Expect this device/integration to be unavailable sometimes”.
HomeMatic has something similar where you can disable “service messages” for a device so you don’t get notified if it’s offline:
Agreed, that would be nice.
A actually REMOVED the integrations that discovered my Brother MFC laser printer. Because I have this printer mostly turned off. And it annoyed me to no end that Home-Assistant thought this to some error condition.
As a workaround you could ping the device, and then use Spook to disable and enable the integration based on the ping result.
(That’s what I do for the Brother integration also mentioned above)
That’s exactly what I did for the same reasons with my Brother printer.
Well unfortunately in some instances this is not a practical solution because HA restart is needed after disabling integration
The easy way would be to use the build-in logger
integration and just set the log of your integration to critical
.