-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can the powerbutton used to shutdown the Pi with Home Assistant? #7
Comments
@carsten-h I think it is possible. Let me know it that worked for you. I'm waiting for home-assistant/core#39204, then I'll rewrite this integration, so it will be shown as a fan in HA and will try to support more button actions. |
Ah, OK, so you can only use the double tap in the moment. Until now I don't have this enclosure for the Home Assistant Pi. I am thinking about buying it and your integration is a big step forward! :-) I think the enclosure is great and I am already using it for a Pi4 for piCorePlayer with Logitech Media Server installed. |
@carsten-h I would suggest to wait for next version of the case. Currently there are 3 version of the case: first one that doesn't support Besides that the next version will support M2 NVMe SSD, so I guess it's worth waiting :) |
That's something with the rpi_gpio library, as I mentioned I'm planning to rewrite the integration and use gpiozero or different library to detect press, long press, and other actions, but I must wait for the creator's reply, because the MCU in the case has some actions hardcoded, for example, a long press will force shutdown the PI. |
Yes, I know! Thank you! I will wait.
No, not really. It should not switch on automatically. Sometimes there is a powerloss and shortly after the power is back again there is a new one. So the Pi and my NAS (both are attached to a UPS) are shutting down if there is no power for 10 minutes and then they stay switched off.
That is a real reason to wait! Thank you! |
Imagine that you have a UPS, it will help with short power looses, but if You have a longer power loss (let's say one hour) and the power is back the NAS will start automatically (that's how I configured mine), but your HA will not (if you use the default configured argon case). If you don't use the Argon case then it will start normally. I'll let you know when the next version of my integration and the case will be released |
Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am using the normal Argon One case now for Home Assistant. Your scripts from here are working fine for the fan. I also can use the double press for shutting down Home Assistant. Great! |
I also have the argon case and this integration, since yesterday and looking for a way to turn off/power cut the raspberry after HA has completely shut down. THX |
@dieneuser I can add that, no problem, but if you call that during shutting down HA, it might cut power too soon. I'm waiting for the new fan integration in Home Assistant, when it will be implemented I'll be able to rewrite my custom component to be a fan with 0-100 speed control. |
That is clear. It has to be issued shortly before the Pi is down. I don't know how the scripts handle this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello!
I only have a question regarding this integration.
Will this integration allow the use of the powerbutton to shutdown the Pi with Home Assistant?
The text was updated successfully, but these errors were encountered: