Shelly devices randomly disconnects

The debug file will automatically download when you turn debug off.

And you can follow this guide for more detailed debugging ideas.

EDIT: Forgot to include the link to the guide… 2024.5+: Tracking down instability issues caused by integrations.

Finally, you can log an issue on GitHub with the log info.