# Get Shelly Roller-Shutter status on change event

**URL:** https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129
**Category:** Dashboard
**Created:** [10 June 2020 16:05 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129 "2020-06-10T16:05:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sempel](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Sempel](https://discourse.nodered.org/u/Sempel)
#### Post date: [10 June 2020 16:05 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/1 "2020-06-10T16:05:53Z")

</div>

HEy,

ich just created a few flows and I am really new to Node-Red - but I am learning quick 😉

My challenge: Ich have some shelly roller shutter modules which I would like to integrate in the GUI. I already get the status and show on the dashboard which status a shutter has.

But: I would like to get the status from the roller-shutter when it is changed (by any interaction, button whatever) and also display it on the GUI.

How am I able to check periodically the status (I do that by inject-node every second now) without flooding the system every second?

WHat is the best way to realize this scenario? I would prefer if the shelly could push a message to node-red if the status changes. Is there any way to do that - I do not have any mptt-instance inbetween, only ccu3 + node-red -\> shelly 2,5

Thanks a lot guys!

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [10 June 2020 16:44 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/2 "2020-06-10T16:44:35Z")

</div>

Hi, welcome to the forum.

You could, I believe, do that with MQTT.

---

<div class="post-metadata">

### Author: ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)
#### Post date: [10 June 2020 17:18 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/3 "2020-06-10T17:18:04Z")

</div>

I would use the built-in mqtt API. You get the state `open, close and stop` and the position `0-100` from the shelly2.5 device.

[https://shelly-api-docs.shelly.cloud/#shelly2-5-mqtt](https://shelly-api-docs.shelly.cloud/#shelly2-5-mqtt)

---

<div class="post-metadata">

### Author: ![Sempel](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Sempel](https://discourse.nodered.org/u/Sempel)
#### Post date: [10 June 2020 18:22 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/4 "2020-06-10T18:22:04Z")

</div>

soinds great! Thanks!

Could anyone give me a hint regarding the logical order of the nodes i have to create?

Thx!

---

<div class="post-metadata">

### Author: ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)
#### Post date: [10 June 2020 19:13 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/5 "2020-06-10T19:13:01Z")

</div>

I use two mqtt-in nodes e.g. for the gardenBlind:

`shellies/gardenBlind/roller/0`

`shellies/gardenBlind/roller/0/pos`

You have to configure the shelly2.5 mqtt API and you also need a mqtt-broker (e.g. mosquitto).

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [10 June 2020 19:52 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/6 "2020-06-10T19:52:11Z")

</div>

Just a note and an alternative  
If you use mqtt you will not be able to use the shelly cloud, as it is one or the other.  
Alternatively you can configure the shelly to send http request to node red when they are switched. You could set up a http in node to handle these request and up date your dashboard from there.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [24 June 2020 19:52 UTC](https://discourse.nodered.org/t/get-shelly-roller-shutter-status-on-change-event/28129/7 "2020-06-24T19:52:17Z")

</div>

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