bendavid / aiopylgtv

Library to control webOS based LG Tv devices
MIT License
143 stars 47 forks source link

STB button to turn on Settopbox #32

Open wburgers opened 3 years ago

wburgers commented 3 years ago

Hello,

The magic remote of my LG TV includes this STB button. Will it be possible to "press" that button from this library? What would be needed to include that button? I would like Home Assistant to be able to turn on/off my settopbox.

Thank you

thecode commented 3 years ago

The integration is communicating with the TV, not the remote, I hardly believe such is possible. Disconnect the TV from power, if the remote can turn on the STB the command arrives directly from the remote and it is not possible to control it via the library.

wburgers commented 3 years ago

When the tv is in stand-by mode the stb-button does not function. Only when the tv is powered on, the stb-button powers on/off the settopbox. Also when the TV is set to HDMI-1 (the HDMI input coupled with the settopbox), the TV will display something along the lines of: No input, do you want to turn on the external device? No / Yes. You can click Enter on the remote (or point at the Yes button on screen) and that will turn on the settopbox. So I figured there must be some way to make the tv send a signal to the remote to send some IR beams to the settopbox. But it could very well be that LG does not expose that API. Just sending Enter to the tv when the question is asked, does only allow to power on the settopbox, unfortunately it can't be powered off in the same way.