@jriker1 wrote:
I did the below and have rebooted. Whenever I switch the switch it says
Failed to call service switch/turn_off. Unable to find service shell_command/shutdown_john.
In my configuration.yaml I have:
shell_command: !include_dir_merge_list shell_commands
In my switch yaml file I have:
- platform: wake_on_lan name: "John" mac: "##:##:##:##:##:##" host: 192.168.0.23 turn_off: service: shell_command.shutdown_john
in a file in the shell_commands folder is a yaml called shell_command_wol.yaml containing:
shutdown_john: "./scripts/shutdown.sh -a 192.168.0.23 -b <myname> -c <my_password>"
Ive tried the above with single quotes and no quotes and taking the entry in the configuration.yaml and pointing directly to the shell_command_wol.yaml but it still doesn’t find it.
Posts: 9
Participants: 2