Shelly Binding

Do you have CoIoT events enabled in the thing config or autocoiot in the binding config, zry to disable both

Thank you Markus,
I disabled the auto-enabkle CoIoT in the shelly bindings and restartet the raspberry pi. Now it looks good.

Now it is back. Only 40 minutes without this logging spam. The shelly.bindings looks like this:

Blockquote
:org.apache.felix.configadmin.revision:=L"1"
autoCoIoT=B"false"
defaultPassword=“admin”
defaultUserId=“admin”
service.pid=“binding.shelly”

what else can I try?

@Knightshift @MOS @thewiep

I’ve updated the DEV build with better handling of input/inputEvent/inputEventCount updates and triggering the button channel. So far I tested with Button1 and ix3. Please give it a try.

More changes:

  • CoAP 2 support should be ready to use (firmware 1.8). Watch out for “CoIoT data for id {}, type {}/{} not processed” in the log, maybe a status value is missing and always for exceptions
  • This version also removes the channels lastMin2, lastMin3, lastDirection for the roller.
  • I added channel roller#state to reflect the current roller position (open/close/stop).
  • I added channel device#heartBeat. This indicates the timestamp of the last successful device communication, e.g. the interval update for a battery powered sensor when no sensor values has changed in between.

README is also updated.

Please note: This is a DEV build, it might has bugs

Recalibrate your shelly.

Hi Oliver,
I tried this, but nothing changed in my log files.

My Shelly 2.5 has firmware 1.7 and I saw that firmware 1.8 will released tomorrow. I will wait for this release.
@markus7017 is there an update from Shelly Binding? Is this what you mean with DEV built and ahow can I install this? Or is the DEV build the firmware 1.8?

It’s indeed an update of the Shelly binding, DEV builds from binding can be downloaded here:

Thank you all for the help. I learnd a lot. I checked the thing config again and there ColoT was still enabled. I checked it in the paper GUI and I had to click “show more” to find the settings. Now I works for over an hour.

The events on Button1 now indeed seem to work as expected exept when connecting USB power.
When I connect USB power it trigger a short_pressed event (or perhaps last event).
This happens a single time.

When I press the button while connected to USB it triggers but then keeps on triggering evenry 15 seconds even though I only pressed once.

This is the Thing: shellybutton1-f44cdf

This is the log when connecting to USB:

2020-08-11 12:34:30.906 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47789): {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:34:30.922 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:34:30.945 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:34:30.961 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=, count=-1, idx=0,group=status

2020-08-11 12:34:30.969 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=

2020-08-11 12:34:30.978 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=0, idx=0,group=status

2020-08-11 12:34:30.986 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=0

2020-08-11 12:34:30.995 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Update button state with /PRESSED

==> /var/log/openhab2/events.log <==

2020-08-11 12:34:31.013 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered PRESSED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:34:31.062 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered PRESSED

2020-08-11 12:34:32.013 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Simulating Button RELEASED

==> /var/log/openhab2/events.log <==

2020-08-11 12:34:32.046 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered RELEASED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:34:32.140 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered RELEASED

2020-08-11 12:34:45.965 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47790): {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:34:45.978 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:34:45.996 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:34:46.012 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=, count=-1, idx=0,group=status

2020-08-11 12:34:46.020 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=

2020-08-11 12:34:46.030 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=0, idx=0,group=status

2020-08-11 12:34:46.038 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=0

2020-08-11 12:35:01.096 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47791): {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:35:01.109 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:35:01.122 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:35:01.137 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=, count=-1, idx=0,group=status

2020-08-11 12:35:01.147 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=

2020-08-11 12:35:01.166 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=0, idx=0,group=status

2020-08-11 12:35:01.187 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=0

2020-08-11 12:35:16.137 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47792): {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:35:16.152 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:35:16.164 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:35:16.179 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=, count=-1, idx=0,group=status

2020-08-11 12:35:16.191 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=

2020-08-11 12:35:16.204 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=0, idx=0,group=status

2020-08-11 12:35:16.215 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=0

and this is the log when pressing the button a single short time when USB power is connected:

2020-08-11 12:37:01.133 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellyht-f93561: CoIoT Message from /192.168.8.165:5683 (MID=35263): {"G":[[0,33,29.0],[0,44,63.5],[0,77,100]]}

2020-08-11 12:37:01.146 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellyht-f93561: CoIoT Sensor data {"G":[[0,33,29.0],[0,44,63.5],[0,77,100]]}

2020-08-11 12:37:01.159 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellyht-f93561: 3 CoAP sensor updates received

2020-08-11 12:37:01.436 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47799): {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:37:01.451 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,""],[0,120,0]]}

2020-08-11 12:37:01.464 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:37:01.479 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=, count=-1, idx=0,group=status

2020-08-11 12:37:01.490 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=

2020-08-11 12:37:01.502 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=0, idx=0,group=status

2020-08-11 12:37:01.514 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=0

