Hi all. im trying to execute a shell command to make my MBP go to sleep via a script in HAS. i have successfully setup ssh and created a script in bash to sleep the mac and it works really well. (also made the script executable)
now im trying to follow the HAS guide on shell commands (Shell Command - Home Assistant) yet for the life of me cant get it to work
i have setup the command in config.yaml
shell_command:
mac_sleep: bash /root/config/scripts/office_mac_sleep.sh
and then i try to call that service yet nothing happens, logs say it ran. any clue?
1 post - 1 participant