How to get the msg.properties.path value

image
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. :grinning:

I moved your post to the General category, You don't seem to be developing a node.

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