Thank you for your inputs. It seems the problem lies with the shelly homey app's "turn off" command. I used the built in timer instead and now it has been online a long time.
Robert_M. I'm using the Google Home app to assign the MAC-adress to a fixed IP, not via Shelly settings.