1
0
Fork 0

home-assistant: Add service to shut down desk panel

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

View File

@ -30,6 +30,7 @@ configMapGenerator:
- restart-diddy-mopidy.sh - restart-diddy-mopidy.sh
- restart-kitchen-mqttmarionette.sh - restart-kitchen-mqttmarionette.sh
- shell-command.yaml - shell-command.yaml
- shutdown-kiosk.sh
- ssh_known_hosts - ssh_known_hosts
- rest-command.yaml - rest-command.yaml
options: options:

View File

@ -6,3 +6,6 @@ restart_diddy_mopidy: >-
restart_kitchen_mqttmarionette: >- restart_kitchen_mqttmarionette: >-
sh /run/config/restart-kitchen-mqttmarionette.sh sh /run/config/restart-kitchen-mqttmarionette.sh
shutdown_kiosk: >-
sh /run/config/shutdown-kiosk.sh

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

View File

@ -1,2 +1,3 @@
diddy.pyrocufflink.red ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILx6gRqlVnvdqTIJTH16NBLJ4ORfTsBaUIEpt5ZMkkNW diddy.pyrocufflink.red ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILx6gRqlVnvdqTIJTH16NBLJ4ORfTsBaUIEpt5ZMkkNW
kitchen.pyrocufflink.red ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLzMLOlFXPiovBwYLmXCVV8Md/xR36zwPj6egT9V3O7 kitchen.pyrocufflink.red ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLzMLOlFXPiovBwYLmXCVV8Md/xR36zwPj6egT9V3O7
deskpanel.pyrocufflink.red ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEcvO0jsZ8U2mw/HHs0BHbbEI48W0fxti8f5DuNyFS2L