Hi.
I just setup a RPI4 with Recalbox on USB SSD drive.
Everything works really well.
I'm now setting up a sort of "parental control" in home assistant.
I can schedule power hours to the RPI by using a zigbee powerplug, I can monitor when Recalbox is online by using a ping binary sensor thta check when the host is responding, how long it is on and I can set a time limit.
At the moment when the time limit is finished, a google speaker tells my doughter that's almost time to shutdown, ad after few minutes it say that NOW it must be shut down.
I'm trying to replace the last message with a command that powers off correctly the Recalbox machine. Simply switching off the powerplug is not what I want and will probably corrupt recalbox.
I've been able to poweroff recalbox manually by connecting to it in SSH, but it need password so I can't automate the command in home assistant. I've read about creating keys to disable password access, but I'm not good in linux and I didn't succeed.
I saw that the web interface has a poweroff button.
So I think that probably I can call the same command from home assistant, but I don't know how. Is there a REST command that can do that?
Thanks.
Latest posts made by xalex75
-
Poweroff Recalbox remotely