pylgtv
pylgtv copied to clipboard
Up/Down/Left/Right keys?
Hello! Sorry, it's not exactly an issue, but I haven't found how to send the equivalent of up/down/left/right keys on remote control anywhere in your code. Is it possible?
Thanks in advance!
Same question. Having fun playing with my tv though. Thanks!
Launching Netflix and then selecting a profile is a good use case for the directional arrow keys. Does that functionality already exist?
@eponymic That's exactly why (navigate through Netflix) I need this funcion! If you find out you how, please let me know.
The control keys (HOME, LEFT, RIGHT, UP, DOWN, BACK) are part of the WebOS Mouse service. This library doesn't implement that class at all. If anyone wants to attempt to implement it, you can start by looking at https://github.com/ConnectSDK/Connect-SDK-Android-Core/blob/master/src/com/connectsdk/service/WebOSTVService.java#L1938
@jheiselman I will take a look. Thank you!
FYI, I have found a repository supersaiyanmode/PyWebOSTV that claims to implement mouse control. Haven't tested it yet, but I plan to take a look at it in a few days time.
I took a quick read over the code and the library is touching the correct API endpoints. I'll see if I can find some time to test it out as well, but it looks promising.
I ended up quickly testing the input commands and they seem to work alright. I am happy to have a go at adding the extra functionality in a few days (after my exams), since I want to write a webostv remote component for homeassistant anyway.
Nice! I may just switch libraries because I'm using a roll-your-own automation. Though I really should give homeassistant another try.
I just submitted a pull request to implement this: https://github.com/TheRealLink/pylgtv/pull/18