Page 1 of 4

LG TV WebOs 3.0

Posted: Friday 23 February 2018 18:25
by wmmudde
Hello,

Is there someone who has the LG webOs homebridge plug-in working ??
If So can you please tell me How I can install this plug-in.

Re: LG TV WebOs 3.0

Posted: Friday 23 February 2018 19:47
by Bluelightcrew
I installed it, including the pylgtv libary. But in the Log is writing this:
(LGTV) Update 1:'Traceback (most recent call last):
File "/home/pi/domoticz/plugins/lgtv/lg.py", line 1, in
from pylgtv import WebOsClient
ImportError: No module named 'pylgtv'
(Traceback (most recent call last):

its not working with my LG65b6v ,i think something is wrong whit the pylgtv libary

Re: LG TV WebOs 3.0

Posted: Friday 23 February 2018 23:06
by wmmudde
How did you install and run the plug-in?

Re: LG TV WebOs 3.0

Posted: Saturday 24 February 2018 0:33
by Bluelightcrew
https://www.domoticz.com/wiki/Using_Python_plugins

-Download the files from github
-put it in domoticz/plugins/lgtv(lgtv is not important, you can chose an other name)
-make the files executable (chmod - x filename)
-restart domoticz
After this you will find it under hardware

But for the LG tv plugin you have to install the pylgtv library. I have done this with: pip3 install pylgtv

Re: LG TV WebOs 3.0

Posted: Saturday 24 February 2018 19:00
by wmmudde
Thanks it is working now.!

Now I Just need to know How to enable remote power on.
Because the power off is working But the power on not :-(

Re: LG TV WebOs 3.0

Posted: Saturday 24 February 2018 19:45
by Bluelightcrew
wmmudde wrote: Saturday 24 February 2018 19:00 Thanks it is working now.!

Now I Just need to know How to enable remote power on.
Because the power off is working But the power on not :-(
There is a option in the TV settings.

Re: LG TV WebOs 3.0

Posted: Sunday 25 February 2018 10:06
by gielie
Were can I Find the LG webOs3 python plug-in?

Re: LG TV WebOs 3.0

Posted: Sunday 25 February 2018 10:12
by schulpr

Re: LG TV WebOs 3.0

Posted: Sunday 25 February 2018 11:42
by wmmudde
Bluelightcrew wrote: Saturday 24 February 2018 19:45
wmmudde wrote: Saturday 24 February 2018 19:00 Thanks it is working now.!

Now I Just need to know How to enable remote power on.
Because the power off is working But the power on not :-(
There is a option in the TV settings.
Cant find that option on LG 65uh850v

Re: LG TV WebOs 3.0

Posted: Sunday 25 February 2018 22:11
by gielie
Bluelightcrew wrote: Friday 23 February 2018 19:47 I installed it, including the pylgtv libary. But in the Log is writing this:
(LGTV) Update 1:'Traceback (most recent call last):
File "/home/pi/domoticz/plugins/lgtv/lg.py", line 1, in
from pylgtv import WebOsClient
ImportError: No module named 'pylgtv'
(Traceback (most recent call last):

its not working with my LG65b6v ,i think something is wrong whit the pylgtv libary
I have the same error, did you solve this allready?

Re: LG TV WebOs 3.0

Posted: Sunday 25 February 2018 23:44
by Bluelightcrew
gielie wrote: Sunday 25 February 2018 22:11
Bluelightcrew wrote: Friday 23 February 2018 19:47 I installed it, including the pylgtv libary. But in the Log is writing this:
(LGTV) Update 1:'Traceback (most recent call last):
File "/home/pi/domoticz/plugins/lgtv/lg.py", line 1, in
from pylgtv import WebOsClient
ImportError: No module named 'pylgtv'
(Traceback (most recent call last):

its not working with my LG65b6v ,i think something is wrong whit the pylgtv libary
I have the same error, did you solve this allready?
No sorry, I don't know what the problem is. I need help.
I have some questions to the people who use this plugin. What web OS Version you have?
Is the TV showing you a paring key?

Re: LG TV WebOs 3.0

Posted: Tuesday 27 February 2018 18:43
by wmmudde
I resolved it by running this commando again after installinh plug-ins.

pip3 install pylgtv

Re: LG TV WebOs 3.0

Posted: Tuesday 27 February 2018 21:55
by Bluelightcrew
wmmudde wrote: Tuesday 27 February 2018 18:43 I resolved it by running this commando again after installinh plug-ins.

pip3 install pylgtv
Cool thanks for this info, but it doesn't help me. What webos version your TV have? My TV has webos 3.3

Re: LG TV WebOs 3.0

Posted: Monday 19 March 2018 19:17
by Cyrus40
I have the same problem :

Code: Select all

(Traceback (most recent call last):
File "/home/osmc/domoticz/plugins/lgtv-webos-domoticz-plugin-master/lg.py", line 1, in 
from pylgtv import WebOsClient
ImportError: No module named 'pylgtv'
I think pylgtv module is correctly installed :

Code: Select all

pip3 install pylgtv
Collecting pylgtv
Collecting websockets (from pylgtv)
Collecting asyncio (from pylgtv)
  Using cached asyncio-3.4.3-py3-none-any.whl
Installing collected packages: websockets, asyncio, pylgtv
Successfully installed asyncio-3.4.3 pylgtv-0.1.8 websockets-4.0.1
Any help?

Re: LG TV WebOs 3.0

Posted: Friday 23 March 2018 13:49
by johanm
I had the same problem. After reading some post on the forum I unstalled the pylgtv (PIP3 uninstall) and reinstall it with sudo rights (sudo pip3 install pylgtv). This error seems to be gone now.

Domictiz is now sending commands to the LGTV. You have to allow the application to pair with the TV. This a little bit hard to do because the meassage is only very short available on the TV, keep remote ready to answer.

I have to say that that it is not a very responsive interface at this moment, it can take minutes before the TV reacts. Not sure were that is comming from maybe is my old PI to slow?

Re: LG TV WebOs 3.0

Posted: Friday 23 March 2018 16:11
by Bluelightcrew
I will try it, but when I enter pip3 uninstall, it returns: You must give at least one requirement to uninstall (see "pip help uninstall")

Re: LG TV WebOs 3.0

Posted: Saturday 24 March 2018 1:53
by johanm
Sorry for not being clear but it is pip3 uninstall pylgtv.

Re: LG TV WebOs 3.0

Posted: Saturday 24 March 2018 7:47
by Bluelightcrew
Wow super cool now it works, you are my hero! Thanks

Re: LG TV WebOs 3.0

Posted: Sunday 25 March 2018 10:50
by Cyrus40
I install pylgtv again with sudo permission and no error in log thanks :mrgreen:

But my TV don't react to my command...
I can't send commands :|
How to pair with TV?


EDIT : It works ! LG Connected Apps was disabled on my TV !

Last problem i think, TV won't turn ON. "Mobile TV" is enabled.
Domoticz status when i turn ON TV : "TV Starting".
Any idea?


EDIT 2: I finally connect my tv with ethernet instead of wifi and it works !

Any idea to change/modify input??

Re: LG TV WebOs 3.0

Posted: Tuesday 31 July 2018 21:33
by basmaaks
got it running (sort of)

Some small problem, status isn't showing the channel I'm watching. Input selector doesn't work, can't switch my tv off. But I can switch my TV on.

Any help ?