Open geohei opened 7 months ago
The RPi5 hardware changed, where the GPIOs are now controlled through the RP1 southbridge, and as a result PIGPIO is not supported on the RPi5 - see the comment here from the PIGPIO developer stating that adding support "will be a huge task": https://github.com/joan2937/pigpio/issues/589#issuecomment-1798570009
I was able to modify the Pi-Somfy python code to instead use lgpio, which is compatible with the RPi5. The generated gpio pulse timing is not as precise as using PIGPIO, but it seems to work ok with my Somfy shutter. I have been testing it for the last few weeks, and I've only noticed one occasion where an automation didn't automatically close the shutter as expected - but I can't confirm if that was caused by lgpio timing or something else.
I guess the question for @Nickduino is whether this project is still under active development, and if it makes sense to add support for both PIGPIO and lgpio options (perhaps with an input flag to specify which to use)? Or just fork the repo and replace PIGPIO with lgpio (which is essentially my current quick "hack" approach used to test it at the moment).
FYI, you'll also run into an issue with MQTT on RPi5 with the updated Paho library, but I see there is already mention of that here: https://github.com/Nickduino/Pi-Somfy/pull/164
Due to interest from others, I have created a fork with the basic changes required to replace pigpio with lgpio. I do not currently have time to tidy up everything up, but the code is functional and working well on a Raspberry Pi 5 over the last couple of months. https://github.com/harebrainedkiwi/Pi-Somfy
I followed the instructions. However python-pigpio doesn't install correctly.
I believe (not sure ?!) that's the reason why I get:
pigpio
andpython3-pigpio
install correctly.... shows nothing.
Any idea how to fix?