paulvee / Home-Assistant

Information and scripts for Home Assistent
MIT License
6 stars 0 forks source link

Issues with RPi.GPIO #1

Open karliwalti opened 1 year ago

karliwalti commented 1 year ago

Hi @paulvee Thank you for sharing this configuraiton through https://github.com/custom-components/pyscript/discussions/315

I did try to get RPi.GPIO running on the latest stable release and get only error codes:

        import RPi.GPIO as GPIO
        ^
ModuleNotFoundError: No module named 'RPi'

During handling of the above exception, another exception occurred:

Exception in </config/pyscript/set_boiler_load_ha.py> line 23:
        import RPi.GPIO as GPIO

It looks like the import with pip does not work. Has this ever worked for you? Or are you now using only pigpio? Switching would mean rewriting drivers quite a bit ... https://github.com/paulvee/Home-Assistant/blob/75ce1f0539f0c2f2c2ab2e885561cfc967e69972/Fan%20Controllers/rpi_cpu_fan_test_gpio.py#L31

paulvee commented 1 year ago

Hi karliwalti,

As is happening way to often, the Foundation changed the firmware while breaking things again. A lot has changed with the GPIO support, and I do not use my RPI's that much anymore, for just this reason. I'm sure you can find the solution on the Forum, because it's a very common issue.

Success, Paul