Release Toggle LG TV Power addon
I just released a simple addon script which toggles the power of an LG TV. This uses cec-client and the kodi.script.turnofflgtv addon.

It's useful to bind to a remote control "power" button, to turn the TV on when it's off, or off when it's on. It uses CEC to get the TV power status, and turn the TV on, and the Kodi.Script.TurnOffTV addon to turn the TV off. This is necessary for LG TVs, as they don't support CEC to turn off, so the CECToggleState command won't work for it. I assigned this script to the power button on my remote by adding this line to the keymap.xml:

I just put it up on github at

This is the first addon I've written, so any feedback would be very welcome.
Thread Rating:
  • 0 Vote(s) - 0 Average

Logout Mark Read Team Forum Stats Members Help
Toggle LG TV Power addon00