I have a case with a FAN with lights but i need GPIO to turn on the fan light.
Now i tried a few things but im a lot but no HA expert
Does anyone have a case like this and the fanlight working?
Any luck on this? Iâm running into the same issue. I can toggle the fan on/off but I canât get the OLED screen or the RGB to turn on in this case.
Instructions (raspbian based) are at the link in the OP.
Where exactly in the instructions are you guys getting stuck?
Under the section âHow to enable OLED Displayâ Iâm able to clone the repo with the but I canât do anything that involves the sudo command. I just get âcommand not foundâ. I believe this is because HA OS is built on Buildroot so Idk if this will be possible at all.
Similar thing for the fan RGB. Under " How to Install All Drivers Automatically" Iâm able to clone the repo and when I try to run the command â./install.shâ without sudo it will give an error for almost every line that script tries to run because again, it tries to use raspbian based sudo commands
remove the sudo then run them?..
at the end of the day, most âsheildsâ use a combination of config.txt, binaries (what you are compiling) or python code, and possibly / probably some sort of âstartupâ mechanism/s.
you can dissect the scripts and extract most of the above (possibly startup mechanism may cause grief/ need to be adapted), and/or seek advice from the manufacturer about alternate OS/s.
good luck!
I tried removing sudo but it still spits back out âcommand not foundâ and tbh I donât know what most of the commands are doing for me to know where to remove or what to replace them with.
I also tried reaching out to manufacturer support (52pi) a couple days ago but havenât heard back yet. For now I decided Iâm just gonna jump over to HA on docker while running Raspbian OS. Thanks for your help!
glad you gave it ago, for reference for anyone who might land hereâŚ
lights are ws281x on GPIO18
oled is i2c (not sure of the chipset)
this script https://github.com/geeekpi/absminitowerkit/blob/4aa27ebdb722064658f3adecbf20afc8354dfa49/install.sh (from the main link above) is a bit more generic than the main pageâŚ
but essentially it,
adds i2c to your config.txt (assumes kernel i2c modules / functionality⌠most rpi OSâs have it)
dtparam=i2c_arm=on
installs a bunch of python stuff⌠and gets code that runs;
sysinfo.py ( populates display via i2c )
moonlight (/usr/bin) bitbangs GPIO18 / drives the led colors
Install HACS.
Then find the following addon.
Install it and follow all instructions.
I got it working now
I donât think the addon is still available, i canât find it âŚ
Any luck? Sorry for reviving the thread but Im stuck