is it possible to read and compare the color of philips hue bulbs?

Moderator: leecollings

Post Reply
Alain
Posts: 164
Joined: Sunday 26 April 2020 5:27
Target OS: Linux
Domoticz version: 2022.1
Location: Netherlands
Contact:

is it possible to read and compare the color of philips hue bulbs?

Post by Alain »

I use a Node-Red script to look at the colour of a light and if it's green (code 254), switch on another light downstairs.

Code: Select all

[{"id":"xxxa5e.3xxx4","type":"switch","z":"6exxxxf.1xxxe3","name":"Groen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"\"g\" : 254","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":570,"y":220,"wires":[["caxxxx36.8fc788","8xxxx0c.74xxx8"]]}]
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | Qlima | Solaredge
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
kitopopo
Posts: 59
Joined: Monday 03 December 2018 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: is it possible to read and compare the color of philips hue bulbs?

Post by kitopopo »

Alain wrote: Monday 04 January 2021 22:23 I use a Node-Red script to look at the colour of a light and if it's green (code 254), switch on another light downstairs.

Code: Select all

[{"id":"xxxa5e.3xxx4","type":"switch","z":"6exxxxf.1xxxe3","name":"Groen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"\"g\" : 254","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":570,"y":220,"wires":[["caxxxx36.8fc788","8xxxx0c.74xxx8"]]}]
Hello, I had not seen for your answer, In a few days I will try node red to expand my knowledge. Thanks for your answer. Best regards
Alain
Posts: 164
Joined: Sunday 26 April 2020 5:27
Target OS: Linux
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: is it possible to read and compare the color of philips hue bulbs?

Post by Alain »

I don't know how this ended up in a thread of it's own, because I pressed reply in your original thread.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | Qlima | Solaredge
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: is it possible to read and compare the color of philips hue bulbs?

Post by waaren »

Alain wrote: Tuesday 05 January 2021 9:32 I don't know how this ended up in a thread of it's own, because I pressed reply in your original thread.
The posts were moved to an own topic because the original post was requesting a dzVents solution and it was posted in the dzVents subforum and is set to solved. Your solution was targeted at a different mechanism and has not been set to solved yet.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests