#shell_command for remote machine hibernate

1 messages · Page 1 of 1 (latest)

gray sedge
#

In past my home-assistant shell command automation was working fine to hibernate remote server . While i update from bookworm to Trixie after that this automation not working. My homeassistant configration.yml

shell_command:
  turn_off_media_server: "dbclient -i /home/homeassistant/.ssh/homeassistant homeassistant@192.168.1.12 'sudo systemctl hibernate'"
  turn_off_office_server: "dbclient -i /home/homeassistant/.ssh/tiny homeassistant@192.168.1.11 'sudo systemctl hibernate'"

from home assistant machine i can get ssh authorization with this command

sudo -u homeassistant dbclient -i /home/homeassistant/.ssh/homeassistant  homeassistant@192.168.1.12 

without password. but the hibernate command is not working through home-assistant to remote server. please suggest me workable procedure so that i can give hibernate command to remote server.

Basically my this command in home assistant machine terminal not go through in trixie machine which was working fine with bookworm before upgradation

sudo -u homeassistant dbclient -i /home/homeassistant/.ssh/homeassistant  homeassistant@192.168.1.12 ‘sudo systemctl hibernate’