Hi everyone,
After a full re-install of Raspbian, Openhab, pigpio… on my RPi 3B+ I have managed to have the GPIO output working. The working configuration for the host is indeed “::1”
I have tried to have make the inputs that work with OH2 work as well with OH 3.1 but once again I am stuck with possible configuration issues:
My config is the following:
Thing gpio:pigpio-remote:gpio-server "GPIO server" [host="::1", port=8888] {
Channels:
Type pigpio-digital-output : portail [ gpioId=9 ]
Type pigpio-digital-input : sonnette [ gpioId=17, debouncingTime=1000 ]
Type pigpio-digital-input : porte_entree [ gpioId=4, debouncingTime=1000 ]
Type pigpio-digital-input : porte_garage [ gpioId=27]
Type pigpio-digital-input : pompe_chaleur [ gpioId=5, debouncingTime=1000 ]
}
Contact PB_GF_Garage "Porte garage" <garagedoor> (GF_Garage) {channel="gpio:pigpio-remote:gpio-server:porte_garage" }
Contact PB_GF_Exterieur "Sonnette" <light> { channel="gpio:pigpio-remote:gpio-server:sonnette" }
Contact PB_GF_Entree "Porte d'entrée" <frontdoor> (gGF) { channel="gpio:pigpio-remote:gpio-server:porte_entree" }
Contact CP_GF_Buanderie "Capteur Pompe à Chaleur" { channel="gpio:pigpio-remote:gpio-server:pompe_chaleur" }
Apparently the GPIO modes are correctly set after boot since I get the following upton “raspi-gpio get”:
BANK0 (GPIO 0 to 27):
GPIO 4: level=1 fsel=0 func=INPUT
GPIO 5: level=0 fsel=0 func=INPUT
GPIO 9: level=0 fsel=1 func=OUTPUT
GPIO 17: level=0 fsel=0 func=INPUT
GPIO 27: level=0 fsel=0 func=INPUT
the command “pigs r 27” works (return 0 or 1 depending on the sensor of my garage_door but “pigs r 4” returns always 1 whatever the status of the physical sensor status so, at least for GPIO 27, the problem seems to be between pigpio and OH not exchanging the status.
I have tried many changes on the Pi like for instance adding “gpio=4,5,17,27=ip” in my /boot/config.txt [All] section but it did not change anything. Still nothing happening in OH when the sensors change status. No error or warning messages either.
If you have any idea to fix my problem, I will try them either today or next WE.
Kind regards
Olivier