I have in some rooms smartified switches (shelly1) and smart lights at the same time.
This enables a scenario where you can turn of a group of smart light without using the switch, or you can use the switch to cut power to the group of smart lights, or the switch does not control power at all and only controls the group of smart lights.
What I would love to do is to control a group of smart lights, and when they are turned to off, that the smart switch additionally cuts power to the light group.
And also, when the power is switched off and the switch is used, it should turn on the power and then turn on the group of smart lights.
Of course this could be done using automations, but that seems to be very much copy and paste, if it has to be done for each switch-to-light-group combination.
Is there an entity that does combine the interplay between light groups and switches? or some ready-made automations that can be used?