Shelly-Binding, issues since upgrade to OH3

Hi there,

I am running a freshly installed OH3 (openhabian) install 3.1.0 on a Raspberry4 2GB + SSD. I have replicated my old 2.5 installation but build everything from scratch in parallel.

Everything works but somehow my Shelly-Binding crashes after a while. I am running Shelly 2.5’s to control and automate my roller-shutters via the Astro Binding.
The rule is working properly but the shelly control gets lost. Other Z-wave devices work with the same rule without issues. I also observe that there are no Shelly events in the log (frontail) anymore until openhab gets restarted…

Can anyone help me to discover the root cause?
Should I use MQTT controls instead of the binding?

Thanks in advance for your help!


I can’t help with the specific problem beyond saying that the Shelly binding works just fine for me. But I’ve only got the one simple Shelly 1 switch.

You might get more information by putting the Shelly binding into debug logging and see if it outputs something useful. One would think that if something was going wrong though that it would generate an error log.

1 Like

Hi Rich, thank you!
I’ve tried to activate DEBUG logging through Karaf but I get this error:

Error executing command: Unable to set level for logger

For both bindings:


With “org.openhab.binding.zwave” no prob…

Anything wrong with my approach?

Thanks in advance!

Given that the logging is handled completely independently from the bindings I see no reason why it should work for one and not the others unless the name of the logger you are using is wrong.

i’ve just checked the bundle name in the karaf console:


So that looks good. Maybe there’s something wrong, since changing the loglevel of the bundle works for me as well:

openhab> log:set DEBUG org.openhab.binding.shelly
openhab> log:set INFO org.openhab.binding.shelly

Can you start the console (openhab-cli console) and check if you see the bundle by typing

bundle:list -s

Can you see the shelly binding there?

For the logging:-

I had a similar issue after upgrading to OH 3.1.

Check your /userdate/etc/org.ops4j.pax.logging.cfg
Should contain:


Check your /userdata/etc/log4j2.xml

Maybe try a “clean” version from GitHUB:

Yes, both are in the list! Thx!

Thank you all for the hints!


I have edited log4j2.xml manually and amended the karaf part:

	<!-- -->
	<Logger level="WARN" name="org.apache.sshd"/>
	<Logger level="INFO" name="org.openhab.binding.zwave"/>
	<Logger level="DEBUG" name="org.openhab.binding.shelly"/>

And it works! :slight_smile: