MCO Switch issue with dimming and set color of Philips Hue lights

Hi all,

I need help with my setup. I’ve my hous full of MCO 4 and 2 gang switches and beind mostly Philips Hue color lights. Now the issue when switching off the MCO switch the hue light bulb obviously does not have power anymore. So I have a rule which when movement has been detected the MCO switch first is toggled, and then the Hue light bulbs are set to the right color and intensity. Though this does only works randomly. Sometimes the lights are set to the right color but in most cases it is set to the default.

Anyone has a genius idea how to solve that without having the swtiches always on? Here I fear that the kids will mess up and toggle the switches.

many thanks