LG TV WebOs 3.0

Moderator: leecollings

jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: LG TV WebOs 3.0

Post by jon205 »

I'm willing to test it Bram.
owner1987
Posts: 6
Joined: Thursday 20 July 2017 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by owner1987 »

Can you send a picture via this notification method for lg webos?

I want to send my door ipcam picture by first pausing content and showing a static jpeg picture from a url.

Greetz.
FreddyJb
Posts: 1
Joined: Thursday 24 December 2020 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by FreddyJb »

I'd be happy to test
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: LG TV WebOs 3.0

Post by jon205 »

Am I the only one to which this happens: I can turn off the tv through the network, but when it is off, it won't turn on. This happens with the LG app, but also in Domoticz.
pagocs
Posts: 5
Joined: Sunday 06 November 2016 17:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by pagocs »

I would like to join to the test team also! :)
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: LG TV WebOs 3.0

Post by Egregius »

jon205 wrote: Thursday 24 December 2020 13:38 Am I the only one to which this happens: I can turn off the tv through the network, but when it is off, it won't turn on. This happens with the LG app, but also in Domoticz.
Think you need to allow that in the settings of the tv.
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: LG TV WebOs 3.0

Post by jon205 »

I though I already configured that. I'll double check.
mrfusion
Posts: 4
Joined: Friday 02 June 2017 23:49
Target OS: Linux
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by mrfusion »

Interested to test as well.
The feature to send notification with a picture would be excellent if feasible.
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: LG TV WebOs 3.0

Post by jon205 »

Egregius wrote: Thursday 31 December 2020 11:59
jon205 wrote: Thursday 24 December 2020 13:38 Am I the only one to which this happens: I can turn off the tv through the network, but when it is off, it won't turn on. This happens with the LG app, but also in Domoticz.
Think you need to allow that in the settings of the tv.
Checked this, power-on by wifi is enabled. But I'm not using wifi, but ethernet. Does it mean you can only switch on the tv over wifi? That wouldn't make any sense.
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: LG TV WebOs 3.0

Post by Egregius »

I believe it should work over ethernet also. Don't use it anymore because my Nvidia Shield starts the TV with HDMI HEC.
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: LG TV WebOs 3.0

Post by Sarcas »

DarkG wrote: Thursday 12 November 2020 1:01 I habe this error in log

2020-11-12 00:59:49.946 Error: (tv) 'onHeartbeat' failed 'NameError':'name 'out' is not defined'.
2020-11-12 00:59:49.946 Error: (tv) ----> Line 466 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 351 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function GetTVInfo
I have the same error. Found a solution yet?
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
marcovz
Posts: 5
Joined: Tuesday 10 November 2020 20:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by marcovz »

Sarcas wrote: Sunday 24 January 2021 15:09
DarkG wrote: Thursday 12 November 2020 1:01 I habe this error in log

2020-11-12 00:59:49.946 Error: (tv) 'onHeartbeat' failed 'NameError':'name 'out' is not defined'.
2020-11-12 00:59:49.946 Error: (tv) ----> Line 466 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 351 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function GetTVInfo
I have the same error. Found a solution yet?
The problem is in plugin.py that 'out' is not defined in 'def GetTVInfo(self):' starting at line 340. Variable out is called at line 351. Following is working for me, insert a line at 341 to define out:

Code: Select all

out = self.run("software-info")
the beginning of 'Def GetTVInfo(self):'will look like

Code: Select all

def GetTVInfo(self):
        out = self.run("software-info")
        currentApp = str(self.run("current-app")).rstrip()
        currentInput = str(self.run("get-input")).rstrip()
        currentChannel = self.run("get-channel")
        currentInfo = self.run("info")

        self.tvPlaying = {'title': 'test', 'programTitle': None}#_tv.get_playing_info()
        Domoticz.Debug("App: " + currentApp)
        Domoticz.Debug("Input: " + currentInput)
        Domoticz.Debug("Channel: " + currentChannel)
        Domoticz.Debug("Info: " + currentInfo)
       
        if 'TimeoutError()' in out:
            currentChannel = "Off"
            
restart Domoticz service. Maybe this is not the best solution, but for me it works.
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: LG TV WebOs 3.0

Post by Sarcas »

marcovz wrote: Friday 29 January 2021 20:45 restart Domoticz service. Maybe this is not the best solution, but for me it works.
At least I have a different error now :)

Code: Select all

