Shelly Gen1 devisec not working anymore after migration

Hi,
today I migrated my HA from Pi4 to Pi5. Everything is working fine, except my Shelly EM3 and plug S. Both are Gen1 devices, so CoIoT is configured (IP and port are correct). Both are working fine via Web access and in Shelly app. Only HA cannot find them anymore. Shelly and HA are in the same subnet. All other Shelly (Gen3) are working correctly.
HA doesn´t find both devices automatically, I cannot add them manually… I have no idea anymore. Can someone help please?
Br, Michael

For Test, use „mcast“

I solved it: I had to do a factory reset for both Shellies and to reconfigure CoIoT. No idea why this was needed, but now it workes as expected.