Connect SDK Binding (for LG WebOS TVs)

webos
connectsdk
Tags: #<Tag:0x00007f0152f670e8> #<Tag:0x00007f0152f65cc0>

(Sebastian Prehn) #466

Hi,

I noticed the same myself…

Unfortunately INCREASE and DECREASE won’t work with Channel anymore, because Number does not support it. The example in the documentation is outdated.

It does work for Dimmer types, thus Volume is OK.

I checked within the project, if Number channel type could be modified to accept DECREASE and INCREASE, but this was rejected.

Sebastian


(Gyula Makai) #467

Thanks Sebastian!

Any working solution?


(Sebastian Prehn) #468

No relative one. But you can set it with absolute numbers. For the sitemap, pick you favorite channel numbers and create a selection.


(Gyula Makai) #469

Sensational… :frowning:


(Eyal Cohen) #470

@Andy_Vercammen I have the same issue. I always see new thing in the inbox and the items doesn’t work. Did you find a solution for that?


(Andy Vercammen) #471

unfortunately haven’t found a solution yet


(Eyal Cohen) #472

@Andy_Vercammen, Sometimes (without changing the configuration), it is able to connect, but most of the cases, it doesn’t. So it seems that the configuration is correct, but the binding has issue.

I hope it will be solved … I am trying to understand what is the sequence that after it the connection is successful


(Eyal Cohen) #473

@sprehn

Below is debug log from my system. I have LG C7 OLED TV. I cannot create connection to the TV. Sometime, I do (same setting) but 99% of the cases there is no connection. Below are the DEBUG logs. I hope it can help to find the issue

2018-10-07 21:20:02.451 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent INSTALLED - org.openhab.binding.lgwebos

2018-10-07 21:20:05.405 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent RESOLVED - org.openhab.binding.lgwebos

2018-10-07 21:22:26.704 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STARTING - org.openhab.binding.lgwebos

2018-10-07 21:22:26.913 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Config Parameters: {component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=207}

2018-10-07 21:22:26.935 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService, org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery}={service.id=338, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=207} - org.openhab.binding.lgwebos

2018-10-07 21:22:26.964 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=339, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.LGWebOSHandlerFactory, component.id=208} - org.openhab.binding.lgwebos

2018-10-07 21:22:26.967 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STARTED - org.openhab.binding.lgwebos

2018-10-07 21:27:07.489 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Capabilities updated: {"modelName":"LG Smart TV","lastConnected":1538936759,"lastKnownIPAddress":"192.168.0.111","modelNumber":"OLED65C7Y-T","id":"ccccxxxx-xxxx-xxxx-xxxx-xxxx40euuuu","services":{},"lastDetection":1538936759,"friendlyName":"[LG] webOS TV OLED65C7Y"} - added: [] - removed: [VolumeControl.Get, VolumeControl.Set, VolumeControl.UpDown, VolumeControl.Subscribe, VolumeControl.Mute.Get, VolumeControl.Mute.Set, VolumeControl.Mute.Subscribe, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, TextInputControl.Send, TextInputControl.Enter, TextInputControl.Delete, TextInputControl.Subscribe, MouseControl.Connect, MouseControl.Disconnect, MouseControl.Click, MouseControl.Move, MouseControl.Scroll, KeyControl.Up, KeyControl.Down, KeyControl.Left, KeyControl.Right, KeyControl.OK, KeyControl.Back, KeyControl.Home, KeyControl.KeyCode, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, Launcher.App, Launcher.App.Params, Launcher.App.Close, Launcher.App.List, Launcher.Browser, Launcher.Browser.Params, Launcher.Hulu, Launcher.Hulu.Params, Launcher.Netflix, Launcher.Netflix.Params, Launcher.YouTube, Launcher.YouTube.Params, Launcher.AppStore, Launcher.AppStore.Params, Launcher.AppState, Launcher.AppState.Subscribe, Launcher.RunningApp, Launcher.RunningApp.Subscribe, TVControl.Channel.Get, TVControl.Channel.Set, TVControl.Channel.Up, TVControl.Channel.Down, TVControl.Channel.List, TVControl.Channel.Subscribe, TVControl.Program.Get, TVControl.Program.List, TVControl.Program.Subscribe, TVControl.Program.List.Subscribe, TVControl.3D.Get, TVControl.3D.Set, TVControl.3D.Subscribe, ExternalInputControl.Picker.Launch, ExternalInputControl.Picker.Close, ExternalInputControl.List, ExternalInputControl.Set, ToastControl.Show, ToastControl.Show.Clickable.App, ToastControl.Show.Clickable.App.Params, ToastControl.Show.Clickable.URL, PowerControl.Off, WebAppLauncher.Launch, WebAppLauncher.Launch.Params, WebAppLauncher.Message.Send, WebAppLauncher.Message.Receive, WebAppLauncher.Message.Send.JSON, WebAppLauncher.Message.Receive.JSON, WebAppLauncher.Connect, WebAppLauncher.Disconnect, WebAppLauncher.Join, WebAppLauncher.Close, WebAppLauncher.Pin, MediaControl.Play, MediaControl.Pause, MediaControl.Stop, MediaControl.Rewind, MediaControl.FastForward, MediaControl.Seek, MediaControl.Previous, MediaControl.Next, MediaControl.Duration, MediaControl.PlayState, MediaControl.PlayState.Subscribe, MediaControl.Position, MediaPlayer.Subtitle.WebVTT, PlaylistControl.JumpToTrack, PlaylistControl.Next, PlaylistControl.Previous, MediaPlayer.Loop]

