Lights on after losong connection

Hey everyone.

Do you have the same problem as I have?

When I restart home assistant or my internet router all the lights plugged to one specific sonoff TX turn on. I am not necessarily talking about a power outage, it happens if I just restart Homeassistant

What should I do to fix this?