Action depending status Philips Hue lamp

I use the Hue Magic node and it works fine. Now I want to perform an action on a Hue lamp but only if that lamp is turned OFF. For that I suspect that I have to request the status of that lamp and then do or not perform an action.

Am I correct? Does anyone know how to do that?

Put this node downstream of your hue light node (the blue node). And feed in a message into the Hue node.

[{"id":"abedba80.68ce98","type":"switch","z":"e12eb721.e01ba8","name":"Light","property":"payload.on","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":740,"wires":[["203f2e26.f397d2"],["f33350f1.cfd01","9494a6e5.6e54b8"]]}]

It works! I looked for the solution in the Hue node and did not think about solving it this way. Thanks for your help George.

1 Like