2018-10-07 21:27:07.493 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Device removed: {"modelName":"LG Smart TV","lastConnected":1538936759,"lastKnownIPAddress":"192.168.0.111","modelNumber":"OLED65C7Y-T","id":"ccccxxxx-xxxx-xxxx-xxxx-xxxx40euuuu","services":{},"lastDetection":1538936759,"friendlyName":"[LG] webOS TV OLED65C7Y"}

2018-10-07 21:27:07.524 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Device disconnected: {"modelName":"LG Smart TV","lastConnected":1538936759,"lastKnownIPAddress":"192.168.0.111","modelNumber":"OLED65C7Y-T","id":"ccccxxxx-xxxx-xxxx-xxxx-xxxx40euuuu","services":{},"lastDetection":1538936759,"friendlyName":"[LG] webOS TV OLED65C7Y"}

2018-10-07 21:30:59.055 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=339, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.LGWebOSHandlerFactory, component.id=208} - org.openhab.binding.lgwebos

2018-10-07 21:30:59.061 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.config.discovery.DiscoveryService, org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery}={service.id=338, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=207} - org.openhab.binding.lgwebos

2018-10-07 21:30:59.067 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STOPPING - org.openhab.binding.lgwebos

2018-10-07 21:30:59.071 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STOPPED - org.openhab.binding.lgwebos

2018-10-07 21:32:52.221 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STARTING - org.openhab.binding.lgwebos

2018-10-07 21:32:52.224 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STARTED - org.openhab.binding.lgwebos

2018-10-07 21:32:52.311 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Config Parameters: {component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=216}

2018-10-07 21:32:52.321 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService, org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery}={service.id=342, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=216} - org.openhab.binding.lgwebos

2018-10-07 21:32:52.334 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=343, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.LGWebOSHandlerFactory, component.id=217} - org.openhab.binding.lgwebos

