delid4ve / openhab-3.x-sonoff

Openhab Binding for Sonoff Devices
27 stars 11 forks source link

Binding not recognised in openHAB #1

Closed LiaanLewis closed 3 years ago

LiaanLewis commented 3 years ago

I hope you could assist I implemented openhab3.0.1 on ubuntu. I saved the jar in the bindings diretory and gave the file rwx rights

openhab is not picking up the binding. Is there aversion issue or an operator error?

delid4ve commented 3 years ago

When you say it doesn't pick it up.. It won't show under bindings but will when you go to add a thing. And you got the right branch yes?

LiaanLewis commented 3 years ago

Good day. Thank you for your prompt reply. It is firstly not visible under Bindings If I try to add a new bindings I receive a list of 261 but Sonoff is not listed If I add a new thing it asks me to select the binding. It is not showing in that list. If I then want to add it I am back at the 261 list.

It is as if it is not recognising the jar file in the /usr/share/openhabs/addons folder. I see the other file in this directory has a .kar extension. Can this be the issue

ls /usr/share/openhab/addons

openhab-addons-3.0.1.kar
org.openhab.binding.sonoff-2.5.11-SNAPSHOT.jar
README

I also see your version is 2.5.11. I am not sure if this is a normal version or indicate the opehab version the file is valid for?

delid4ve commented 3 years ago

Your using the wrong jar (2.5.x) on openhab 3, where it says 'master' top left select the 3.x branch and there is a 3.0.1-snapshot jar there.

LiaanLewis commented 3 years ago

Thank you for your assistance! It is working now.