Shelly DW2 get lost after HA restart

Hello there,

I am using the shelly DW2 as lux sensor to trigger my blinds to close as the sun is shining to strong on different windows.

The issue is happening since ever, every time I do a restart of HA or I do an upgrade, I loose all the shelly DW2, I need to go to each one, press the dipswitch so that they wake up, then trigger a restart of HA and then the entities are all back.

All other devices (no battery powered) are there !

image

To this how I use shelly :
image

Any smart way to make all these DW2 to awake with the restart ?

Thanks

You are using a custom integration for Shelly devices. This integration is deprecated.

You should migrate to the core Shelly integration.