For usage instructions, please take a look at the README and keep in mind that pigpio needs to be installed on the Raspberry Pi that you want to connect to.
Known problems:
If pigpio or a remote Raspberry Pi is restarted, the thing needs to be disabled an re-enabled. I am searching for a better solution.
The installation procress of pigpio on openhabian is not easy enough.
you are a rock star buddy!
lots of folks have been asking for this and I have a project in the planning stages which this will help with, thank you for your contribution
Hi @nbauer
This is great! thanks for sharing this.
I use pigpio as a replacement for lirc. My usecase is something like i documented here
In summary, i use the irrp.py file as detailed on the page here and pass a series of on/gap/off codes to simulate an IR remote for my air conditioner. In the backend its using pgipiod.
If i understand correcty, at the moment the binding sends or receives a unitary on signal which it writes to the switch. Is there any possibility to extend this to mirror the functionality of the irrp.py file?
This is great news to hear. The documentation is not clear on if this can be used to connect to the local pins on the pi that is running OH3 installed with openhabian. Do you just use the IP of the OH3 pi that you are running on? Raspi-config is not part of the openhabian installation anymore. I will see if I can get it going tonight. Thank you.
UPDATE: I can only see an option to add a remote GPIO thing. When I add that as a thing with the IP of the OpenHAB raspberry pi, there is a comm error. I am suspecting that pigpio is not being installed correctly and that is why I cannot see a local option for the gpio thing.
First of all Big Thank You @nbauer for your work, i havenât tested this yet but i will as my whole OH system based on GPIO BINDING, unfortunately i dont understand why the Dev Team for OH3 deprecated GPIO BINDING, to me it makes no sense making such a beautiful system that dont have Such a beautiful Binding that actually shuld be the heart of the OH period.
By default, pigpiod runs in local mode (with -l option) and for some reason, itâs preventing openHab from connecting. Running raspi-config will remove that option, but as openHabian has removed raspi-config, you will need to set Remote GPIO manually. Just create a new service config and reload:
Hi, I will have a look on this when I have more time. I use this library for communicating with pigpio. If you find a solution using this, I can maybe add this feature it faster.
Thanks a lot for writing this down!
I have to try this out myself, update the README and send this also to the openhabian team. Unfortunately, my studies are currently taking up a lot of time, but Iâm trying to work it in as soon as possible. But of course you can also make a pull request if you like to.
Thank you for the instructions. I will give this a try when I get home and report back any successes or failures. It would be nice if these instructions made it into the README for us users using openhabian.
Thanks for your work. I am happy
A little problem:
After a restore with âopenhab-cli backupâ
the GPIO-Binding ist lost.
I have to reinstall and restart the GPIO bundle.
Is there a workaround?
Does anyone have an idea for an automatic script?
i am using openhab 2 gpio home automation. running very good. but i want upgrade openhab 3.
when i am installing this bindings openhab 2 system running.
openhab-binding-expire1
openhab-binding-gpio1
openhab-io-gpio1
but openhab3 is missing.
i am using banana pi pro.
what am i wrong. thank you.
Note: i am installed binding-gpio and openhab-cli showlogs controlled
openhab-cli showlogs
2021-02-09 18:07:22.147 [INFO ] [openhab.event.ItemCommandEvent ] - Item âRaspiLED2â received command OFF
2021-02-09 18:07:22.167 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item âRaspiLED2â changed from ON to OFF
I am also the fan of gpio, would like to use al the gpios, as both output and input, for controlling relays and knowing signals from sensors.
I am waiting for the update of functioning gpios.
Thanks.
i donât have any update yet. stick to OH2 or change System!
for me i donât like the idea of not having gpio binding working on system made for automation.