Smart Fan - Node Red

brandon_bern

New member
I'm working on getting my smart fan functional for my raspberry pi and I'm getting an error when attempting to send a number value to the fan to set the power. image_2025-03-11_094843825.pngimage_2025-03-11_094843825.png
 

brandon_bern

New member
Alex, thank you for the response.

I had followed the instructions provided on the website and on github to enable I2C. From the cli the fan does respond. Using the following commands I can set the fan power to 15. Initially I was trying to use the python sample loop program but I ran into issues using pip3 to install the python SMsfan packages.

~ $ cd SmartFan-rpi/
~/SmartFan-rpi $ fan -h
~/SmartFan-rpi $ fan 0 pwr 15
~/SmartFan-rpi $ fan 0 prd
15

This is definitely something new for me. With little experience, any assistance is greatly appreciated.
 

alexburcea

Moderator
Staff member
The Python install problem can be overcome if you install the library manually:
- Go to the python folder "cd SmartFan-rpi/python"
- Run the manual install "sudo python setup.py install"

The NodeRed one is generated by the fact that the node is a little outdated, but I encourage you to use the exec node and run the fan command in it. It is straightforward to use, let me know if you get in trouble.

Alex.
 

brandon_bern

New member
I was able to follow your instructions to install the python libraries manually and that did the trick.

now the following commands run the example loop program.
cd ~/SmartFan-rpi/python/examples/
~/SmartFan-rpi/python/examples $ python loop.py -t 50 -v

Thank you!!
 
Top