Run sensor (component) only under 'online' condition? Prevent hundreds of errors when offline

HI,

Having had a few network issues Ive experienced major error notification creation in the HA frontend…

Googlemaps being one of the major error throwers, and also Nederlands Spoorwegen https://www.home-assistant.io/components/sensor.nederlandse_spoorwegen/

Is it possible to have these sensors only operate when online? They’re useless anyway when offline, but don’t need to throw many hundreds of errors…

Cheers,
Marius

1 Like

Looking for the same.