node-red-contrib-huemagic icon indicating copy to clipboard operation
node-red-contrib-huemagic copied to clipboard

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

Open adams-family opened this issue 2 years ago • 0 comments

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!

adams-family avatar Sep 14 '21 07:09 adams-family