Stop/suspend a sensor?

Hi!

I would like to know if there is a way to stop/suspend a sensor.
I was looking the forum and the home-assistant page but I can’t find a solution.

I have a Synology NAS, and I have the DSM sensor set up, also I have transmission on it.
I get the data form them without any problem.

But for the night I switch off the NAS. There is a schedule on it to turn off, and turn on again at morning.
After turn off, the sensors can’t work. It’s fine.
But the hass log fills up with error messages that it cant reach the sensor/NAS.

So I’m searching a way to suspend the sensor while the NAS is off.

Any idea?

I think you’d need to suspend the platform not the single sensor. I think this needs to be built into the component. I hate when the DSM goes offline and home assistant shits the bed. It’s annoying but I haven’t found a way around it.