![]() |
Activate TV over CEC with an http request - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Kodi related discussions (https://forum.kodi.tv/forumdisplay.php?fid=6) +--- Thread: Activate TV over CEC with an http request (/showthread.php?tid=355999) |
Activate TV over CEC with an http request - Mannshoch - 2020-07-24 Is it somehow possible to send a CEC signal to TV so it activates ? At moment, I advise Kodi to play a video-clip. Playing that automatic activates the TV if it is powered off. Is it possible to do it better without such a hacky way? RE: Activate TV over CEC with an http request - Klojum - 2020-07-24 CEC remains a tricky subject, as most/all TV manufacturers have their own thoughts on how CEC is supposed to work. Hence all the different names for the same technology at all the TV companies. Afaik, the Kodi API does not support CEC commands. RE: Activate TV over CEC with an http request - PatK - 2020-07-25 CEC (wiki) The Pulse Eight might offer a solution https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter RE: Activate TV over CEC with an http request - speedwell68 - 2020-07-26 (2020-07-24, 11:40)Mannshoch Wrote: Is it somehow possible to send a CEC signal to TV so it activates ?What device is Kodi running on? RE: Activate TV over CEC with an http request - Mannshoch - 2020-07-26 Raspberry Pi4 with libreelec The reverse way is working. I'm able to use the tv remotecontrol to control KODI RE: Activate TV over CEC with an http request - LongMan - 2020-07-27 I have been able to get the Pi to turn off my projector after it has been idle for a while and to turn it on when a button is pressed (screensaver is deactivated). This worked perfectly with my 3B+, however the Pi 4 is not turning off the projector but it turns it on without fail. I assume there may some kinks to work out with the Pi 4. My settings are: Settings>Interface>Screensaver
Settings>System>Power saving
Settings>System>Input>Peripherals>CEC Adapter
Hope that helps. Cheers, LongMan RE: Activate TV over CEC with an http request - Mannshoch - 2020-07-28 How do the Raspberry start the TV after wake-up? May I could use it to wake-up TV manually. I use the TV as an alarm-clock but before playing the radio I need to modify the Volume. RE: Activate TV over CEC with an http request - speedwell68 - 2020-07-29 (2020-07-26, 19:03)Mannshoch Wrote: Raspberry Pi4 with libreelec You can do it with cec-client. I use cec-client to control my TV using Google Home. RE: Activate TV over CEC with an http request - Mannshoch - 2020-07-29 That sounds great. how could I do that over network? RE: Activate TV over CEC with an http request - speedwell68 - 2020-07-29 (2020-07-29, 15:06)Mannshoch Wrote: That sounds great. SSH into your RPI and with the TV off run this command... echo "on 0" | cec-client RPI -s -d 1 That should have turned the TV on. If it did then try this command... echo "standby 0" | cec-client RPI -s -d 1 Which should turn it back off again. How you then do that over the network depends on how you want it to work over the network. RE: Activate TV over CEC with an http request - Mannshoch - 2020-07-31 That works well. Thanks. [EDIT] At the moment I use this command. Kodi seems deactivating CEC receiving. So The TV remote control not any more work until I restart kodi. I don't know how I should do it over network. My node-red is on another PC. If kodi is not able to give me the possibility to send CEC commands over his API. I need another way to do it. RE: Activate TV over CEC with an http request - matthuisman - 2020-07-31 Write a kodi python service addon that runs a simple web server. That waits for a request and then runs the above terminal commands. RE: Activate TV over CEC with an http request - speedwell68 - 2020-08-03 You could try curl. RE: Activate TV over CEC with an http request - Mannshoch - 2020-08-04 At first, I need to find out why my TV is not any more able to send the remote control commands to Kodi if I use echo "on 0" | cec-client RPI -s -d 1
|