[ST Edge] LAN Device Monitor

settings/ network and internet/ advanced network settings/advanced network settings/private networks

1 Like

@TAustin

Just to report that now is working perfectly fine. Maybe when you fixed the space after “:”, my problem became fixed.
I didn’t change anything on my end, and you python script detected my NAS device after being powered on.

OK great. Thanks for letting me know.

@TAustin, I installed your driver 1.3 today and it perfectly displays the status of the LANDevice (TV) when it is on and off, thanks for this. However, when I try to mirror my laptop to the TV, the LAN Device shows as off though the TV is playing the content from my laptop so any advice on how to keep the LAN Device as ‘On’ would be highly appreciated.

I don’t know that there’s anything I can do to help you in this particular situation. The device (your TV) reports whether it is online or offline via UPnP. It sounds like it may be pausing its UPnP processing during mirroring.

That said, if you want to investigate further to confirm that assumption, you can run driver logs with the SmartThings CLI and we can see what is happening. But I suspect it is as simple as the TV stops responding in this scenario.

1 Like

@TAustin, Thanks for your quick response and you are right, it stops the UPNP for the TV during screen mirroring. I figured out another efficient way to do this and it is working perfectly.

Yesterday, I triggered my routines based on TV On and time range on so they all worked fine. I have set up another LAN Monitor device (Laptop) and when the laptop is mirrored to the TV, the TV goes to off but the laptop is On so I have simply added an ‘OR’ trigger in my routines ‘TV is On or Laptop is On’ to fire them, simple as that.

Even, If I am genuinely not using the TV but just the Laptop in those time range, I still want the routines to fire so all good now.

Once again, excellent work on this driver.

2 Likes

@TAustin, Coming back to you again. I have been observing most of the day today that the TV LAN device is going to off and on periodically though the TV has been on most of the day. Please can you advice what could be the issue. The other LAN Monitor device (Laptop) is working fine with no issues.

Best thing to do is try to capture the driver activity in a log using the CLI. That way we can see what may be happening.

1 Like

@TAustin, Is this what you are looking for? It happened when I was watching Netflix.

Time Device Label Device Name Location Component Component Label Capability Attribute Value
2023-10-08T18:23:17.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch Off
2023-10-08T18:23:17.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-08T18:23:17.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state -unknown-
2023-10-08T18:23:49.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch On
2023-10-08T18:24:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpaddr addr 192.168.1.45:2869
2023-10-08T18:24:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpuuid uuid 4368a52c-63c2-4265-81ee-b48af9530ccf
2023-10-08T18:24:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpmodel model Windows Media Player Sharing
2023-10-08T18:24:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpname name SUBRAMS: mailsubbu@gmail.com:
2023-10-08T18:24:09.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-08T18:24:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-08T18:25:32.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-08T18:25:32.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-08T18:27:27.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch Off
2023-10-08T18:27:27.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state -unknown-
2023-10-08T18:27:29.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch On
2023-10-08T19:23:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch Off
2023-10-08T19:23:10.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch On
2023-10-08T19:57:18.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch Off
2023-10-08T19:57:37.000+00:00 TV landevmon.v5 Home main main partyvoice23922.moncontrol3 monSwitch On
2023-10-08T19:58:06.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpaddr addr 192.168.1.46:7678
2023-10-08T19:58:06.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpuuid uuid 8841295f-b27f-471d-a50e-6329a5868540
2023-10-08T19:58:06.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpmodel model UE65TU7020KXXU
2023-10-08T19:58:06.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpname name [TV] Samsung 7 Series (65)
2023-10-08T19:58:06.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-08T19:58:06.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-08T21:29:18.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-08T21:29:19.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-08T23:10:09.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-08T23:10:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-08T23:11:42.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-08T23:11:42.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T06:58:38.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T06:58:38.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T06:58:59.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T06:58:59.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T07:02:24.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T07:02:24.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T08:57:10.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T08:57:10.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T10:26:31.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T10:26:31.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T10:26:58.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T10:26:58.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T11:00:01.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T11:00:01.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T11:59:37.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T11:59:37.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T13:31:48.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T13:31:48.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T13:32:07.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T13:32:07.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T16:43:56.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T16:43:56.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T16:44:23.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T16:44:23.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T16:45:57.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T16:45:57.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T16:47:50.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T16:47:50.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T18:03:59.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T18:03:59.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T18:05:03.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T18:05:03.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T18:52:56.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T18:52:56.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T18:55:55.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T18:55:55.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:04:56.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:04:57.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:06:07.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:06:07.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:16:57.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:16:57.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:18:01.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:18:01.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:28:57.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:28:57.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:32:49.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:32:49.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:33:01.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:33:01.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:34:11.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:34:11.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:40:57.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:40:57.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:44:03.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:44:03.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:44:24.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:44:24.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:48:18.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:48:18.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:48:39.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:48:39.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:58:00.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:58:00.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T19:58:10.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T19:58:10.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T19:59:22.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T19:59:22.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:04:58.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:04:58.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T20:06:00.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T20:06:00.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:16:58.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:16:58.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T20:18:55.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:18:56.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T20:28:58.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T20:28:59.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:30:09.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T20:30:09.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:40:58.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:40:58.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T20:42:44.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T20:42:44.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:52:58.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T20:52:59.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:54:08.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T20:54:08.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:54:19.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:54:19.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T20:55:30.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T20:55:30.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T20:55:40.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T20:55:40.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:07:24.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:07:24.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T21:07:35.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T21:07:35.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:08:46.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:08:46.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T21:16:59.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T21:16:59.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:18:07.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:18:07.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T21:18:28.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T21:18:28.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:22:12.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:22:12.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T21:22:33.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T21:22:33.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:23:44.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:23:44.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T21:28:59.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T21:28:59.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:29:52.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-09T21:29:52.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:29:52.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-09T21:29:53.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-09T21:31:23.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-09T21:31:23.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T06:50:05.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T06:50:05.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-10T07:11:27.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-10T07:11:27.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T07:13:55.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T07:13:55.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-10T07:20:08.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-10T07:20:08.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T07:32:37.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T07:32:37.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-10T07:50:56.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-10T07:50:56.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T08:00:10.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T08:00:10.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-10T08:10:40.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-10T08:10:40.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T09:33:14.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T09:33:14.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-10T09:33:25.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T09:33:25.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On
2023-10-10T09:33:25.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-10T09:33:25.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T09:36:45.000+00:00 TV landevmon.v5 Home main main switch switch off
2023-10-10T09:36:45.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is Off
2023-10-10T09:45:26.000+00:00 TV landevmon.v5 Home main main switch switch on
2023-10-10T09:45:26.000+00:00 TV landevmon.v5 Home main main partyvoice23922.upnpstate state LAN Device is On

