Raspberry Pi GPIO Power Switch

Hi,

I bought an Argon One case for my HA RPI 4. It comes with a script for controlling the fan speed and powering the unit (https://www.argon40.com/learn/index.php/2020/03/10/argon-one-case-overview). I pasted the actual script here (https://pastebin.com/QqaEDYSf).

Anyways, I’m using HassOS on a RPI 4. I would like to be able to take advantage of this case’s power button. Is there a way I can incorporate this function in the existing HassOS buildroot environment? I’m fairly familiar with embedded linux but I’m still quite new to buildroot (only built one OS with it).

Thanks in advance for any advice.

2 Likes

I’m running into the same puzzle. So I’m very interested in any help to this question.

Just an update. I loaded Raspbian on the RPI4 and installed the Argon One script. As much as I like the design on this case, the fan just doesn’t keep the RPI4 cool enough for me. Could just be my opinion, but the case still gets quite hot. I have since moved the HA RPI4 to a standard CanaKit case (the one that came with the RPI4) and it’s cooling just fine. I’ll continue experimenting with the Argon One case as a RetroPi unit or something.

Gents,

Seems there are a few other threads for this. I am working through getting it working as well via the below.


It looks good to me. I’ve starred it on Github. Good work.

It takes some time to shutdown HA…
But, at some point, it’s shut down… But the led light of the argon case still is red.
So, I don’t really know if ha is completely down…
Only, when I connect a screen, I can see that after a long time, nothing happens, and I can safely cut the power. Someone any idea?

Active Cooling Addon: