QNimbus / node-red-contrib-openhab-v2

MIT License
9 stars 3 forks source link

using values from nested objects #33

Open egolus opened 3 years ago

egolus commented 3 years ago

in a out node I'm unable to read a value from a nested object by seting the payload in the node-config. so if I use a get node to read an item from openhab and I want to write the state-value to another openhab item, I always have to write it to the top level of the message to use it in the out node.

with a single item this may be fine, but with the ability to read multiple items with a single get node, this gets quite cumbersome

If I interpret it correctly, here you just use the string set in the gui to read from the msg-object. This won't work with nested values

edit: I think that's what util.getMessageProperty is for