2020-08-11 12:37:02.973 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47800): {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:02.986 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:02.999 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:37:03.025 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=S, count=-1, idx=0,group=status

2020-08-11 12:37:03.047 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=S

2020-08-11 12:37:03.059 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=1, idx=0,group=status

2020-08-11 12:37:03.078 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=1

2020-08-11 12:37:03.098 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Update button state with S/SHORT_PRESSED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:03.124 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:03.177 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

2020-08-11 12:37:04.123 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Simulating Button RELEASED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:04.155 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered RELEASED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:04.265 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered RELEASED

2020-08-11 12:37:06.052 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw-f03347: CoIoT Message from /192.168.8.162:5683 (MID=39608): {"G":[[0,66,199],[0,55,1],[0,77,100],[0,88,9],[0,99,0]]}

2020-08-11 12:37:06.092 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw-f03347: CoIoT Sensor data {"G":[[0,66,199],[0,55,1],[0,77,100],[0,88,9],[0,99,0]]}

2020-08-11 12:37:06.117 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw-f03347: 5 CoAP sensor updates received

2020-08-11 12:37:17.713 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47801): {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:17.726 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:17.745 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:37:17.769 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=S, count=-1, idx=0,group=status

2020-08-11 12:37:17.788 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=S

2020-08-11 12:37:17.796 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=1, idx=0,group=status

2020-08-11 12:37:17.811 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=1

2020-08-11 12:37:17.823 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Update button state with S/SHORT_PRESSED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:17.856 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:17.908 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

2020-08-11 12:37:18.856 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Simulating Button RELEASED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:18.895 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered RELEASED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:18.988 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered RELEASED

2020-08-11 12:37:32.753 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47802): {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:32.766 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:32.779 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:37:32.793 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=S, count=-1, idx=0,group=status

2020-08-11 12:37:32.804 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=S

2020-08-11 12:37:32.816 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=1, idx=0,group=status

2020-08-11 12:37:32.827 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=1

2020-08-11 12:37:32.846 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Update button state with S/SHORT_PRESSED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:32.885 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:32.952 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

2020-08-11 12:37:33.878 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Simulating Button RELEASED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:33.905 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered RELEASED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:33.973 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered RELEASED

2020-08-11 12:37:47.796 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Message from /192.168.8.164:5683 (MID=47803): {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:47.809 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: CoIoT Sensor data {"G":[[0,77,86],[0,118,0],[0,119,"S"],[0,120,1]]}

2020-08-11 12:37:47.892 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellybutton1-f44cdf: 4 CoAP sensor updates received

2020-08-11 12:37:47.915 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event, type=S, count=-1, idx=0,group=status

2020-08-11 12:37:47.924 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEvent=S

2020-08-11 12:37:47.933 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: handleInputEvent, sen=S/Input event counter, type=, count=1, idx=0,group=status

2020-08-11 12:37:47.944 [DEBUG] [ly.internal.coap.ShellyCoIoTProtocol] - shellybutton1-f44cdf: CoAP Update on inputEventCount=1

2020-08-11 12:37:47.956 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Update button state with S/SHORT_PRESSED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:47.975 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:48.026 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered SHORT_PRESSED

2020-08-11 12:37:48.984 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-******f44cdf: Simulating Button RELEASED

==> /var/log/openhab2/events.log <==

2020-08-11 12:37:49.008 [vent.ChannelTriggeredEvent] - shelly:shellybutton1:f44cdf:status#button triggered RELEASED

==> /var/log/openhab2/openhab.log <==

2020-08-11 12:37:49.086 [INFO ] [clipse.smarthome.model.script.Shelly] - button pressed:shelly:shellybutton1:f44cdf:status#button triggered RELEASED

Hey all,
I received some Shelly Vintage G125 4W today, discovered them in the Shelly app, did a firmware update and wanted to add them to Openhab.
When discovering the devices they are added as unknown.
image

2020-08-11 17:36:50.278 [WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type shelly:unknown.
2020-08-11 17:36:56.392 [WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type shelly:unknown.
2020-08-11 17:40:13.689 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'shelly:unknown:6f6959' to inbox.
2020-08-11 17:40:13.941 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'shelly:unknown:6ee955' to inbox.

Firmware is:

From the Binding docs of my 2.5.6 install I was assuming that Shelly Vintage bulbs are supported.
Any idea what the problem might be?
Thanks much.
Sebastian

Yes, that’s correct I don’t have to idea how to avoid that. The problem is that the device sends a CoAP update when you connect the USB cable. Usually there is an id in the packet, which allows to differ between “real updates” and just repeating the last status. The problem ist that the battery powered device looses that id and restarts with 1 every time it wakes up. So I needed to let every message pass and trigger the channel. Now the USB connect also triggers an update with id 1


From my experience: Firmware 1.7.3 for the Button 1 provided the best results for me. With version 1.7.7 I see loosing messages - you click the button, the LED turns green, but nothing happens. Version 1.8rc5 could result in duplicate messages.

No, version 2.5.7 and I think also 2.5.7 don’t support the Vintage, you need to go for the DEV build.

I updated the DEV build

  • avoid exception on Dimmer / Dimmer2 initialization
  • better handling of “empty” input events for Button1
  • a RELEAED trigger is no longer simulated

@thewiep please try this version

Hey all,

I got today my first shelly plug. I configured them in the same way as my shelly1, or 2.5 or plug s I have in use. All items of the shelly plug work fine, execpted the temperature. All version are the latest, from OH to the Firmware of the plug. Any idea why the temperature from the shelly plug hows me 0 Degrees?

BR
Jochen

So it’s the Plug, not Plug-S, correct?

Please post the output of http://<device ip>/settings and /status.

Yes, it is the Shelly plug, NOT an Shelly plugS

Here you are with the settings and the status:

{“device”:{“type”:“SHPLG2-1”,“mac”:“F4CFA26D0D41”,“hostname”:“shellyplug-6D0D41”,“num_outputs”:1,“num_meters”:1},“wifi_ap”:{“enabled”:false,“ssid”:“shellyplug-6D0D41”,“key”:""},“wifi_sta”:{“enabled”:true,“ssid”:“GARTEN”,“ipv4_method”:“static”,“ip”:“192.168.1.13”,“gw”:“192.168.1.1”,“mask”:“255.255.0.0”,“dns”:“192.168.1.1”},“wifi_sta1”:{“enabled”:true,“ssid”:“GARTEN”,“ipv4_method”:“static”,“ip”:“192.168.1.13”,“gw”:“192.168.1.1”,“mask”:“255.255.0.0”,“dns”:“192.168.1.1”},“mqtt”: {“enable”:false,“server”:“192.168.33.3:1883”,“user”:"",“id”:“shellyplug-6D0D41”,“reconnect_timeout_max”:60.000000,“reconnect_timeout_min”:2.000000,“clean_session”:true,“keep_alive”:60,“max_qos”:0,“retain”:false,“update_period”:30},“coiot”: {“update_period”:15},“sntp”:{“server”:“time.google.com”,“enabled”:true},“login”:{“enabled”:true,“unprotected”:false,“username”:“test”},“pin_code”:"",“name”:"",“fw”:“20200601-123320/v1.7.0@d7961837”,“discoverable”:true,“build_info”:{“build_id”:“20200601-123320/v1.7.0@d7961837”,“build_timestamp”:“2020-06-01T12:33:20Z”,“build_version”:“1.0”},“cloud”:{“enabled”:false,“connected”:false},“timezone”:“Europe/Berlin”,“lat”:52.465099,“lng”:13.396100,“tzautodetect”:true,“tz_utc_offset”:7200,“tz_dst”:true,“tz_dst_auto”:true,“time”:“10:04”,“unixtime”:1597226657,“hwinfo”:{“hw_revision”:“prod-191018”,“batch_id”:1},“max_power”:3500,“led_status_disable”:false,“led_power_disable”:false,“relays”:[{“ison”:false,“has_timer”:false,“overpower”:false,“default_state”:“off”,“auto_on”:0.00,“auto_off”:0.00,“btn_on_url”:null,“out_on_url”:null,“out_off_url”:null,“schedule”:false,“schedule_rules”:[],“max_power”:3500}],“meters”:[{“power”:0.00,“is_valid”:true,“timestamp”:1597226657,“counters”:[0.000, 0.000, 0.000],“total”:0}]}

{“wifi_sta”:{“connected”:true,“ssid”:“GARTEN”,“ip”:“192.168.1.13”,“rssi”:-31},“cloud”:{“enabled”:false,“connected”:false},“mqtt”:{“connected”:false},“time”:“10:07”,“unixtime”:1597226841,“serial”:1,“has_update”:false,“mac”:“F4CFA26D0D41”,“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false}],“meters”:[{“power”:0.00,“is_valid”:true,“timestamp”:1597226841,“counters”:[0.000, 0.000, 0.000],“total”:0}],“temperature”:0.00,“overtemperature”:false,“tmp”:{“tC”:0.00,“tF”:32.00, “is_valid”:true},“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20200601-123320/v1.7.0@d7961837”,“old_version”:“20200601-123320/v1.7.0@d7961837”},“ram_total”:50224,“ram_free”:39288,“ram_lwm”:28280,“fs_size”:233681,“fs_free”:163401,“uptime”:47517}

As you can see the device reports 0C
,“tmp”:{“tC”:0.00,“tF”:32.00, “is_valid”:true},“

I‘m nit sure if the Plug has a temp sensor at all.

UPDATE:
I checked the API spec
https://shelly-api-docs.shelly.cloud/#shelly-plug-plugs-status
this outlines the temp for „Plug-S only“. So this values is not relevant for the Plug and it‘s the internal device temp, not the exterior temp. If you need this you could go for the 1/1PM with the sensor addon

No Problem at all Markus,

I was only wondering, that the OH binding has the value and I was able to get the 0 degree status
out of it. I have serval HT running which deliver me the temperature to OH and I can run rules out of this.

Thanks for checking the API.
I’ll cross the fingers that the new binding from you will be released soon and the button1 is able to be in
includes in OH.

THANKS

BR
Jochen

Hello Markus, I would like to participate and test the Shelly bindings, I have two devices, Shelly1 and Shelly Dimmer 2 for the moment.