Shelly Binding

Hi Stefan, welcome to the club :wink:

Please check the README, it lists the supported devices.
I currently work on the RGBW2 integration supported by @igi with testig.
The current status could be found in the beta1 branch on github, bis this build is not yet released.
It works in general, but there are things related to color & co, which prevent from using it. I think those will be solved over the weekend.

1 Like

beta1 is coming soon. would be nice if someone could do some additional testing before I close the release. What’s in?

  • Shelly 1, 1PM relays incl. power meter
  • Shelly 2, 2.5 in relay or roller mode incl. OH roller shutter control and positioning
  • RGBW2 in color and white mode incl. Color Picker - many many thanks to @igi
  • Shelly HT, Plug-S (Plug supposed to work too)
  • Shelly Bulb will be finalized soon
  • Shelly Sense in implementation, maybe I could include this in the final beta1 (@MHerbst ;-))
  • in roller mode the power meters are accumulated
  • various bug fixes, decimals for power etc.

Known issues so far:

  • test for RGBW2 white mode not completed
  • not sure if the Shelly 2 supports the last min 1/2/3 power even if it returns 0.0 values on /status
  • Bulb and Sense implementation is work in progress (80% done)

I’m still looking for someone with a Shelly Smoke and Plug (Plug-S already verified)
The new flood and 1EM will be supported when the API doc is updated, but I need someone with those devices. Same with Shelly Eye.

If you want to support a stable beta1 download the latest build from branch beta1-pre
https://github.com/markus7017/org.openhab.binding.shelly/blob/beta1-pre1/target/org.openhab.binding.shelly-2.4.0-SNAPSHOT.jar

1 Like

we finished implementation of RGBW2 in color and white mode and fixed some small issues around roller positioning. Now the last thing on the list is the handling of the LEDs for the Plug-S.

Bulb and Sense support will be included as is. I need @MHerbst for testing unless nobody else has those devices.

Still looking for contributors to do some testing before closing the release. So far it looks good, but confirmation from some other installations would be helpful.go community go :slight_smile:

@markus7017

I installed the binding against the 2.5.0 M1 test build.

First results;

Shelly 2.5 rolling shutter

  • Automatic discovery of switch and rolling shutters types (nice!)
  • Rolling shutter up/down/stop works without any problem.
  • Rolling shutter direct position entry works without any problem.
  • Values in Paper UI are updated when I control the rolling shutter from the official Shelly App.

Shelly 2.5 switch

  • Automatic discovery of switch and rolling shutters types (nice!)
  • Both switches on/off work without any problem.
  • Values position of switch and power in Paper UI are updated when I control the physical switch manually
  • Values position of switch and power in Paper UI are updated when I control the switch in the Shelly app

RGBW2

  • Automatic discovery works
  • I can’t control the RGBW2 at all. On/Off doesn’t work isn’t responsive. Power meter shows -NaN. I can’t control colours, brightness, saturation.
  • In paper UI the values are not updated when I change the RGBW2 through the Shelly App.

Is there any additional configuration in the shelly app or on the RGBW2 needed?

@janser1

You downloaded last beta1-pre1 version? What is your Bundle-Version if you look within the JAR in /META-INF/MANIFEST.MF?
What is your firmware version?
For me RGBW2 works as expected. Also the changes made from Web GUI are synchronised with OH within 60 seconds update cycle.

@igi

You downloaded last beta1-pre1 version?

yes

What is your Bundle-Version if you look within the JAR in /META-INF/MANIFEST.MF?

2.4.0.201907271416

What is your firmware version?

20190711-084448/v1.5.0-hotfix4@3b4f7414

I’m also running the RGBW2 through MQTT on a 2.4.0 instance as is described here. But I can’t imagine that that has any impact.

That is too old. The latest is from today: 2.4.0.201908051316

I notice I get a 400 Bad request error in the PaperUI every now and then when I control the RGBW2

Can you check the git link? I cloned it this morning.

If you set the color in color picker to the right maximum? There is a bug in OH 2.4 runtime:

I downloaded https://github.com/markus7017/org.openhab.binding.shelly/raw/beta1-pre1/target/org.openhab.binding.shelly-2.4.0-SNAPSHOT.jar 1 hour ago.
May be @markus7017 can help.

Ok the bad request is explained. I’ll download the jar file again and see what happens. Let’s hope I made a mistake this morning and that’ll work this time.

Thank you for your help so far.

I don’t use MQTT. Enabling MQTT just disables the cloud connection. I also don’t think there is an impact with HTTP API.

Update on the RGBW2:

Apparently I had an old jar file:

On/off switch is working
Power output is working
Channels Red, green, blue, white, gain are working in Paper UI when a value is entered manually.

I can’t link the Effects nor the Colour temperature channel in the Paper UI. The items are created but are not linked.

Sliders: Color settings, Brightness and Saturation are not working in PaperUI.

Settings are not updated in the PaperUI when I update the RGBW2 in the Shelly app.

I also disabled MQTT on the RGBW2.

Just contact @markus7017
All that is working for me with the latest version.

no, the bindinng doesn’t use mqtt or the cloud connection
the local http api access is independent

you need to delete all things, clean out json db and also do a “openhab-cli clear-cache”
if you have left overs you have a good chance that the channel linking/updates do not work correctly.
refer to the README, section “Before installing this as an update:”
those mostly explains those strange side effects

I don’t know how the binding can get access to the build timestamp. If seems to be possible, because the OH console displays that information, but so far I didn’t find a way myself - maybe others could help. The firmware is printed to the low file and can be found in the thing properties. The binding checks for version 1.5+, otherwise you’ll see a warning / recommendation to consider an update.

conclusion: RGBW2 should be fully working in color and white mode

Looks like we got a winner.

It’s fully functional as far as I can tell. I’ll continue to add my other 3 RGBW2 tomorrow and continue my tests.

@markus7017 @igi Great job guys! Thank you for all your efforts.

@janser1 great :+1:
Do you have only RGB stripes or also white only? I’ve tested the white mode on RGBW2 only with RGBW LED stripe.

@janser1 thanks in supporting us, that’s excactly the feedback I’m looking for :slight_smile:
please also re-run the test with your relays and the roller (you did them with an old version)

Do you have only RGB stripes or also white only? I’ve tested the white mode on RGBW2 only with RGBW LED stripe.

@igi - (Un)fortunately I only have RGBW strips.

@markus7017 - Test results will take some time as most of the devices are intended for my hometheater and it’ll take some time to set everything up. The rolling shutters are for my projection screen and projector lift. The switches are for some lights and the RGBW’s are for mood/accent lights.

I’m aiming for a one touch start and stop of the entire setup.