Page 1 of 1

Hue Alarm

Posted: Tuesday 02 June 2020 9:44
by johnnyboy1984
My domoticz main functionality is an alarm for my house. My first alarm light was a flash light controlled by a plug when my alarm would go off.
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'.
Now create the following three Blockly's.
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

Re: Hue Alarm

Posted: Thursday 16 July 2020 2:46
by Alain
I've been thinking about doing something like this, but then not flashing the Hue lights (although it would be a nice addition) but sounding an alarm by switching a TP-link plug on with a siren connected to it.

Only problem is that the motion sensors aren't pet-proof. Our cat triggers the motion sensors as she walks into the room. This would then give a false alarm, if we were to use these.

Re: Hue Alarm

Posted: Thursday 16 July 2020 14:36
by EdwinK
I do hope someone will make this into a dzvents event.

Re: Hue Alarm

Posted: Thursday 16 July 2020 15:26
by johnnyboy1984
i tried to make a dzvents, but the Hue response was not ok. The toggling caused the Hue to fail. it seems like it couldn't handle the quick switching commands. Weird, because with Blockly it is not a problem.