Kodi Community Forum
Linux PYTHON CLASSES (or other way) to interact with CEC managed by kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Linux PYTHON CLASSES (or other way) to interact with CEC managed by kodi (/showthread.php?tid=354259)



PYTHON CLASSES (or other way) to interact with CEC managed by kodi - amarabottiglia - 2020-05-08

Hi all, 
I'm coding a google assistant app to interact with kodi, in python. So I'm looking for the python functions/calsses to manage/wake up (I think through libCEC) television from a stand-by status. 
Thanks for your support.


PYTHON CLASSES (or other way) to interact with CEC managed by kodi - enen92 - 2020-05-09

https://codedocs.xyz/xbmc/xbmc/page__list_of_built_in_functions.html

See CEC builtins. Builtins are called from python using xbmc.executebuiltin()


RE: PYTHON CLASSES (or other way) to interact with CEC managed by kodi - amarabottiglia - 2020-05-09

(2020-05-09, 00:06)enen92 Wrote: https://codedocs.xyz/xbmc/xbmc/page__list_of_built_in_functions.html

See CEC builtins. Builtins are called from python using xbmc.executebuiltin()

Many thanks, with your suggestion I identified the solution --> kodi-send --action='CECActivateSource'

Thanks