Hi all,
I'm learning Node Red for Home Assistant and want to access the value of the on: part of the object in the picture but can't figure it out,
It doesn't seem to be normal message with a msg.payload format ?
Any help much appreciated
Hi all,
I'm learning Node Red for Home Assistant and want to access the value of the on: part of the object in the picture but can't figure it out,
It doesn't seem to be normal message with a msg.payload format ?
Any help much appreciated
Welcome to the forum @DaveK
That is msg.on.
There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.
Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

Also I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
Thanks,
I'll check the links again but in the past using the debug and "copy path" usually works - I copy it and paste into a switch node set to msg.on with outputs testing for true or false and it works but not this time it seems?
Show is how you have configured the switch node, we are not telepathic.
What do you have downstream of the switch node?
Are there other nodes expecting to see hue, bri etc as properties of msg.payload rather than msg.bri etc?
You are testing for string true. Change the az drop down to Boolean.
Downstream at present there is just two debug nodes, in the end all i need is an off/on output
The first drop-down == has "is true" (or something similar) (I'm not at a computer to check)
You're correct, there is an 'is true' option, i'll set it later and try but i'm confident that will work, i'll post an update when i get back home ![]()
Thanks
Hi all,
happy to say that it works perfectly now, thanks for the help.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.