how to use the function node to get the value of the msg.properties.path.
i try this [ 'L1', 'Lighting', payload["/Favorites/L1_KW/Total_kW"]], but fail.
Thank you
how to use the function node to get the value of the msg.properties.path.
i try this [ 'L1', 'Lighting', payload["/Favorites/L1_KW/Total_kW"]], but fail.
Thank you
Should it be like this?
[ 'L1', 'Lighting', msg.payload["/Favorites/L1_KW/Total_kW"]]
[ 'L1', 'Lighting', {{payload./Favorites/L1_KW/Total_kW}}]
I use this can read it.
Looks more like a template node than a function.
I moved your post to the General category, You don't seem to be developing a node.