Posts: 51
Joined: Aug 2010
Reputation:
0
It already was at 36037 but i tried switching to 231, now when I try to turn off the tv it switches channel (from HDMI to regular TV channels).
Posts: 17
Joined: May 2015
Reputation:
0
Hi,
is there an addon or script for kodi that would enable RPI to change AVR HDMI input?
I need it because of Samusng TV bug which switches AVR input to TV-Audio when CEC is enabled on TV.
tnx.
tomi
Posts: 11
Joined: Apr 2013
Reputation:
0
Hi all.
Has there been any progress with this? I have an Rpi3 that's always on, so there would be a huge benefit in being able to remotely control my TV over http
Posts: 12
Joined: Jul 2016
Reputation:
0
I'm just going to put in my 2 cents for what it's worth. I have two Kodi's setup to run continuously on PI 3. What I have done was download an addon called Kodi Callbacks which fires scripts, commands etc based on events. So for my setup, I tell the addon that when the screensaver deactivates, then to change source using the command CECActivateSource. This will not only turn on the TV but it will also switch to the source input if the TV is already on. If Kodi is the source and the TV is on then nothing happens. This means I can use the Kodi remote to activate based on just a single movement or use my custom Google Home Kodi app to activate when I say "Talk to Kodi".
To turn off the TV I was tossing up between 2 options, one was using another callback for shutdown and run a script. So when Kodi shuts down, then we can execute what ever we like. Now you have the option of using a script and doing a cec-client command or you could just run a built-in function CECStandby. If using the shutdown event, then it's best to reboot your device from script as shutting down from my PI in Kodi was problematic. The other thing you can do is create your own custom addon script to process JSON RPC calls and execute those built-in methods from JSON, this is the method I chose for my Google Home command. Anyway, there's a few options to play with, keep in mind that using the built-in functions will keep Kodi and the CEC intact where as using cec-client then Kodi will lose the instance and no longer accept CEC input.
Posts: 12
Joined: Jul 2016
Reputation:
0
Also for the record, there are vanilla options in the settings input section for CEC which allows certain controls to happen based on certain events.
Posts: 87
Joined: Jan 2014
Reputation:
0
Hi everyone!
Can we send commands over CEC now without touching Kodi-CEC functionality? (Mentioned above Kodi Callbacks looks cool, but can not it change TV source?)