Hue Alarm

Moderator: leecollings

Post Reply
johnnyboy1984
Posts: 13
Joined: Thursday 14 March 2019 17:46
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Hue Alarm

Post 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
Attachments
Hue alarm 3.png
Hue alarm 3.png (27.68 KiB) Viewed 871 times
Hue alarm 2.png
Hue alarm 2.png (45.04 KiB) Viewed 871 times
Hue alarm 1.png
Hue alarm 1.png (9.04 KiB) Viewed 871 times
Alain
Posts: 166
Joined: Sunday 26 April 2020 5:27
Target OS: Linux
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: Hue Alarm

Post 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.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | Qlima | Solaredge
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Hue Alarm

Post by EdwinK »

I do hope someone will make this into a dzvents event.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
johnnyboy1984
Posts: 13
Joined: Thursday 14 March 2019 17:46
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Hue Alarm

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest