Scan_interval for switch.command_line's state

I have defined command_line switches where the state command takes around 40 seconds to return value.

In effect I’m receiving a lot of useless warnings in the logs.

WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.philipstv is taking over 10 seconds

Do you think it will be possible to implement that feature in similar way its done for example for hue ?


Sorry, this isn’t a direct answer to your question, but you can resolve the logging problem by configuring the logging component

    homeassistant.components.switch: critical

Thank you, however this would hide all errors, including real operational errors, that for example command ON/OFF was not able to run, not only the particular update state error.

Sure, so if you just wanted to not log the warnings, you could set the level to ERROR
details are here: