How to make Homey turn off a chromecast TV?

Do you have any other programmable device connected to your TV? I have a raspberry pi connected that i use in combination with Kodi.
I use this pi to invoke the cec commands that I want… you do have to set up something with a sshclient to invoke the remote command though.

Turning your tv on:

echo 'on 0' | /usr/osmc/bin/cec-client -s -d 1

Turning your tv off:

echo 'standby 0' | /usr/osmc/bin/cec-client -s -d 1

2 Likes