Add CECPowerStatus for built in functions
#1
I'm developing a simple add on for controlling LEDs via GPIO on a Raspberry Pi.
I'd like to turn them off when the TV is in standby and back on when TV is on.

I looked at the list of built in functions which I can execute and besides CECActivateSource, CECStandby and CECToggleState I would like to have and use CECPowerStatus.

CECPowerStatus can return 0 or 1 for standby and on state of the active source.

libcec already has a function implemented you could expose in Python.

I tried interfacing directly via libcec Python API but since libcec is used Kodi wide already, of course it created a conflict and TV remote didn't work afterwards.

Having a simple status getter function would be rather awesome and I could finish the rest of the project.
Add on code is available on Github:
KodiBlinkt!
Reply

Logout Mark Read Team Forum Stats Members Help
Add CECPowerStatus for built in functions1