2021-01-30 14:30:16.965 Error: Python Plugin System: (lgtv) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/LGTV/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-01-30 14:30:16.965 Error: Python Plugin System: (LGTV) Module Import failed, exception: 'TabError'
2021-01-30 14:30:16.966 Error: Python Plugin System: (LGTV) Import detail: File: /home/pi/domoticz/plugins/LGTV/plugin.py, Line: 342, offset: 59
2021-01-30 14:30:16.966 Error: Python Plugin System: (LGTV) Error Line ' currentApp = str(self.run("current-app")).rstrip()
2021-01-30 14:30:16.966 '
2021-01-30 14:31:25.850 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:31:39.855 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:31:53.858 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:32:07.862 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:32:21.865 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:32:35.868 Error: LGTV hardware (23) thread seems to have ended unexpectedly
Odd thing is, the python error only appeared once it seems. Now it is just a stream of “Error: LGTV hardware (23) thread seems to have ended unexpectedly”. I guess it just won’t work with my OLED55E7N.
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
marcovz
Posts: 5
Joined: Tuesday 10 November 2020 20:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by marcovz »

Looks like a python error in your code at line 341 or 342, the TabError. Python uses indentation which can be tabs or spaces and should be the same in the lines of the code. What did you use to get the indentation?

In plugin.py each indent is 4 spaces, so for this new line it should be 8 spaces. Can you post a piece of your code?
Nefsolive
Posts: 69
Joined: Monday 04 September 2017 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by Nefsolive »

marcovz wrote: Friday 29 January 2021 20:45
Sarcas wrote: Sunday 24 January 2021 15:09
DarkG wrote: Thursday 12 November 2020 1:01 I habe this error in log

2020-11-12 00:59:49.946 Error: (tv) 'onHeartbeat' failed 'NameError':'name 'out' is not defined'.
2020-11-12 00:59:49.946 Error: (tv) ----> Line 466 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 351 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function GetTVInfo
I have the same error. Found a solution yet?
The problem is in plugin.py that 'out' is not defined in 'def GetTVInfo(self):' starting at line 340. Variable out is called at line 351. Following is working for me, insert a line at 341 to define out:

Code: Select all

out = self.run("software-info")
the beginning of 'Def GetTVInfo(self):'will look like

Code: Select all

def GetTVInfo(self):
        out = self.run("software-info")
        currentApp = str(self.run("current-app")).rstrip()
        currentInput = str(self.run("get-input")).rstrip()
        currentChannel = self.run("get-channel")
        currentInfo = self.run("info")

        self.tvPlaying = {'title': 'test', 'programTitle': None}#_tv.get_playing_info()
        Domoticz.Debug("App: " + currentApp)
        Domoticz.Debug("Input: " + currentInput)
        Domoticz.Debug("Channel: " + currentChannel)
        Domoticz.Debug("Info: " + currentInfo)
       
        if 'TimeoutError()' in out:
            currentChannel = "Off"
            
restart Domoticz service. Maybe this is not the best solution, but for me it works.
For me works great too! Thanks.
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: LG TV WebOs 3.0

Post by Sarcas »

marcovz wrote: Saturday 30 January 2021 15:56 Looks like a python error in your code at line 341 or 342, the TabError. Python uses indentation which can be tabs or spaces and should be the same in the lines of the code. What did you use to get the indentation?

In plugin.py each indent is 4 spaces, so for this new line it should be 8 spaces. Can you post a piece of your code?
My editor (BBEdit) put in a tab instead of 4 spaces. I fixed it, thanks :)
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
mapsindustrial
Posts: 6
Joined: Tuesday 23 February 2021 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by mapsindustrial »

I have installed this amazing plugin on a Raspberry pi3 + together with domoticz and nothing else, after a day or two of correct operation my domoticz system falls and stops working, allí domoticz stop and and it is impossible to recover it.

Help ! Any solution?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: LG TV WebOs 3.0

Post by waltervl »

mapsindustrial wrote: Tuesday 23 February 2021 23:08 I have installed this amazing plugin on a Raspberry pi3 + together with domoticz and nothing else, after a day or two of correct operation my domoticz system falls and stops working, allí domoticz stop and and it is impossible to recover it.

Help ! Any solution?
See https://www.domoticz.com/wiki/Troubleshooting section Hardware to disable the plugin through Setup-Hardware or directly in the SQL database.
If Domoticz still fails to start something else is wrong..... Perhaps better to do a new install if you have no other devices in your implementation.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
mapsindustrial
Posts: 6
Joined: Tuesday 23 February 2021 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LG TV WebOs 3.0

Post by mapsindustrial »

I want solve the ploblem with the plugin and use it. Domoticz isn't a problem because i can reinstall and work fine.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: LG TV WebOs 3.0

Post by waltervl »

mapsindustrial wrote: Wednesday 24 February 2021 16:32 I want solve the ploblem with the plugin and use it. Domoticz isn't a problem because i can reinstall and work fine.
Could be many things beside the plugin. If nobody else complains about crashes it could be your Domoticz install.
Do you run Stable or Beta?
What does the log file say?
What does the crash log say?

Is your SD card functioning right?
Is your power adapter functioning correctly?

Will Stable domoticz 2020.2 run on your system for 2 days without this plugin?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest