Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103315

Cant seem to run ssh script as a service

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 103315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>