# Current State - IF data.attributes.current\_position

**URL:** <https://discourse.nodered.org/t/current-state-if-data-attributes-current-position/26542>\
**Category:** General\
**Created:** [12 May 2020 17:11 UTC](https://discourse.nodered.org/t/current-state-if-data-attributes-current-position/26542 "2020-05-12T17:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loony1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/loony1/32/21768_2.png) [@Loony1](https://discourse.nodered.org/u/Loony1)\
**Post date:** [12 May 2020 17:11 UTC](https://discourse.nodered.org/t/current-state-if-data-attributes-current-position/26542/1 "2020-05-12T17:11:59Z")

</div>

Hello, absolute beginner here (running HA/NodeRed for 3 days now).

So I just installed a Shelly 2.5 for one of my roller shutter and I already made some flows with it. But now Im running into a probably simple problem (for you guys) that I just can't solve myself.

I simply want to use the "current state" node to check the current position of the Shelly. This information is stored in "data.attributes.current\_position" -\>

 ![Screenshot_29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/6/06187401d3ce53fa7350cf8eb3eddc2bba9a7720.png)

How do I use this now? I tried it several ways, but I guess I'm too stupid 😃 Guessing that Im doing it completely wrong? I want to use it like "IF the current Position of the Shelly is at 90" -\>

 ![Screenshot_30](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/edfd18c10ade9dc6ad7343b84faef38ae938be55.png)

The background is, that I never completely close my roller shutters. My personal "closed" is at 85%. But obviously the Shelly entity itself shows "open" and only switches to "closed" if its at 100%

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 May 2020 17:16 UTC](https://discourse.nodered.org/t/current-state-if-data-attributes-current-position/26542/2 "2020-05-12T17:16:44Z")

</div>

That doesn't look like anything I've seen. Is that state node specific to HA? If so, then perhaps ask in the HA forum?

Ps, I don't think you should have the colon and value in that box - but as I said - I don't think this is node-red per se.

---

<div class="post-metadata">

**Author:** ![Loony1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/loony1/32/21768_2.png) [@Loony1](https://discourse.nodered.org/u/Loony1)\
**Post date:** [12 May 2020 17:18 UTC](https://discourse.nodered.org/t/current-state-if-data-attributes-current-position/26542/3 "2020-05-12T17:18:03Z")

</div>

Yes, it is HA specific, whoops. Sorry! 😃
