# Shelly Binding

**URL:** <https://community.openhab.org/t/shelly-binding/56862>\
**Category:** Bindings\
**Tags:** binding, shelly\
**Created:** [November 16, 2018, 7:51am UTC](https://community.openhab.org/t/shelly-binding/56862 "2018-11-16T07:51:02Z")\
**Posts on this page:** 20\
**Page:** 257

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 11, 2026, 4:25pm UTC](https://community.openhab.org/t/shelly-binding/56862/5241 "2026-05-11T16:25:51Z")

</div>

```auto
openhab> bundle:list | grep -i shelly
368 │ Active │ 80 │ 5.2.0.202605080611 │ openHAB Add-ons :: Bundles :: Shelly Binding

```

Running it since 9/5, and no issues yet.

---

<div class="post-metadata">

**Author:** ![Harald\_Pott](https://community.openhab.org/user_avatar/community.openhab.org/harald_pott/32/105526_2.png) [@Harald\_Pott](https://community.openhab.org/u/Harald_Pott)\
**Post date:** [May 11, 2026, 4:59pm UTC](https://community.openhab.org/t/shelly-binding/56862/5242 "2026-05-11T16:59:06Z")

</div>

After approx. two days I am here with the Smoke Sensors:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/9/f/9f3cf917c43decb9826b39d3cfee4851eea8fe84.png)  
With the binding:  
 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/2/1/21b2669917eebb8d766a5a1446d23754ea03afbf.png)

Rest of the devices or online and working.

---

<div class="post-metadata">

**Author:** ![alaub81](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@alaub81](https://community.openhab.org/u/alaub81)\
**Post date:** [May 11, 2026, 6:17pm UTC](https://community.openhab.org/t/shelly-binding/56862/5243 "2026-05-11T18:17:29Z")

</div>

I have 2 smoke sensors, too. All good on my side. Perhaps check if the correct outbound web socket connection is set on the devices.

---

<div class="post-metadata">

**Author:** ![scheuerer](https://community.openhab.org/user_avatar/community.openhab.org/scheuerer/32/47609_2.png) [@scheuerer](https://community.openhab.org/u/scheuerer)\
**Post date:** [May 11, 2026, 6:33pm UTC](https://community.openhab.org/t/shelly-binding/56862/5244 "2026-05-11T18:33:13Z")

</div>

What is the different between this one which is online, and the Rest?

---

<div class="post-metadata">

**Author:** ![Harald\_Pott](https://community.openhab.org/user_avatar/community.openhab.org/harald_pott/32/105526_2.png) [@Harald\_Pott](https://community.openhab.org/u/Harald_Pott)\
**Post date:** [May 11, 2026, 7:12pm UTC](https://community.openhab.org/t/shelly-binding/56862/5245 "2026-05-11T19:12:58Z")

</div>

Thanks for the reply. I just checked the outbound websocket. All devices have got the same settings:

- Enabled
- ca.pem
- ws://:8080/shelly/wsevent

Is this correct?

---

<div class="post-metadata">

**Author:** ![alaub81](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@alaub81](https://community.openhab.org/u/alaub81)\
**Post date:** [May 11, 2026, 7:25pm UTC](https://community.openhab.org/t/shelly-binding/56862/5246 "2026-05-11T19:25:06Z")

</div>

> [@Harald\_Pott](#):
>
> ws://:8080/shelly/wsevent

IP address of your openhab server is missing. or did you delete it to anonymize it?

---

<div class="post-metadata">

**Author:** ![Harald\_Pott](https://community.openhab.org/user_avatar/community.openhab.org/harald_pott/32/105526_2.png) [@Harald\_Pott](https://community.openhab.org/u/Harald_Pott)\
**Post date:** [May 11, 2026, 7:42pm UTC](https://community.openhab.org/t/shelly-binding/56862/5247 "2026-05-11T19:42:36Z")

</div>

> [@alaub81](#):
>
> or did you delete it to anonymize it?

Yes. Sorry.

---

<div class="post-metadata">

**Author:** ![Harald\_Pott](https://community.openhab.org/user_avatar/community.openhab.org/harald_pott/32/105526_2.png) [@Harald\_Pott](https://community.openhab.org/u/Harald_Pott)\
**Post date:** [May 11, 2026, 7:43pm UTC](https://community.openhab.org/t/shelly-binding/56862/5248 "2026-05-11T19:43:58Z")

</div>

I can not see any difference.

Nevertheless, I now delete all smoke things and re-added them. Let’s see what will happen.

---

<div class="post-metadata">

**Author:** ![milo](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@milo](https://community.openhab.org/u/milo)\
**Post date:** [May 12, 2026, 4:22am UTC](https://community.openhab.org/t/shelly-binding/56862/5249 "2026-05-12T04:22:36Z")

</div>

I Guess the difference is the openhab version…I am using the new oh5.2 snapshot already

---

<div class="post-metadata">

**Author:** ![Harald\_Pott](https://community.openhab.org/user_avatar/community.openhab.org/harald_pott/32/105526_2.png) [@Harald\_Pott](https://community.openhab.org/u/Harald_Pott)\
**Post date:** [May 12, 2026, 6:03am UTC](https://community.openhab.org/t/shelly-binding/56862/5250 "2026-05-12T06:03:33Z")

</div>

That is true. I am on OH 5.1.4.

But, after deleting and re-adding the things, this morning they are all online.

---

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 12, 2026, 6:41am UTC](https://community.openhab.org/t/shelly-binding/56862/5251 "2026-05-12T06:41:31Z")

</div>

@markus7017, I did have an issue with BLU (Motion) devices (`shellyblumotion`), which sometimes didn’t seem to transfer anything, until I (again) re-initialized the gateway Thing. I thought I’d delete all Things, and recreate them, as your readme states.

Then openHAB didn’t find the BLU Things during the scan, but I’ve seen that before. I suppose they’re in some kind of cache. I tried adding the Things manually, but no response…

I created a `shellyblumotion` Thing, with `Thing UID` and `MAC address` set to the MAC address (without colons). That’s all I should set, right? (I also made sure the gateway Things have `Enable BLU Gateway Support` enabled.)

Does anyone have any idea how to resolve this? It’s quite critical, as the lady of the house expects the motion detectors to trigger lights. If this doesn’t work, I’ll be in trouble. 😉

---

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 12, 2026, 7:11am UTC](https://community.openhab.org/t/shelly-binding/56862/5252 "2026-05-12T07:11:54Z")

</div>

Mmm, I sort of figured out how to fix the real world.

As before (which is the reason I started the delete-everything-crusade), I had to disable, and then re-enable the gateway Thing. I assume that, because I had first created the IP Things, and only then the BLU Things, I had to do that again now.

In any case, there is a problem with the binding, it seems… This need to re-enable comes back at a certain point, as I didn’t have the problem yesterday, but it was there this morning (and openHAB had not been restarted).

---

<div class="post-metadata">

**Author:** ![alaub81](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@alaub81](https://community.openhab.org/u/alaub81)\
**Post date:** [May 12, 2026, 7:24am UTC](https://community.openhab.org/t/shelly-binding/56862/5253 "2026-05-12T07:24:15Z")

</div>

I had similar issues with older dev builds (last two dev builds are ok, I think) After restarting my openHAB setup, some of my BLU H&T sensors stoped getting new values. So I programmed a switch item and a rule, which disabled and then enabled the BLU GW Things, after that, all was running until next restart of openHAB. But I didn’t see that issue with the last two dev builds.

Are you on the latest dev build? I am on openHAB 5.1.4 and Shelly Binding 5.2.0.202605080611.

btw. My Motion Sensors are triggering my lights directly with a shelly js script, have a look at my GitHub repo: [GitHub - alaub81/shelly · GitHub](https://github.com/alaub81/shelly) - it’s faster then using openHAB rules 😉

---

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 12, 2026, 7:28am UTC](https://community.openhab.org/t/shelly-binding/56862/5254 "2026-05-12T07:28:38Z")

</div>

By the way, when I disable a Shelly Thing, I see this in the regular logs:

```auto
09:26:50.234 [WARN] [b.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.

```

Is that by design?

---

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 12, 2026, 7:29am UTC](https://community.openhab.org/t/shelly-binding/56862/5255 "2026-05-12T07:29:53Z")

</div>

> [@alaub81](#):
>
> Are you on the latest dev build? I am on openHAB 5.1.4 and Shelly Binding 5.2.0.202605080611.

```auto
openhab> bundle:list | grep -i shelly
368 │ Active │ 80 │ 5.2.0.202605080611 │ openHAB Add-ons :: Bundles :: Shelly Binding

```

> [@alaub81](#):
>
> btw. My Motion Sensors are triggering my lights directly with a shelly js script, have a look at my GitHub repo: [GitHub - alaub81/shelly · GitHub](https://github.com/alaub81/shelly) - it’s faster then using openHAB rules 😉

I assume the lights you control are also controlled via Shelly? My lights are controlled through the EnOcean binding.

---

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 12, 2026, 7:52am UTC](https://community.openhab.org/t/shelly-binding/56862/5256 "2026-05-12T07:52:36Z")

</div>

Another issue, which I don’t understand at all, because everything worked yesterday, and I didn’t change anything. My BLU Motion devices don’t seem to transfer motion events to the channels, although they are registered in the logs…

---

<div class="post-metadata">

**Author:** ![alaub81](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@alaub81](https://community.openhab.org/u/alaub81)\
**Post date:** [May 12, 2026, 8:03am UTC](https://community.openhab.org/t/shelly-binding/56862/5257 "2026-05-12T08:03:48Z")

</div>

> [@ErikDB](#):
>
> I assume the lights you control are also controlled via Shelly? My lights are controlled through the EnOcean binding.

yes, my lights are controlled by shelly relays

---

<div class="post-metadata">

**Author:** ![Harald\_Pott](https://community.openhab.org/user_avatar/community.openhab.org/harald_pott/32/105526_2.png) [@Harald\_Pott](https://community.openhab.org/u/Harald_Pott)\
**Post date:** [May 12, 2026, 8:40am UTC](https://community.openhab.org/t/shelly-binding/56862/5258 "2026-05-12T08:40:06Z")

</div>

![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/1/418cbf57573522e1ad84d571bc99b7dfb0aa011a.png)  
I think I shall wait for the next release.

---

<div class="post-metadata">

**Author:** ![Nadahar](https://community.openhab.org/user_avatar/community.openhab.org/nadahar/32/194556_2.png) [@Nadahar](https://community.openhab.org/u/Nadahar)\
**Post date:** [May 12, 2026, 12:24pm UTC](https://community.openhab.org/t/shelly-binding/56862/5259 "2026-05-12T12:24:21Z")

</div>

> [@ErikDB](#):
>
> Is that by design?

Hehe, it’s not supposed to happen, but it _can_ happen if things are out of sync. When you disable a Thing, the `ThingHandler` goes through a “dispose procedure” to release all resources. From that point on, the `ThingHandler` can’t perform “normal duties” like updating the status, but some thread didn’t get the memo that it had been disposed, and still tried. Most likely the thread was never notified that it should shut down/abort when disposal of the handler was started.

Is this with one of the latest dev builds?

---

<div class="post-metadata">

**Author:** ![ErikDB](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@ErikDB](https://community.openhab.org/u/ErikDB)\
**Post date:** [May 12, 2026, 12:33pm UTC](https://community.openhab.org/t/shelly-binding/56862/5260 "2026-05-12T12:33:44Z")

</div>

Yes, but maybe it’s not a Shelly issue: [FroniusWattpilotHandler tried updating the thing status although the handler was already disposed - #3 by ErikDB](https://community.openhab.org/t/froniuswattpilothandler-tried-updating-the-thing-status-although-the-handler-was-already-disposed/169271/3)

[Previous page](https://community.openhab.org/t/shelly-binding/56862.md?page=256)

[Next page](https://community.openhab.org/t/shelly-binding/56862.md?page=258)