What I was referring to was using the SmartThings CLI tool to get driver logs.

You need to download and install it on a computer on your LAN from here (Windows link) and run it in a command prompt window. The command to start logging is:

smartthings edge:drivers:logcat

Thanks for your help so far but I will leave this for now as I have purchased a Wifi plug so using that to monitor TV on/off.

1 Like

hi quick question the lg tv webos lan driver isnt working and i cant re add it i was wondering if i add it using the lan device monitor driver then change the driver to the lg tv driver would it connect ? or am i clutching at straws.
thanks
martin

No that is highly unlikely to work!

You don’t know why it stopped working? Who developed it? Do you have a link to the driver code on GitHub?

1 Like

no unless smartthings updated me hub or something,
the developer is fison67.i think ive tried messaging them over and over again with no luck they havent been on the forum for 473 days .
driver - [ST Edge] LG WebOS TV
github -fison67 (fison67) / Repositories · GitHub

if i use lan cevice monitor i get not sure if that helps.


any help would be great
thanks
martin

What exactly are you needing to do with the TV from SmartThings?

turn it on/off /change input /toast messages/ mute/volume/

Unfortunately the driver source code is not on his GitHub repository.

I’ll have to take a look at the webOS API and see what is involved.

ive just tried re adding it again and it has apeared (spooky) but does not apear to be working.


i ran a logcat and got this,

? Select a driver. 10
2023-10-31T17:48:24.601754414+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:24.605315872+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:24.608603039+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:25.611744705+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:25.615363455+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:25.641305164+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:25.642949039+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:29.622460746+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:29.625997038+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:29.630675913+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:30.659909412+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:30.661830787+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:30.703789162+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:30.711926996+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:34.613397370+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:34.638251703+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:34.641833786+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:35.621859578+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:35.625357411+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:35.661319703+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:35.661769828+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:39.628607202+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:39.632052410+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:39.648931910+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:40.655301952+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:40.656279077+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:40.695022618+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:40.695528077+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:41.385888618+00:00 TRACE LG.TV  Received event with handler capability
2023-10-31T17:48:41.386453951+00:00 INFO LG.TV  <Device: 91e79f2f-5552-43e5-85e2-33db2226858a (LG TV WebOS)> received command: {"component":"main","args":{},"positional_args":{},"capability":"switch","command":"off"}
2023-10-31T17:48:41.387519951+00:00 TRACE LG.TV  Found CapabilityCommandDispatcher handler in LG-TV
2023-10-31T17:48:41.388197243+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:44.628729076+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:44.633703201+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:44.634173117+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:45.647004075+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:45.647668075+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:45.747418909+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:45.749174742+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:49.638768908+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:49.642515575+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:49.645648783+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:50.653451866+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:50.654352616+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:50.679054283+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:50.679499449+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:54.638591865+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:54.642363115+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:54.645414615+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:55.644699990+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:48:55.648419948+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:48:55.738587615+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:48:55.739047531+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:59.643383447+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:48:59.655289572+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:48:59.658562447+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:00.696292280+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:49:00.701634322+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:49:00.751264905+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:49:00.751710322+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:04.651425238+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:49:04.654888029+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:04.658112154+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:05.676522404+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:49:05.678444946+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:49:05.720522529+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:49:05.722154654+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:09.747152695+00:00 INFO LG.TV  ==== RECONNECT ====
2023-10-31T17:49:09.750621278+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:09.753692111+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
2023-10-31T17:49:10.756972069+00:00 INFO LG.TV  Close socket 192.168.0.112:3000
2023-10-31T17:49:10.757557236+00:00 INFO LG.TV  ===== INIT WEBSOCKET =====192.168.0.112:3000
2023-10-31T17:49:10.800030569+00:00 INFO LG.TV  WS_CONNECT      nil     closed
2023-10-31T17:49:10.806844861+00:00 DEBUG LG.TV  LG TV WebOS device thread event handled
listening for logs... done

any help would be great and much apreciated.
thanks 
martin

I read somewhere that a recent firmware update to the webOS stuff may have disabled the websockets interface, so if that’s true, then that would break any attempt to connect. It looks like from your log that something similar is happening - it’s unable to connect through the web sockets connection to the TV.

ok thanks for having a look
martin