2018-10-07 21:41:52.599 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Capabilities updated: {"modelName":"LG Smart TV","lastConnected":1538937650,"lastKnownIPAddress":"192.168.0.111","modelNumber":"OLED65C7Y-T","id":"ccccxxxx-xxxx-xxxx-xxxx-xxxx40euuuu","services":{},"lastDetection":1538937649,"friendlyName":"[LG] webOS TV OLED65C7Y"} - added: [] - removed: [VolumeControl.Get, VolumeControl.Set, VolumeControl.UpDown, VolumeControl.Subscribe, VolumeControl.Mute.Get, VolumeControl.Mute.Set, VolumeControl.Mute.Subscribe, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, TextInputControl.Send, TextInputControl.Enter, TextInputControl.Delete, TextInputControl.Subscribe, MouseControl.Connect, MouseControl.Disconnect, MouseControl.Click, MouseControl.Move, MouseControl.Scroll, KeyControl.Up, KeyControl.Down, KeyControl.Left, KeyControl.Right, KeyControl.OK, KeyControl.Back, KeyControl.Home, KeyControl.KeyCode, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, Launcher.App, Launcher.App.Params, Launcher.App.Close, Launcher.App.List, Launcher.Browser, Launcher.Browser.Params, Launcher.Hulu, Launcher.Hulu.Params, Launcher.Netflix, Launcher.Netflix.Params, Launcher.YouTube, Launcher.YouTube.Params, Launcher.AppStore, Launcher.AppStore.Params, Launcher.AppState, Launcher.AppState.Subscribe, Launcher.RunningApp, Launcher.RunningApp.Subscribe, TVControl.Channel.Get, TVControl.Channel.Set, TVControl.Channel.Up, TVControl.Channel.Down, TVControl.Channel.List, TVControl.Channel.Subscribe, TVControl.Program.Get, TVControl.Program.List, TVControl.Program.Subscribe, TVControl.Program.List.Subscribe, TVControl.3D.Get, TVControl.3D.Set, TVControl.3D.Subscribe, ExternalInputControl.Picker.Launch, ExternalInputControl.Picker.Close, ExternalInputControl.List, ExternalInputControl.Set, ToastControl.Show, ToastControl.Show.Clickable.App, ToastControl.Show.Clickable.App.Params, ToastControl.Show.Clickable.URL, PowerControl.Off, WebAppLauncher.Launch, WebAppLauncher.Launch.Params, WebAppLauncher.Message.Send, WebAppLauncher.Message.Receive, WebAppLauncher.Message.Send.JSON, WebAppLauncher.Message.Receive.JSON, WebAppLauncher.Connect, WebAppLauncher.Disconnect, WebAppLauncher.Join, WebAppLauncher.Close, WebAppLauncher.Pin, MediaControl.Play, MediaControl.Pause, MediaControl.Stop, MediaControl.Rewind, MediaControl.FastForward, MediaControl.Seek, MediaControl.Previous, MediaControl.Next, MediaControl.Duration, MediaControl.PlayState, MediaControl.PlayState.Subscribe, MediaControl.Position, MediaPlayer.Subtitle.WebVTT, PlaylistControl.JumpToTrack, PlaylistControl.Next, PlaylistControl.Previous, MediaPlayer.Loop]

2018-10-07 21:41:52.602 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Device removed: {"modelName":"LG Smart TV","lastConnected":1538937650,"lastKnownIPAddress":"192.168.0.111","modelNumber":"OLED65C7Y-T","id":"ccccxxxx-xxxx-xxxx-xxxx-xxxx40euuuu","services":{},"lastDetection":1538937649,"friendlyName":"[LG] webOS TV OLED65C7Y"}

2018-10-07 21:41:52.616 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Device disconnected: {"modelName":"LG Smart TV","lastConnected":1538937650,"lastKnownIPAddress":"192.168.0.111","modelNumber":"OLED65C7Y-T","id":"ccccxxxx-xxxx-xxxx-xxxx-xxxx40euuuu","services":{},"lastDetection":1538937649,"friendlyName":"[LG] webOS TV OLED65C7Y"}

2018-10-07 21:52:24.283 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STARTING - org.openhab.binding.lgwebos

2018-10-07 21:52:24.285 [DEBUG] [org.openhab.binding.lgwebos         ] - BundleEvent STARTED - org.openhab.binding.lgwebos

2018-10-07 21:52:24.401 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Config Parameters: {component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=216}

2018-10-07 21:52:24.412 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService, org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery}={service.id=342, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.discovery.LGWebOSDiscovery, component.id=216} - org.openhab.binding.lgwebos

2018-10-07 21:52:24.429 [DEBUG] [org.openhab.binding.lgwebos         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=343, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.lgwebos.internal.LGWebOSHandlerFactory, component.id=217} - org.openhab.binding.lgwebos 

Thing is defined as:

Thing lgwebos:WebOSTV:tv0 [ deviceId="xxxxxx-xxxx-xxxxxxx-xxxxxx" ]

Thx for the help


(Sebastian Prehn) #474

Is the ID really

or did you modify the log. Also it does not match the deviceId in your things file.?

I also don’t understand why the binding is stopping and starting over.

Could you try to use paperui and simply add the tv. that would rule out one potential source of error.


(Eyal Cohen) #475

