home-assistant: Add service to shut down desk panel

Home Assistant can now SSH into the desk panel and shut it down.
This commit is contained in:
2024-12-02 23:06:30 +00:00
parent 107852ad54
commit b269fa5812
4 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/sh
set -e
ssh -i /run/secrets/home-assistant/sshkey.pem -oUserKnownHostsFile=/run/config/ssh_known_hosts -oBatchMode=yes kiosk@deskpanel.pyrocufflink.red doas systemctl poweroff