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.jar
and 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.