Shelly 1PM mini switch to inaktiv

Hello, I have severalk Shelly 1PM mini triggering different automations. Some of them turn un-recognizable with the error: “Error fetching shelly1pmminig4-e4b063671d08 data: An error occurred while reconnecting to shelly1pmminig4-e4b063671d08”. I can switch the relais on/off via Shelly app however not in HA. If I am reloading a previous back-up it works but after a few days it turns again inactive. What can I please do? I searched the forum for that issue but couldnt get an answer.

Could it be that your router is giving them new IPs and HA does not find them?

I was checking on that, but the HA protocal tells me the same port as the internet router.