Hi guys, I’m currently working on a project to integrate universal remote functionality with home assistant. The webostv media component currently uses the pylgtv module, which can only access a limited subset of the web based control functionality.
I’ve found a python module called PyWebOSTV which implements more of the complete functionality, especially the input stuff (left, right, up, down, mouse, click, keyboard, home, back).
I propose we take a look at this module and implement the extra functionality into a webostv remote component either by updating the pylgtv module or swapping over to this PyWebOSTV module.
I’m interested in doing the work myself, just wondering if any one else is interested in this functionality?
Quite interested in this! Still find it sad that the functionality is so limited to my LG 55c7v.
Would love to be able to start xplay/youtube/doorcam etc
I’m not the best coder, but good @ debugging and very willing to test if you’ll have me
I believe the functionality to change apps/sources is already present in thr current webostv media player component. The feature set I’m looking to add is remote functionality like the arrow keys and magic mouse
I currently use my LG TV with Homekit and it’s great to turn it on an off and change source. The AppleTV/Homekit remote build into iOS can see the TV and adjust the volume but that’s about all.
It would be great to support similar more functionality akin to the LG app:
Home
Back
Select
Up/Down/Left/Right
It seems like a mouse cursor would also be possible.
Hi @bezmi
The local polling of the webOS component is a horrible solution. Therefore I searched for a better solution and found your post. I’m interested if you got the webOS component up and running with the PyWebOSTV lib?
Do you have code which I maybe can reuse?
Best greetings!
Since the pylgtv library is no longer maintained, it has been forked and replaced by aiopylgtv, which implements the additional input command functionality and non-polling based state updates. Home assistant 0.104 includes the migration to the new library and support for the additional features.
Thanks for the new integration. It seems like a much better basis going forward with a lot more potential.
Do you know how it might integrate better with Homekit?
The old version supported volume, play/pause. The new one supports volume, but play/pause is very inconsistent. None of the direction arrows or the back button work.
Play/pause toggle will probably never work reliably, because the TV only really supports discrete play and pause commands, and does not have any mechanism for retrieving the playing vs paused state.
Direction arrows and the back button should work fine (but again, I’m not familiar with homekit or how this is integrated there.)
Component has many commands, but you have to go to github to see all commands. Please, proxy this commands to component, to make autocomple when writting command work