-
Hi all, I'm using a program that controls a fan using PWM sitting on top of the CPU of my Raspberry Pi. For about two weeks I have started to see if I could use Home Assistant to replace my own "equivalent" system. I have modified my program to run in the Pyscript world on Home Assistant and after jumping through some hoops I got that running without generating any errors. No runtime, exceptions or anything else, it runs cleanly. However, the PWM functionality does not work. After some more investigations, I found out that just turning the fan on and off with the GPIO.output command works, but when I'm using the PWM module it does nothing. Remember that it works in other environments. Is there a clarification for this, or better yet, a solution? Does anybody know if pigpio works? Many thanks! [Updated a few times] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: I'm adding my scripts to my Github with the details. There are a few gotcha's that I documented there as well. |
Beta Was this translation helpful? Give feedback.
Update:
I tried to use the pigpio library, and that works fine.
https://abyz.me.uk/rpi/pigpio/python.html
I'm adding my scripts to my Github with the details.
https://github.com/paulvee/Home-Assistant
There are a few gotcha's that I documented there as well.