Hue GU10 color works well with alexa, but not with iobroker blockly

Hue GU10 color works well with alexa voice Control, but sometimes not with iobroker blockly triggered by Motion Sensor, triggering an iob scene.
All devices in that scene are switching on and off, but the colored one ist sometimes not switching off, but on works well. In this Case the Off command by voice also sent thru deconz still works.
Deconz runs on a raspi and ist directly linked to iobroker and by Alexa Skill.
In some rare cases the switches to blue light while commanded to warm White in and hangs Up, only Power resets helps then.

How can i fix this?

That sounds like a frustrating inconsistency. If Alexa handles the “off” command reliably but Blockly via ioBroker doesn’t, it could be a timing or state sync issue. Sometimes, when multiple devices are controlled in a scene, especially over Zigbee (via deCONZ), certain commands may not fully transmit due to congestion or latency. You might try adding a slight delay before the “off” command to the GU10, or even duplicate the off command after a second or two as a fallback.