[PORT] LG Smart TV Discovery 2012+

Hi @cybrmage
I am trying to get my TV to pair with your updated App/Driver.
The Tv is detected and I get to the " WebOS TVs can not be paired from the application. The driver will attempt to pair with the TV when it is initialized. Please authorize the pairing from the TV using the TV remote control. Please click Done." stage.

At that point, I do not get a request on TV screen for a Pairing Key and nothing happens.
I click on done and there is a new LG Smart TV in Devices with a DNI. when I click on the device, I get the below.

State Variables

  • sequenceNumber : 1
  • reconnectPending : false
  • pairFailCount : 0
  • paired : false
  • Power : true

This doesn't change after time.
It is 2016 WEBOS TV
Logs below Tnx

dev:2572019-07-23 19:09:12.633 warnConnection refused (Connection refused)

dev:2572019-07-23 19:09:12.620 warnhub action: POST /roap/api/auth HTTP/1.1 Accept: / User-Agent: Linux UPnP/1.0 Hubitat HOST: 192.168.100.80:8080 Content-Type: application/atom+xml Content-Length: 90 AuthReqnull

dev:2572019-07-23 19:09:12.614 debugExecuting 'refresh'

dev:382019-07-23 19:08:47.288 infoXiaomi Original Motion Sensor: Detected motion

app:1312019-07-23 19:07:37.471 errorjava.lang.NullPointerException: Cannot get property 'id' on null object on line 171 (updated)

app:1312019-07-23 19:07:37.421 debugDevice with id C0A86450_3CCD93712C3E_WEBOS_0BB8 already created - Updating

app:1312019-07-23 19:07:37.411 debugLG Smart TV Discovery - addDevice - ip: 192.168.100.80 mac: 3CCD93712C3E type: WEBOS pairKey: null dni: C0A86450_3CCD93712C3E_WEBOS_0BB8

app:1312019-07-23 19:07:37.395 debugUpdated with settings: [selectedTv:3CCD93712C3E!C0A86450!1!WEBOS]

app:1312019-07-23 19:06:49.508 debugDiscovered List: device=3CCD93712C3E!C0A86450!1!WEBOS