Pass msg.payload through 'current state' note

Hi,

How can I pass the msg.payload through a ‘current state’ note so that input msg.payload = output msg. payload of the ‘current state’ note? I have a Hue Switch but before I use I ‘call service’ node I have to check the state of a different helper but so far I get on / off and not ‘on_press’ ‘off_press’ etc. at the end of the ‘current state’ note.

Thanks for your help!

You can either move the wanted input msg.payload to something else, and it will pass through the node, or you can change the output properties so as to capture the required output from the current state node into something other than msg.payload.

This node is very flexible in how you use it.

1 Like

That’s easier than I thought. Thanks :blush: