Hi,
I would like to automatically stop playback when I switch off my tv
The best solution I have found to detect the status of my TV is the script below. It ping 3 times my tv every 5 minutes and execute some commands if ping failed the 3 times. (“tvservice -s” or “tvservice -n” commands were my first candidates, but they don’t react to the standby mode of my samsung tv)
while true; do
ping -c 3 10.0.0.10 | grep “0 received” && kodi_stop_playback
sleep 300
done
The last pieces missings are the command in bold and a good way to launch the script. (I have try some kodi-send commands without succes…)
So I’ll be glad if a linux/bash/kodi/osmc wizard can help me
Thanks