i have an rule which is turning my Synology Nas off if it is after a a specified time… it works, but i get some errors after a while the script is running.
error [pimatic-hap]: Could not call promise: undefined 18:34:14error [pimatic-shell-execute]: [ShellSwitch#NASaus] Error: Command execution failed with exit code 255 (Error: Command failed: ssh: connect to host 192.168.188.36 port 22: Connection timed out)
The nas ist turned off…
this is my script which i call:
id : NASaus name : NAS class : ShellSwitch onCommand : /usr/sbin/etherwake 00:11:32:14:2E:B7 offCommand : sh /home/osmc/nasaus.sh getStateCommand : sh /home/osmc/myping.sh interval : 10000
#!/bin/sh /usr/bin/ssh firstname.lastname@example.org 'poweroff'