Shelly Binding

I’m on the latest official release…

Where can I find this latest BLU gateway JS script? I’ll copy-paste it in the Shelly app then. :slight_smile:

The issue was that Enable Bluetooth gateway was enabled in Shelly’s UI. Shelly’s DEBUG log read Unable to start OH-BLU Scanner, make sure Shelly Gateway Support is disabled in device config.

I turned it off, as you suggested here (Shelly Binding - #3771 by markus7017), and now everything seems to work as it should.

I think it would be better if the binding documentation explicitly instructs users to disable Enable Bluetooth gateway. If you want, I can try to make a PR with changes to the README?

Sounds strange as I included 4 BLU Contacts today with gateway enabled and they work fine.

Nothing in Shelly’s DEBUG log?

Have never used logs on the Shelly‘s

Not sure if that was an implicit request for more information. :sweat_smile:

But the log is easily available if you go to your Shelly’s IP address in a browser, then click Advanced and then Diagnostics. I assume your logs will also read Unable to start OH-BLU Scanner, make sure Shelly Gateway Support is disabled in device config.

Yes, I can see that error message in the logs, but it still works.
Have now disabled the gatway option and still works…

Hi,

I have just received my new Shelly PlugS Plus as I like to use the AutoOff Timer to set a switch-off time for the plug. I defined the thing correctly and the appropriate items in my items file:

Number Shelly_1aoff "Shelly PlugS Plus 1 AutoOff Timer [%.0f]" (gShelly)  {channel="shelly:shellyplusplug:##########:relay#autoOff"}
Switch Shelly_1tactive "Shelly PlugS Plus 1 Switch" (gShelly)  {channel="shelly:shellyplusplug:##########:relay#timerActive"}

There are two issues that I like to raise:

  1. With Firmware 1.3.2 there is no more switch for AutoOff (see screenshot below)

  1. When I change the timer value in the Shelly WebUI the change is recognized in openHAB and the item shows the altered value. If I change the value in openHAB (tested with the API Explorer) then the value does not get changed on the plug (checked in WebUI):thinking:
    The documentation shows that the autoOff parameter is read/write and hence I expect that the plug should receive and apply a value sent from openHAB

What am I doing wrong?

Thanks for any hint and support :slight_smile:
Cheers Justus

Hi Markus,
do you already have some information as to whether the recently announced gen 3 shellys are supported by your binding?

I think there is a further Bug in the Binding… The button channel is not triggering any event. I see no error or warnings in the log…

Thing:

Thing shelly:shellyuni:E0xxxxxxxxx1 "WaMa_Anzeige" @ "Kueche" [deviceIp="192.yyy.1.129", userId="admin", password="secret", eventsPush=true, eventsSwitch=true, eventsButton=true]

Item:

Switch Shelly_Waschmaschine_Ausgang      "Waschmaschine"                  {channel="shelly:shellyuni:E0xxxxxxxxx1:relay2#output"}
Switch Shelly_Waschmaschine_Eingang      "Waschmaschine Switch"           {channel="shelly:shellyuni:E0xxxxxxxxx1:relay2#input"}

Rule:

rule "Reset WaMa"
when 
    Channel "shelly:shellyuni:E0xxxxxxxxx1:relay2#button" triggered SHORT_PRESSED
then{
    if (Shelly_Waschmaschine_Ausgang.state == ON){
        sendCommand(Shelly_Waschmaschine_Ausgang,OFF)
        sendCommand(WaMa_Stopflag,OFF)
    }
}
end

OH-Version: 4.2.0.M2

Hi. I have a BLU Door and Window sensor and have it connected using a Shelly Plus 1pm (UL version, I’m in Canada). I’m not sure how to get the channels populated they all read NULL values. (OH 4.1x)

Any advice or suggestions?
Craig

they are already on my desk, maybe I could add some before feature freeze for 4.2

please provide DEBUG log

upgrade to the latest DEV build


4.2-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..

Thank you, the channels are now displaying data.

Craig

Some basic funtions would be great for 4.2. Is there anything I can help with?

Did you disable Bluetooth gateway in the Shelly app/UI?

Hi thanks for the advice, the BLU device was added but no data was populated. I saw mention of not having the gateway enabled earlier in this thread so had done that as well.

Craig

Hi Simon,
Did you find a way to add Shelly1 from things files?
I have the same problem from 4.2 M3 and issue is still there in 4.2 M4

Hi Markus,
is it possible for you to make the timer countdown (see picture) available through a channel?
This way the countdown can be made visible in a widget and a subsequent action could be triggered once the timer ends.

EDIT
However, on a second look, I guess it is a bit more than simply feeding a channel as the timer value seems to be calculated in the GUI and is not available as an endpoint.
See http://192.168.178.146/rpc/Shelly.GetStatus

{
  "ble": {},
  …
  
  "switch:0": {
    "id": 0,
    "source": "WS_in",
    "output": true,
    "timer_started_at": 1719828133,
    "timer_duration": 900,
    "temperature": {
      "tC": 56.9,
      "tF": 134.4
    }
  },
 }