Control smart lights with Shelly with automated detached mode

Hi,

i stumbled over this idea and it might be the solution for my setup-problems. Now I was asking myself: as long as the switch is in detached mode, how do you control the zigbee bulbs? A script?

Would be awesome if you could help.

Regards
Philipp