thereallink / pylgtv Goto Github PK
View Code? Open in Web Editor NEWLibrary to control webOS based LG Tv devices
License: MIT License
Library to control webOS based LG Tv devices
License: MIT License
I've got an 55UH850V with LGwebOS 05.30.02 and when I added the component to Hass.io he couldn't connect to the TV, because I didn't get a pair request. So I installed Python on my desktop Windows 10 PC and installed pylgtv. It gave the same issue. When I changed webos_client.py by adding the following code to the bottom off the class WebOsClient
self.load_key_file()
self.register()
self.save_key_file()
Now it gives a pair request and creates the local key file. I don't know if this is the way to fix it but it works for me. Can you commit a fix so it will be fixed in Hass.io, because I can't make file changes in Hass.io
Could you publish this package on Pypi, so it can be fetched without specifying the github URL?
I use Home Assistant and a component called WEBOSTV, which makes use of PYLGTV as a dependency. It works really well, however then the initialisation happens, the TV needs to be powered on for the notify feature to work. Is there any form of workaround that can be put in place for this?
Really appreciate the work !!
Could you guide me on how to get this stared? can't get it to pair to the tv and the example app always says error connecting to tv. Thanks
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!
Is it possible to open a link in het WebOS browser, in full screen mode?
Error connecting to TV
Exception ignored in: <generator object WebSocketCommonProtocol.close_connection at 0x000001D5B1B7AA98>
ERROR:asyncio:Task was destroyed but it is pending!
Traceback (most recent call last):
task: <Task pending coro=<WebSocketCommonProtocol.write_frame() running at C:\Python36\lib\site-packages\websockets\protocol.py:637> cb=[_release_waiter(()]>)() at C:\Python36\lib\asyncio\tasks.py:316]>
File "C:\Python36\lib\site-packages\websockets\protocol.py", line 741, in close_connection
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending coro=<Queue.get() running at C:\Python36\lib\asyncio\queues.py:167> wait_for= cb=[_wait.._on_completion() at C:\Python36\lib\asyncio\tasks.py:380]>
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending coro=<WebOsClient._command() done, defined at C:\Python36\lib\site-packages\pylgtv\webos_client.py:145> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000001D5B1B86F18>()]>>
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending coro=<WebSocketCommonProtocol.transfer_data() done, defined at C:\Python36\lib\site-packages\websockets\protocol.py:486> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000001D5B1B86E28>()]> cb=[_wait.._on_completion() at C:\Python36\lib\asyncio\tasks.py:380, <TaskWakeupMethWrapper object at 0x000001D5B1B86E88>()]>
self.writer.close()
File "C:\Python36\lib\asyncio\streams.py", line 312, in close
return self._transport.close()
File "C:\Python36\lib\asyncio\selector_events.py", line 621, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Python36\lib\asyncio\base_events.py", line 574, in call_soon
self._check_closed()
File "C:\Python36\lib\asyncio\base_events.py", line 357, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending coro=<WebSocketCommonProtocol.close_connection() done, defined at C:\Python36\lib\site-packages\websockets\protocol.py:695> wait_for=<Task pending coro=<WebSocketCommonProtocol.transfer_data() done, defined at C:\Python36\lib\site-packages\websockets\protocol.py:486> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000001D5B1B86E28>()]> cb=[_wait.._on_completion() at C:\Python36\lib\asyncio\tasks.py:380, <TaskWakeupMethWrapper object at 0x000001D5B1B86E88>()]>>
Do you know if there's a possibility to take a screenshot of the image which is shown on the TV?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.