I’m trying to automate some processes with my Raspberry Pi.
For that I would really like to be able to turn on my receiver and/or TV via CEC.
My issue is that if I try to execute a cec-client command via CLI to fire up the TV (echo “standby 0” | cec-client -d 1 -s) Kodi seems to lose the connection to the CEC-client which results in me no longer being able to control Kodi with my remote control.
From what I understand there can only be one connection to the com port that the CEC adapter is running on. So when I manually call the cec-client via commandline then Kodi loses the connection.
Does anyone have any suggestions on how to solve this problem?
The only idea I’ve had so far has been to somehow add some custom commands for “xbmc-send” which in turn would allow me to tell Kodi which CEC command to execute instead of calling the cec-client directly. However I have no idea if that is even possible.
Thanks in advance!
Device: (Rasp Pi 2
Peripherals: Onkyo TX-NR609, Samsung D7000
OSMC version: 2015.07-1"
XBMC version: 15.1-RC1
Audio/Video Output: HDMI