Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
200 stars 67 forks source link

query scense #87

Closed JueWes closed 2 years ago

JueWes commented 5 years ago

Is there a way to find out which scene is set for a group, e.g. to receive information about manual (via the physical Hue Switch) scene changes? Currently the scene node sends an event (which does include info about the scene that is currently set) only after receiving a command. If the HueScene node would offer a way to make it provide the currently set scene, I could use HueSwitch.on.long_released to find out what teh scene has been set to manually.

drasier commented 4 years ago

This may not answer your question but I managed to use the "Hue Rule" module to make a scene event handler. Every time a scene is triggered in the Hue System a rule is being launched. It takes a little bit of time and debugging (Hue Bridge) to find out which rule ID match each scene.

imagen

So in this example, every time the scene "aurora" is set up the rule ID:37 is triggered.

I used this to keep my Nanoleaf Canvas synced with my hue lights and it works great.

Hope it helps.