if I enter this therm in a text field, a false or true is also returned
I would also like to display an LED display on the page with the result.
For this I have created a function with the
code:
var new = { payload: msg.payload[“000106xxx803”].state.remoteEnable.fullRemoteControl };
return [new];
Unfortunately, this does not return false or true.
How do I have to do this correctly to get the result I want?
Can you connect a debug to the node and set the debug node to show complete message object. Then show the expanded debug so we can verify the content of the property.
Please also verify the dashboard you are using and what led node.
As it should, as you have rewritten msg.payload to boolean true, therefore msg.payload["000106xxx803"].state.remoteEnable.fullRemoteControldoes not exist any more. set the debug after the function to complete messgae object