Req API command to turn HDMI-CEC TV off
#1
Hi,

It would be good to have API commands to turn on and off the TV (and just the TV, not the HDMI adapter nor the Kodi system).

I'm already able to do so trough the terminal on the RaspberryPi, with the following commands:
Code:
pi@raspbmc:~$ echo "on 0" | cec-client -d 1 -s #turn TV on
log level set to 1
opening a connection to the CEC adapter...
pi@raspbmc:~$ echo "standby 0" | cec-client -d 1 -s #turn TV off
log level set to 1
opening a connection to the CEC adapter...
pi@raspbmc:~$

And I believe Kodi already has some internal function to do so (I don't know if it uses cec-client), since it is already able to turn my TV off after a predetermined time of inactivity, and turn on when I do any keyboard/mouse/API input. I just want a direct way to turn off trough the JSON-RPC API, basically.

Thanks!
Reply


Messages In This Thread
API command to turn HDMI-CEC TV off - by bcdonadio - 2014-10-28, 22:34
Logout Mark Read Team Forum Stats Members Help
API command to turn HDMI-CEC TV off1