I tried to install the openocean binding from the karaf console of my clean install of openhab 2.3.0 (raspbian-stretch) and got the same error message:
did you installed the serial feature before you tried to install the openocean bundle? My bundle has a dependency against gnu.io, therefore this feature has to be installed. I am currently not aware how to automatically install this feature during the installation of my bundle.
You can install this feature manually with the following command in the karaf console
feature:install openhab-transport-serial
Afterwards you should hopefully be able to install the openocean bundle.
unfortunately I installed the openhab-transport-serial feature before your bundle. The feature is listed as installed and started in the karaf feature list.
First of all thanks to Daniel to implement this binding.
I just started with OH and the fist actuator I try to control is the in wall module SIN-2-2-0x from nodon. I added a light to the in wall module channel 1 and a physical switch to the input 1 of the module. OH is running on a PI3.
I was able to add a USB310 as OpenOcean bridge and the in wall module as a D2-01 - Energy measurement switch. To control the in wall module I added the following items.
I am able to control the light from OH. I am also able to toggle the light by pressing the physical switch connected to the in wall module. But there is no feedback to OH if a change the state by the physical switch.
So my questions how do I setup the bidirectional communication?
welcome to the openhab community. I am glad that this binding works for your (at least in most cases).
Openhab gets inform in two ways about the current state of your in wall module. First of all, your module should send a message when you toggle the light by pressing the physical switch. As I do not own such a module, I cannot confirm that this message is really send by your module. I will check this with my Nodon smart plug, it uses nearly the same EEP. Meanwhile you could look into you openhab log viewer when you press your switch (set log level of my binding to debug). If your module sends a message you should find it here.
Second I implemented a polling mechanism. You can set the polling interval in your thing. A value of zero deactivates the polling. After the polling interval the binding queries the current state of your module and upodates the item states. Could you check if you enabled the polling?
@Matt77
As you also own such a in wall module, can you confirm this behaviour?
thanks a lot for this information. Your setup seems to be correct. Maybe they updated the gnu.io lib in openhab and my binding tries to use a specific (older) version of this lib ? My last update of openhab is two weeks ago. I will check this.
thanks a lot for this trace log. I could find the error and will fix the bug today. Another interesting fact from the log is that whenever you press your physical switch the in wall module emulates an enocean rocker switch press/release. Therefore you could link another wireless enocean actuators to you wired switch (for example switch on light and activate an smart plug). Very nice feature
These in wall modules getting more and more interesting for me.
I had the same problem during the first installation. But some how I was able to find the binding in Paper UI and to install it. Unfortunately I am now not able to reinstall the binding.
Do you have any idea how to fix this issue?
Edit:
After posting I read the posts of Matze and Christian. It looks like that I am facing the same issue.
after an update of my openhab installation, I had the same issues. In my case the feature openhab-transport-serial always gets uninstalled after a clean-cache. This must have been changed since OH 2.3. However after installing this feature again, the binding starts as usual.
unfortunately that did not work for me. I re-installed openhab-transport-serial and it also seems to be started, unfortunately the installation still fails with the same error.
I uninstalled the feature openhab-transport-serial, then installed it again, restarted the openhab service but it ends up in the same error message when I try to install the openocean bundle:
so i just used my test-setup to see what your problem could be. I deleted the binding, updated my openhab to the newest 2.4 snapshot and copied the newest openocean binding into the addons-folder.
Then i stoped openhab, cleared tmp + cache and restarted the whole system.
After everything booted up again, i went into karaf and executed “feature:install openhab-transport-serial”. When i now try to install the binding, i get the same error-message, you guys did, BUT the importent part is, when you execute “bundle:list” you will probably also see, that the bundle is already installed ! Openhab installs the bindings, put into the addons-folder, automaticly. When you now go into Paper-Ui and click on the “+ - symbol”, you will propably the the openocean-binding listed and working.
I hope it works for you.