@sprehn

  1. I modify it …
  2. I will try today to remove configuration from files and use only PaperUI for LG. Lets see if it change something.
  3. If u want, u can send me test version if it will help u to identify the issue.

(Eyal Cohen) #476

@sprehn

Hi, what ever I try doesn’t seems to work. One thing that it is not clear for me is the order of things. I have add the tv thing via Paper UI but still it doesn’t work.

I can help to try to debug it which will probably help others who have same stability issue with the (excellent) binding. Just let me know what u need and I will get it.

Do u suggest to delete any folders that might have older information that can cause this issue?

Thx


(Sebastian Prehn) #477

Did you install the binding via the official repository (click install in paper ui, or via bindings entry in services/addons.cfg) and not via a Jar file in addons folder. Pls double check there is no jar file for this binding in there.

Other than that, you could again send me a log file.


(Eyal Cohen) #478

@sprehn

I installed it from the official repository, but i will double check it. Thx, will send u the logs later today.


(Andrey Belyaev) #479

Hi,

I’ve got it fixed. The rule below works fine and switches channels:

// this assumes you also have the wake on lan binding configured.
rule "Power on TV via Wake on LAN"
when
Item LG_TV0_Power received command ON
then
    sendCommand( LG_TV0_WOL, ON)
end

// for relative volume changes
rule "VolumeUpDown"
when Item LG_TV0_VolDummy received command
then
    switch receivedCommand{
        case 0: LG_TV0_Volume.sendCommand(DECREASE)
        case 1: LG_TV0_Volume.sendCommand(INCREASE)
    }
end

// for relative channel changes
rule "ChannelUpDown"

when Item LG_TV0_ChannelDummy received command
then
    var currentChannel = LG_TV0_ChannelNo.state as DecimalType
    switch receivedCommand{
        case 0: LG_TV0_ChannelNo.sendCommand(currentChannel - 1)
        case 1: LG_TV0_ChannelNo.sendCommand(currentChannel + 1)
    }
end

(Ihor Bat) #480

it works. Thank you!


(Alpoy) #481

I’m having some trouble with this binding lately…
The TV status is going back and forth from ON to OFF after a little while, without me doing or changing anything (TV is idle).
Don’t know when I started seeing this as this has worked fine before, but it could be after I upgraded from 2.3 to 2.4 or some automatic update on the TV.

