How to stop/start receiving data from a tasmota device like sonoff pow

Hello,
I need to ignore the data sent from a sonoff pow (tasmoted), until the solar inverter is off (in the night). I’ve thought to do it with an automation, but I can’t find any service to disable/enable an entity automatically.

The last beach would be powering off the sonoff pow, by another sonoff, but I’d like a more elgant solution.

How could I do?