Way to power on a TV that can't be powered on via IP

Hi guys!

There is just an idea, you can modify it to your own needs. I have an old Panasonic VIERA TV that is IP controllable but can’t be powered ON via IP, one option is to go IR just to power on, but I don’t have a blaster in that room and don’t really want sticking it on the TV. So I purchased Raspberry Pi, connected it to the TV via HDMI and put a small script to the /usr/lib/cgi-bin/tvon.cgi


echo "Content-Type: text/plain\n\n"
echo on 0 | /usr/bin/cec-client -s

echo "OK"

That is assuming cec-utils package is installed.

Now Simple Control has an action to silently pull URL rpi1/cgi-bin/tvon.sh as a power on command for the TV. That works as a direct connection of HDMI from RPI to the TV and also works fine if connection is done via A/V Receiver.

Other commands could be implemented that way as well.