Skip to content

Can the payload.action passed from a nodered switch be ignored? #1533

Answered by zachowj
cameronjust asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, the action node does not support ignoring the msg.payload.action input override. This feature will likely be added in a future release, similar to the "Block input overrides" option in the current state node.

As a workaround, you can insert a change node between the MQTT node and the switch node. First, move msg.payload.action to msg.action, then add a second rule to delete msg.payload.action. Finally, in the switch node, you can check msg.action instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cameronjust
Comment options

Answer selected by cameronjust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants