Shelly Binding

hmm, strange. I need to check the build output, maybe there is a typo in the XML descriptions

I rebuild and updated the 5.0.0 snapshot, could someone please verify that it shows all thing types when adding a thing manually?

Does anyone have real experience with a Shelly Flood? Mine (see post I replied to) keeps being unresponsive in openHAB. I wonder whether that’s because it only seldom sends out data, and the binding only seems to ‘look’ for data with regular intervals. So the packets miss the window.

Is that possible, @markus7017?

I have on in the laundry. Once it is ONLINE, it is working fine. It sends updates via Coap.

I have 6 Shelly Flood which work flawlessly. But not with the binding. The binding does not work reliably with battery devices and every (OH) restart will become a gamble whether your device will come online or not.

Instead just configure MQTT on the shelly flood. It’s a old Gen1 device so the MQTT interface is nice and easy. Works rock solid:

shelly_flood.thing

Thing mqtt:topic:localhost:ShellyFlood_Device2     "ShellyFlood: Device 2"  (mqtt:broker:localhost)    @ "ROOM" [
        availabilityTopic="shellies/flood/device2/online", payloadAvailable="ONLINE", payloadNotAvailable="OFFLINE"
    ]
{
  Channels:
    Type switch : online        "Online"            [ stateTopic="shellies/flood/device2/online",          on="true", off="false" ]
    Type switch : flood         "Flood"             [ stateTopic="shellies/flood/device2/sensor/flood",    on="true", off="false" ]
    Type number : battery       "Battery"           [ stateTopic="shellies/flood/device2/sensor/battery",         unit="%"]
    Type number : temperature   "Temperature"       [ stateTopic="shellies/flood/device2/sensor/temperature",     unit="°C"]
    Type number : error         "Error"             [ stateTopic="shellies/flood/device2/sensor/error"]
    Type string : wake_reasons  "Wakeup reasons"    [ stateTopic="shellies/flood/device2/sensor/act_reasons"]
}
1 Like

I have two shelly flood since 1/2 year in use.
OH is on 4.3.5 on a PI5
They work as all other battery based devices. Once a day, they deliver all the values.
I monitor them, when they has been the last time online.
Never had any issues so long with them.
Additional I have created a rule, which sends me a mail and a WhatsApp, when the battery level is under 20% so I can replace the battery. I monitor also my botton1’s, that I can recharge them when they become under 20%.

Can you also rebuild 4.3.6 same problem.

I do not get the url for the old version.

The old version 1.5.1 is not more offered from the backend site from shelly, since two weeks.
At the moment only 1.6.2 is offert.

So please change the 3.4.6 binding also with the fix for the 1.6.x and the current problem with the list of devices @markus7017 .

The 5.0 binding is not running as standalone on a 3.4.5 installation. I have always to add the offical shelly binding additional.

1 Like

3.4.6 binding was lacking many devices so i wait for a new build.

3.4.6 or 4.3.6

does the 5.0.0 rebuild fixes the issue?

Maybe you want to share your scripts?

4.3.6, sorry :slight_smile:

On my PI5 with a 4.3.5 installation, the 5.0.0 binding can be copied in the addon folder, but after reboot it is not listet. Only after the install the offical binding, will show it for me in the list of bindings. Feature install coap, etc, or california in the “OH console” is there.
So that means I need to add the offical binding, then I have two binding where I can choose:

When then adding a new shelly 1 plus, (topline from the two listet), (after I have first deleted the thing), it will be added, but has the same problem, that it went into the problem with “websocket error”

Meanwhile the Shelly has gotten a 1.6.2 FW.

Which script to share?

again, do not install the 5.0.0 (Java 21) binding on 4.3.6 (Java 17)

I also updated the 4.3.6 build


5.0.0-DEV |4.3.6-DEV | README | READMEbeta
Avdanced Users | Shelly Manager | Bugs/Features | API Doc
Note: The DEV build is always newer than the version in the official Distro or Milestone builds..

Got it with the different bindings 4.3.6 and 5.0.0
Downloaded the latest version of the 4.3.6 binding, and installed it.

The things become all online again after a while…
But no one of them has any channels:

Also adding is not possible, no device types are there:

The binding is installed add active and also listed.

ok, I need to setup a 4.x system

2 Likes

Hi @markus7017 , do you have a recommendation?
After upgrading to the latest 5.0.0 binding and to firmware version 1.62 all my Gen2 devices appear additionally in the inbox.

They have already been added as a thing with their device ID, like

shelly:shellyplus1:b8d61a86561c

Now, they are additionally in the inbox with their device name, like

shelly:shellyplus1:klingel

What to do? Keep the “old” ones or add the new ones which will be a lot of work to move linked items to the new thing.

this seems to be a bug
keep the old ones

1 Like

Hello wehre do I find the new jar file for OH5.0 ?

right here