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.
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
Can you see the shelly binding there?
For the logging:-
I had a similar issue after upgrading to OH 3.1.
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:
<!-- https://issues.apache.org/jira/browse/KARAF-5559 -->
<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!