Getting Cover Position

Gents,
I’m new to HA and Nodered and I am enjoying it so far.
Still, I have a small question.

I am using some Fibaro Zwave modules to control my shutters.
I can easily see and set the position of those shutters in lovelace using the sliders.

However, I was wondering how I could get the position of a shutter (and save it in a variable)?

Thanks a lot for your much appreciated support!

You can simply make a status call to the entity. Use the Events: State or the Current State Node for that. This should give you the position in a message.

If you are using the current state, you need to trigger this node my smth. You could just connect it to a Inject Node to test it out by pressing the button in the NodeRedUI.

To see all the messages, connect the state node to a debug node and set the debug node to display complete message. On the right side, you can then open the log and see all the messages to play around with

Hi and thanks for your feedback.

This is exactly what I tried first but unfortunately, what I get in the debug node is a boolean (open or closed). Not the position of the shutter:

So in lovelace I can see the position of the entity cover.livingroom is 60
The output of the current state node of the netity cover.livingroom is “Open”

Any idea?

Did you set the debug node to show the complete message and not just the payload?
I actually dont have any cover entity, but im positive that the position will be in a different message than payload.

That was it.
Showing the complete message did the trick.

The path to the current position is: data.attributes.current_position

I will figure a way to get that value from this attribute and store it in a variable.

Thanks a lot!