Documentation: Installation of Shelly-Binding

Just because it took me quite a while to figure out how to install the shelly binding correctly I’d like to document it here.

Prerequisites:

  • Raspberry PI with Raspbian based on Debian 9.11
  • Openhab installed from deb https://dl.bintray.com/openhab/apt-repo2 stable main (Defined in /etc/apt/sources.list.d/openhab2.list)

Now the installation:

  • delete all Shelly things from PaperUI’s Inbox and Thing list
  • Stop OpenHab sudo service openhab stop
  • Clear cache sudo openhab-cli clean-cache
  • check the JSON db files (in /var/lib/openhab2/jsondb/) for shelly references, remove all entries
  • Download the JAR http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jarand place it in /usr/share/openhab2/addons
  • Download the JAR https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.shelly/2.5.0-SNAPSHOT/org.openhab.binding.shelly-2.5.0-SNAPSHOT.jar and place it in /usr/share/openhab2/addons.
  • Start OpenHab sudo service openhab start
  • Wait some minutes
  • Check the inbox in the PaperUI, your devices should appear here.

Thanks and credits for this great piece of work to markus7017.

3 Likes

Thank you for your post.
I stumbled over one error during installation:

Error while starting bundle: file:/openhab/addons/org.openhab.binding.shelly-2.5.0-SNAPSHOT.jar org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.shelly [280] Unresolved requirement: Import-Package: org.eclipse.californium.core; version="[2.0.0,3.0.0)"

To get rid of this, you have to manually install coap -> enter the following at karaf console
feature:install openhab-transport-coap

Maybe this helps someone :slight_smile:

1 Like