But why not use my Hue lights for this right? I started a script in dzVents, but that had some bugs. Now i have a Blockly setup witch is easier and more stable.
Here is what i did:
- Create scenes in Hue app with the desired colors of the Hue lamps, for instance red (in my case 'Scene alarmscene' and 'Alarmscene keuken'). Add the scenes from devices to switches so you can use them in your Blockly (in my example i have two scenes, one for my kitchen and one for my living).
- Create two dummy swithces and name them 'Hue alarm' and 'Hue variable'.
The 'Alarm variable' will determine the blinking speed. I tried to let the Hue blink faster then 1 sec, but that doesn't realy work, you'll end up with irregulair blinking. I think Hue will not accept changes faster than a second.
Now you can switch the blinking on/off with switch 'Hue alarm'.
It can be done in two Blockly's without the 'Hue alarm variable' and control the Hue scenes directly, but this is more clearly for me.
Hope this is helpfull