sorry, but this flood of information on getting started with Home Assistant is overwhelming me a bit… I promise I’ll continue to read up on it… But get a little desperate here too.
Where do I have a mistake here? Am I thinking too simplistically?
switch: - platform: wake_on_lan mac: XX:XX:XX:XX:XX:XX name: "NAS" host: 10.10.1.100 turn_off: service: shell_command.shutdown_nas # Exposes service shell_command.shutdown_nas shell_command: shutdown_nas: bash /config/nas_shutdown.sh
nas_shutdown.sh (saved in /config/)
#!/bin/bash ssh -l username 10.10.1.100 "sudo shutdown"
i’ve done the ssh-key-stuff from inside the haas container… so sudo is not the problem.