(I’m running on 2.4 Build#1363)

Thing log:

2018-10-29 20:33:41.750 [hingStatusInfoChangedEvent] - 'lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022' changed from OFFLINE: TV is off to ONLINE: Device Ready
2018-10-29 20:33:41.976 [hingStatusInfoChangedEvent] - 'lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022' changed from ONLINE: Device Ready to ONLINE: Connected
2018-10-29 20:34:45.245 [hingStatusInfoChangedEvent] - 'lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022' changed from ONLINE: Connected to OFFLINE: TV is off
2018-10-29 20:46:23.314 [hingStatusInfoChangedEvent] - 'lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022' changed from OFFLINE: TV is off to ONLINE: Device Ready
2018-10-29 20:46:23.540 [hingStatusInfoChangedEvent] - 'lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022' changed from ONLINE: Device Ready to ONLINE: Connected
2018-10-29 20:47:25.274 [hingStatusInfoChangedEvent] - 'lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022' changed from ONLINE: Connected to OFFLINE: TV is off

Debug:

2018-10-29 20:33:37.748 [INFO ] [nhab.binding.wol.internal.WolBinding] - Wake-on-LAN packet sent [broadcastIp=192.168.1.255, macaddress=388c50ea3fcc]
2018-10-29 20:34:45.234 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Capabilities updated: {"modelName":"LG Smart TV","lastConnected":1540841621,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540841621,"friendlyName":"[LG] webOS TV OLED55B7V"} - added: [] - removed: [VolumeControl.Get, VolumeControl.Set, VolumeControl.UpDown, VolumeControl.Subscribe, VolumeControl.Mute.Get, VolumeControl.Mute.Set, VolumeControl.Mute.Subscribe, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, TextInputControl.Send, TextInputControl.Enter, TextInputControl.Delete, TextInputControl.Subscribe, MouseControl.Connect, MouseControl.Disconnect, MouseControl.Click, MouseControl.Move, MouseControl.Scroll, KeyControl.Up, KeyControl.Down, KeyControl.Left, KeyControl.Right, KeyControl.OK, KeyControl.Back, KeyControl.Home, KeyControl.KeyCode, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, Launcher.App, Launcher.App.Params, Launcher.App.Close, Launcher.App.List, Launcher.Browser, Launcher.Browser.Params, Launcher.Hulu, Launcher.Hulu.Params, Launcher.Netflix, Launcher.Netflix.Params, Launcher.YouTube, Launcher.YouTube.Params, Launcher.AppStore, Launcher.AppStore.Params, Launcher.AppState, Launcher.AppState.Subscribe, Launcher.RunningApp, Launcher.RunningApp.Subscribe, TVControl.Channel.Get, TVControl.Channel.Set, TVControl.Channel.Up, TVControl.Channel.Down, TVControl.Channel.List, TVControl.Channel.Subscribe, TVControl.Program.Get, TVControl.Program.List, TVControl.Program.Subscribe, TVControl.Program.List.Subscribe, TVControl.3D.Get, TVControl.3D.Set, TVControl.3D.Subscribe, ExternalInputControl.Picker.Launch, ExternalInputControl.Picker.Close, ExternalInputControl.List, ExternalInputControl.Set, ToastControl.Show, ToastControl.Show.Clickable.App, ToastControl.Show.Clickable.App.Params, ToastControl.Show.Clickable.URL, PowerControl.Off, WebAppLauncher.Launch, WebAppLauncher.Launch.Params, WebAppLauncher.Message.Send, WebAppLauncher.Message.Receive, WebAppLauncher.Message.Send.JSON, WebAppLauncher.Message.Receive.JSON, WebAppLauncher.Connect, WebAppLauncher.Disconnect, WebAppLauncher.Join, WebAppLauncher.Close, WebAppLauncher.Pin, MediaControl.Play, MediaControl.Pause, MediaControl.Stop, MediaControl.Rewind, MediaControl.FastForward, MediaControl.Seek, MediaControl.Previous, MediaControl.Next, MediaControl.Duration, MediaControl.PlayState, MediaControl.PlayState.Subscribe, MediaControl.Position, MediaPlayer.Subtitle.WebVTT, PlaylistControl.JumpToTrack, PlaylistControl.Next, PlaylistControl.Previous, MediaPlayer.Loop]
2018-10-29 20:34:45.234 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Device removed: {"modelName":"LG Smart TV","lastConnected":1540841621,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540841621,"friendlyName":"[LG] webOS TV OLED55B7V"}
2018-10-29 20:34:45.237 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Device disconnected: {"modelName":"LG Smart TV","lastConnected":1540841621,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540841621,"friendlyName":"[LG] webOS TV OLED55B7V"}
2018-10-29 20:34:45.238 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.LauncherApplication on IP: 192.168.1.41
2018-10-29 20:34:45.239 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.TVControlChannel on IP: 192.168.1.41
2018-10-29 20:34:45.240 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.VolumeControlMute on IP: 192.168.1.41
2018-10-29 20:34:45.241 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.TVControlChannelName on IP: 192.168.1.41
2018-10-29 20:34:45.254 [DEBUG] [lgwebos.internal.LauncherApplication] - 0 null connection lost
2018-10-29 20:34:45.255 [DEBUG] [gwebos.internal.TVControlChannelName] - 0 null connection lost
2018-10-29 20:34:45.255 [DEBUG] [g.lgwebos.internal.VolumeControlMute] - 0 null connection lost
2018-10-29 20:34:45.254 [DEBUG] [ng.lgwebos.internal.TVControlChannel] - error: 0 null connection lost
2018-10-29 20:46:23.540 [DEBUG] [lgwebos.internal.LauncherApplication] - Channel 'appLauncher' is subscribed for 'RunningApp' change updates from the tv.
2018-10-29 20:46:23.544 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Subscribed org.openhab.binding.lgwebos.internal.LauncherApplication on IP: 192.168.1.41
2018-10-29 20:46:23.546 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Subscribed org.openhab.binding.lgwebos.internal.TVControlChannel on IP: 192.168.1.41
2018-10-29 20:46:23.547 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Subscribed org.openhab.binding.lgwebos.internal.VolumeControlMute on IP: 192.168.1.41
2018-10-29 20:46:23.548 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Subscribed org.openhab.binding.lgwebos.internal.TVControlChannelName on IP: 192.168.1.41
2018-10-29 20:46:23.630 [DEBUG] [ng.lgwebos.internal.TVControlChannel] - error: 500 {"errorText":"internal error","returnValue":false,"errorCode":-1000} Application error
2018-10-29 20:46:23.631 [DEBUG] [gwebos.internal.TVControlChannelName] - 500 {"errorText":"internal error","returnValue":false,"errorCode":-1000} Application error
2018-10-29 20:47:25.262 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Device removed: {"modelName":"LG Smart TV","lastConnected":1540842383,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540842383,"friendlyName":"[LG] webOS TV OLED55B7V"}
2018-10-29 20:47:25.262 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Capabilities updated: {"modelName":"LG Smart TV","lastConnected":1540842383,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540842383,"friendlyName":"[LG] webOS TV OLED55B7V"} - added: [] - removed: [VolumeControl.Get, VolumeControl.Set, VolumeControl.UpDown, VolumeControl.Subscribe, VolumeControl.Mute.Get, VolumeControl.Mute.Set, VolumeControl.Mute.Subscribe, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, TextInputControl.Send, TextInputControl.Enter, TextInputControl.Delete, TextInputControl.Subscribe, MouseControl.Connect, MouseControl.Disconnect, MouseControl.Click, MouseControl.Move, MouseControl.Scroll, KeyControl.Up, KeyControl.Down, KeyControl.Left, KeyControl.Right, KeyControl.OK, KeyControl.Back, KeyControl.Home, KeyControl.KeyCode, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, Launcher.App, Launcher.App.Params, Launcher.App.Close, Launcher.App.List, Launcher.Browser, Launcher.Browser.Params, Launcher.Hulu, Launcher.Hulu.Params, Launcher.Netflix, Launcher.Netflix.Params, Launcher.YouTube, Launcher.YouTube.Params, Launcher.AppStore, Launcher.AppStore.Params, Launcher.AppState, Launcher.AppState.Subscribe, Launcher.RunningApp, Launcher.RunningApp.Subscribe, TVControl.Channel.Get, TVControl.Channel.Set, TVControl.Channel.Up, TVControl.Channel.Down, TVControl.Channel.List, TVControl.Channel.Subscribe, TVControl.Program.Get, TVControl.Program.List, TVControl.Program.Subscribe, TVControl.Program.List.Subscribe, TVControl.3D.Get, TVControl.3D.Set, TVControl.3D.Subscribe, ExternalInputControl.Picker.Launch, ExternalInputControl.Picker.Close, ExternalInputControl.List, ExternalInputControl.Set, ToastControl.Show, ToastControl.Show.Clickable.App, ToastControl.Show.Clickable.App.Params, ToastControl.Show.Clickable.URL, PowerControl.Off, WebAppLauncher.Launch, WebAppLauncher.Launch.Params, WebAppLauncher.Message.Send, WebAppLauncher.Message.Receive, WebAppLauncher.Message.Send.JSON, WebAppLauncher.Message.Receive.JSON, WebAppLauncher.Connect, WebAppLauncher.Disconnect, WebAppLauncher.Join, WebAppLauncher.Close, WebAppLauncher.Pin, MediaControl.Play, MediaControl.Pause, MediaControl.Stop, MediaControl.Rewind, MediaControl.FastForward, MediaControl.Seek, MediaControl.Previous, MediaControl.Next, MediaControl.Duration, MediaControl.PlayState, MediaControl.PlayState.Subscribe, MediaControl.Position, MediaPlayer.Subtitle.WebVTT, PlaylistControl.JumpToTrack, PlaylistControl.Next, PlaylistControl.Previous, MediaPlayer.Loop]
2018-10-29 20:47:25.267 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.LauncherApplication on IP: 192.168.1.41
2018-10-29 20:47:25.262 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Device disconnected: {"modelName":"LG Smart TV","lastConnected":1540842383,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540842383,"friendlyName":"[LG] webOS TV OLED55B7V"}
2018-10-29 20:47:25.265 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Device disconnected: {"modelName":"LG Smart TV","lastConnected":1540842383,"lastKnownIPAddress":"192.168.1.41","modelNumber":"OLED55B7V-Z","id":"a0a07629-dd4f-4157-bf34-585a2261d022","services":{},"lastDetection":1540842383,"friendlyName":"[LG] webOS TV OLED55B7V"}
2018-10-29 20:47:25.270 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.TVControlChannel on IP: 192.168.1.41
2018-10-29 20:47:25.271 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.VolumeControlMute on IP: 192.168.1.41
2018-10-29 20:47:25.272 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.TVControlChannelName on IP: 192.168.1.41
2018-10-29 20:47:25.283 [DEBUG] [lgwebos.internal.LauncherApplication] - 0 null connection lost
2018-10-29 20:47:25.283 [DEBUG] [ng.lgwebos.internal.TVControlChannel] - error: 0 null connection lost
2018-10-29 20:47:25.285 [DEBUG] [g.lgwebos.internal.VolumeControlMute] - 0 null connection lost
2018-10-29 20:47:25.286 [DEBUG] [gwebos.internal.TVControlChannelName] - 0 null connection lost

NB: The debug and thing log is from the same incident.

Item:

Switch LGTV_Kj_TvStue_Vegg_Status       "TV"    <television>  { channel="lgwebos:WebOSTV:a0a07629-dd4f-4157-bf34-585a2261d022:power",wol="192.168.1.255#38:8C:50:EA:3F:CC" }

Anyone else seen this? Any help appreciated :worried:


(Eyal Cohen) #482

@sprehn

If u can find something here that can help to stabilize my LG connection it will be great.

Question: Does WOL works over Wifi? Wired? ANy of them?

Thx

2018-10-30 09:34:37.857 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - handleCommand(lgwebos:WebOSTV:c580ac91-59aa-4a7b-bae9-159ededd84ec:power,OFF) is called

2018-10-30 09:34:38.007 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Capabilities updated: {"modelName":"LG Smart TV","lastConnected":1540884807,"lastKnownIPAddress":"192.168.0.123","modelNumber":"OLED65C7Y-T","id":"c580ac91-59aa-4a7b-bae9-159ededd84ec","services":{},"lastDetection":1540884806,"friendlyName":"[LG] webOS TV OLED65C7Y"} - added: [] - removed: [VolumeControl.Get, VolumeControl.Set, VolumeControl.UpDown, VolumeControl.Subscribe, VolumeControl.Mute.Get, VolumeControl.Mute.Set, VolumeControl.Mute.Subscribe, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, TextInputControl.Send, TextInputControl.Enter, TextInputControl.Delete, TextInputControl.Subscribe, MouseControl.Connect, MouseControl.Disconnect, MouseControl.Click, MouseControl.Move, MouseControl.Scroll, KeyControl.Up, KeyControl.Down, KeyControl.Left, KeyControl.Right, KeyControl.OK, KeyControl.Back, KeyControl.Home, KeyControl.KeyCode, MediaPlayer.Display.Image, MediaPlayer.Play.Video, MediaPlayer.Play.Audio, MediaPlayer.Close, MediaPlayer.MetaData.Title, MediaPlayer.MetaData.Description, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.MimeType, MediaPlayer.MediaInfo.Get, MediaPlayer.MediaInfo.Subscribe, Launcher.App, Launcher.App.Params, Launcher.App.Close, Launcher.App.List, Launcher.Browser, Launcher.Browser.Params, Launcher.Hulu, Launcher.Hulu.Params, Launcher.Netflix, Launcher.Netflix.Params, Launcher.YouTube, Launcher.YouTube.Params, Launcher.AppStore, Launcher.AppStore.Params, Launcher.AppState, Launcher.AppState.Subscribe, Launcher.RunningApp, Launcher.RunningApp.Subscribe, TVControl.Channel.Get, TVControl.Channel.Set, TVControl.Channel.Up, TVControl.Channel.Down, TVControl.Channel.List, TVControl.Channel.Subscribe, TVControl.Program.Get, TVControl.Program.List, TVControl.Program.Subscribe, TVControl.Program.List.Subscribe, TVControl.3D.Get, TVControl.3D.Set, TVControl.3D.Subscribe, ExternalInputControl.Picker.Launch, ExternalInputControl.Picker.Close, ExternalInputControl.List, ExternalInputControl.Set, ToastControl.Show, ToastControl.Show.Clickable.App, ToastControl.Show.Clickable.App.Params, ToastControl.Show.Clickable.URL, PowerControl.Off, WebAppLauncher.Launch, WebAppLauncher.Launch.Params, WebAppLauncher.Message.Send, WebAppLauncher.Message.Receive, WebAppLauncher.Message.Send.JSON, WebAppLauncher.Message.Receive.JSON, WebAppLauncher.Connect, WebAppLauncher.Disconnect, WebAppLauncher.Join, WebAppLauncher.Close, WebAppLauncher.Pin, MediaControl.Play, MediaControl.Pause, MediaControl.Stop, MediaControl.Rewind, MediaControl.FastForward, MediaControl.Seek, MediaControl.Previous, MediaControl.Next, MediaControl.Duration, MediaControl.PlayState, MediaControl.PlayState.Subscribe, MediaControl.Position, MediaPlayer.Subtitle.WebVTT, PlaylistControl.JumpToTrack, PlaylistControl.Next, PlaylistControl.Previous, MediaPlayer.Loop]

2018-10-30 09:34:38.007 [DEBUG] [.internal.discovery.LGWebOSDiscovery] - Device removed: {"modelName":"LG Smart TV","lastConnected":1540884807,"lastKnownIPAddress":"192.168.0.123","modelNumber":"OLED65C7Y-T","id":"c580ac91-59aa-4a7b-bae9-159ededd84ec","services":{},"lastDetection":1540884806,"friendlyName":"[LG] webOS TV OLED65C7Y"}

2018-10-30 09:34:38.011 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.VolumeControlVolume on IP: 192.168.0.123

2018-10-30 09:34:38.017 [DEBUG] [nding.lgwebos.handler.LGWebOSHandler] - Device disconnected: {"modelName":"LG Smart TV","lastConnected":1540884807,"lastKnownIPAddress":"192.168.0.123","modelNumber":"OLED65C7Y-T","id":"c580ac91-59aa-4a7b-bae9-159ededd84ec","services":{},"lastDetection":1540884806,"friendlyName":"[LG] webOS TV OLED65C7Y"}

2018-10-30 09:34:38.016 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception

java.lang.NullPointerException: null

	at org.openhab.binding.lgwebos.internal.BaseChannelHandler.refreshSubscription(BaseChannelHandler.java:59) ~[?:?]

	at org.openhab.binding.lgwebos.handler.LGWebOSHandler.lambda$4(LGWebOSHandler.java:210) ~[?:?]

	at java.util.HashMap.forEach(HashMap.java:1289) [?:?]

	at java.util.Collections$UnmodifiableMap.forEach(Collections.java:1505) [?:?]

	at org.openhab.binding.lgwebos.handler.LGWebOSHandler.refreshAllChannelSubscriptions(LGWebOSHandler.java:210) [220:org.openhab.binding.lgwebos:2.3.0]

	at org.openhab.binding.lgwebos.handler.LGWebOSHandler.onCapabilityUpdated(LGWebOSHandler.java:156) [220:org.openhab.binding.lgwebos:2.3.0]

	at com.connectsdk.device.ConnectableDevice$2.run(ConnectableDevice.java:217) [220:org.openhab.binding.lgwebos:2.3.0]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-10-30 09:34:38.035 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.LauncherApplication on IP: 192.168.0.123

2018-10-30 09:34:38.038 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.VolumeControlMute on IP: 192.168.0.123

2018-10-30 09:34:38.041 [DEBUG] [.lgwebos.internal.BaseChannelHandler] - Unsubscribed org.openhab.binding.lgwebos.internal.TVControlChannelName on IP: 192.168.0.123

(Sebastian Prehn) #483

Thank you, it is probably the best we can do right now. Will update the documentation with the next pull request.


(Sebastian Prehn) #484

Hi,

I may have found the problem. Could you please try with this version. It will not remove and add the thing when oh and smart tv negotiate capabilities. Just built this, so it is not thoroughly tested at all.

Just uninstall your current binding in paper ui and drop this one into the addons folder.

lgwebos-2.4.0-snapshot-201810302216


(Sebastian Prehn) #485

I think you need LAN cable for WOL to work.