I need to turn an input_boolean on or off based on the value of 1 : true , so that 1: true = on and 1: false = off .
A bit lost here as I have no idea how to get this info from my node . It’s a smart plug and it should output those values whenever the state is changed between on and off (when i press power on or off on the plug or use my HA switch) .
Anyone knows how to extract this info whenever the node outputs this data ?
It should be
msg.payload.1 from what you have posted
Use a debug node to confirm
Change tbe debug node to complete message output
Expand the output in the debug window
Use the copy path button in the debug window to copy the correct path.