Input control of Dashboard switch

The two switch nodes can be combined so you just need the join and a switch, by configuring the switch like this
image
If the topic is "value" then the JSONata expression evaluates to true or false so the message goes to o/p 1 or 2 as appropriate, but if the topic is not "value" then the expression evaluates to 0 so neither of the following tests is satisfied and no message is sent.

2 Likes