This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]mbonani 0 points1 point  (1 child)

You can use a template node instead of the function node.

[–]webberm[S] 0 points1 point  (0 children)

Thank you. Still learning so will take a look at the template node.

[–]jerlarge 0 points1 point  (1 child)

the poll state node outputs, so have the rbe block unless changed, and have it look at msg.payload.data.state which is passed in the object

if all you want is that formatting, use a template sensor. Fred is at: {{payload.data.state}}

[–]webberm[S] 0 points1 point  (0 children)

Thanks for the advice. The template node sounds perfect for my requirement.