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
201 stars 68 forks source link

Trigger light event only when a command was sent to the light #247

Open adams-family opened 3 years ago

adams-family commented 3 years ago

I have the following setup:

image

I want to daisy chain some more events after the light has been turned on, for example saving it's last state.

My problem is that the node that currently contains the debug message is triggered every time the light changes, for example when someone turns it on/off with a Hue tap or phone app. What I'd like to do is to make this node passive: only emit an event on its output when a command was sent to its input. "Disabling events from this node" also disables the immediate output after a command has been sent which I need to save the last state.

image

Thanks for any help!