I have now tried to get openHAB2 running on my raspberry pi
Unfortunately I cannot get the piface binding showing up in the binding list.
What I tried so far:
Copied the org.openhab.binding.piface-1.8.1.jar file from my 1.X to the addons folder and changed the addons.cfg:
package=standard
remote=true
legacy=true
binding=piface
The piface.cfg file was not created automatically (I created it manually)
I copied the settings from the old openhab.cfg file (and removed the piface: in front of each setting).
started openHAB (using start.sh)
Error messages I got so far:
āNo Piface node for id PIā
(PI is the id I gave in the settings: PI.host=10.2.0.18 ā¦)
(Item is also defined acordingly: Switch Garage_MoveDoor āGaragentor Start/Stopā (piface) { piface=āPI:OUT:0ā } )
Then I tried to be more intelligent than usual and searched for SATEL binding as example - this is also an old binding)
Found it in the Y:\runtime\karaf\system\org\openhab\binding folder (I mapped it to my PC)
I tried to create a similar folder structure for the piface addon
Y:\runtime\karaf\system\org\openhab\binding\org.openhab.binding.piface\1.8.1\org.openhab.binding.piface-1.8.1.jar
and added the maven-metadata-local.xml
But Iām sure that this is not sufficient.
Then I found something about piface 1.9.0 binding, but cannot find a jar file and as a .NET developer Iām completely lost on what to do and how to compile the sources found.
So any input would be great.
Just a bit more background.
Iām currently running OH1.X and Iām happy with it (Except there is no KEBA binding I could get hold off and I do not get UDP working), so I wanted to switch over to OH2 where I have a KEBA binding, but now I do not get the PIFACE working.
Thank you, meanwhile found it (by accident).
Seems to be hidden very carefully.
Anyway, I still didnāt get it to run unless I removed the complete installation (except for conf and addons folder) and replaced runtime and so on with a fresh copy.
Had to install all bindings and so again (unfortunately).
But after that, it started working.
Iām not quite sure if there shouldnāt be a kind of ārebuildā function included which recreates all the current settings again to get rid of any old āleft oversā from other bindings which have been there but are not anymore.
So, this thread is the top result on Google for āopenhab2 pifaceā - if youāre like me and have been using openhab1.6 forever and finally upgraded and wondered whatās going on, this is what I had to do to get piface up and running again (and also for me, when I forget and need to do it againā¦)
I can confirm that this addon works without any issues in openhab2.
So maybe someone can add it to the distribution? I mean the list of bindings in the paper UI.
Iām not sure who the right person to tag is so I recommend starting a new thread with a link to this one entitled: āpiface binding works on OH 2.0ā. The right person or people should see it and it will get added to the distro.
Please someone open an issue here to request that this binding is made installable on OH2. That way this good news and request wonāt get lost. Thank you!
Ok. I just spent all night on this. I followed all the steps in this thread AFTER I made sure my RPI3 and the piface were talking. That part works.
I copied the org.openhab.binding.piface-1.10.0-SNAPSHOT file to the /usr/share/openhab2/addons folder and updated the owner, I added the piface binding section to a piface.cfg file in the /etc/openhab2/services folder and updated the ownership. Updated Java to the 1.8.0_131 and rebooted. did several update && upgrades in there too.
Openhab looks just like it did before I did any of that. What did I miss?
By now, I hope Iām close. Thank you for all of this and for any help.
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
@rxmas Iām not 100% sure, but when I wrote the instructions 1.9.0 was the version to use. 1.10.0 might be the version that automatically integrates with OpenHab2, so these instructions might have changed.
Would suggest trying the 1.9.0 snapshot version of the PiFace binding, or upgrading your whole OpenHab install nightly/beta?
Thank you for the quick reply. I went back and looked for the 1.9.0 version but didnāt find it and Iām not sure how to upgrade to the nightly but would be willing to try either / both. Iāll keep looking and will let you know if I do anything else.
Iām starting over. I have a fresh install of Raspian and the piface is working as stand alone devices. I installed Openhab2 and in the PaperUI added the bindings for Piface. Nothing. I added the bindings for ānetworkā and instantly got a list of everything in my network.
If the GPIO biundings work, Iām thinking I should dump the Piface and just control an external board of relays, AKA admit defeatā¦
I Have one question to the PiFace config, too:
I want to use my RPI (Openhab2.4+PiFace digital2) without a network after installation,
what IP adress do I use for the piface.config?
I tried 127.0.0.1, localhost, āhostnameā and even setup a static IP in the ādhcpcd.confā file and used that one. Doesnāt work. Only works with the Real network adress.