How to use pay load in one text output trigger color applied to another?

The last thing you need is different people suggesting different, possibly conflicting approaches, so I'm out.

I hope you get it working. :grinning:

Good news, Its case sensitive, I made VFO > vfo on label, and Sub is responding Cyan now, just need to work out how to do freq now ? Thankyou all for your patience with me.

Ok at the finish line, had to update VFO function to ;

msg.payload = msg.payload.substring(0, msg.payload.indexOf("\n"));
if (msg.payload == "Sub") {
    msg.className = "text-cyan";
}
if (msg.payload == "Main") {
    msg.className = "";
}
return msg;

To get Main back to white on switch to Main (It was staying cyan)

Set change node to freq to ;

Set as advised by Steve

Thankyou all very much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.