[PORT] LG Smart TV Discovery 2012+

Sorry, I meant sending "" for channelName isn't of "off"

It's actually more a problem for "on" handling rather than "off" handling. Right now, it's assuming it only needs to turn on when a websocket connection is restored. It also needs to handle cases when the TV was turned off and then back on before the websocket failed.

Ah, that was an intentional change. channelName is "annoying" since there isn't one when the TV is off, so it shouldn't have a value. You can't use null since it doesn't propagate well, or isn't useable by RM4 or something when I tested it. But I don't like using "off" since that's a valid string, while it's unlikely to have a channel called "off" it's also possible. I'm kind of loathed to use a sentinel value and depend on it. (though "" isn't much better)

What problems is empty channelName causing? If you're using it for on/off detection shouldn't you use power on/off?

Hopefully as I wait for NY tonight I can spend some time fixing up the socket/power reporting. Maybe that'll keep me awake. :slight_smile:

Just a reminder :slight_smile:

See above. I'm not using it for on/off detection.

Is it normal for the LG WebOS TV Discovery app to be spamming my hub this much. It's sending almost 200 debug messages in the space of 5 seconds. I've begun experiencing slowdowns again because of this:

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:08.288 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:08.270 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:08.268 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:08.251 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:08.248 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:08.234 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1d22b10

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.812 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.780 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.777 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.774 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.768 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.739 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.743 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.708 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@153754d

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.736 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.708 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.706 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.678 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@a3ccad

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.592 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.578 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.577 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.549 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.552 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.540 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.532 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.546 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.543 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.511 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@11b0706

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.537 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.501 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.522 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.500 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.518 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.497 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.498 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.478 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.495 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.490 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@505df8

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.475 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1753413

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.454 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.420 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:07.416 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@523969

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.387 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.366 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.363 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.344 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.341 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.338 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@186350b

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.334 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.313 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.312 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.310 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.283 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.307 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.288 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.284 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@66d114

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.280 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.253 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.251 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.247 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@e03636

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.238 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.218 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.215 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.163 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.160 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:06.156 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@d6d85d

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.997 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.972 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.969 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.966 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.963 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.948 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@96c8cb

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.876 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.871 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.868 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.865 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.862 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.859 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@19c1e93

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.337 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.331 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.327 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.324 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.281 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.312 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.310 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.290 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.288 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.276 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1afd4f4

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.278 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.275 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@85f890

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.262 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.233 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.244 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.240 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.236 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.235 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.233 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.230 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.231 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.230 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.210 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1753cdd

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.201 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.208 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.197 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.198 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.195 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.172 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1ef6e60

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:05.170 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@7dd64d

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:04.620 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:04.616 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:04.613 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:04.609 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:04.607 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:04.592 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@36a8fe

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.854 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.825 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.822 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.819 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.793 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.789 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@108f764

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.764 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.741 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.758 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.730 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.739 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.735 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.733 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.727 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.712 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.710 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.706 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@14270a5

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.702 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@18c0b54

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.444 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.463 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.434 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.440 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.414 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.431 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.408 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.411 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.397 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.405 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.402 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@ef001

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.393 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@15959e8

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.306 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.286 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.283 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.264 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.261 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:03.228 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1fb1877

[app:321](http://192.168.x.xxx/logs/past#app321)2019-12-31 07:25:02.868 pm [info](http://192.168.x.xxx/installedapp/configure/321)Subscribing to events for Iron

[app:321](http://192.168.x.xxx/logs/past#app321)2019-12-31 07:25:02.858 pm [info](http://192.168.x.xxx/installedapp/configure/321)Verifying that IP for Iron is set to 192.168.1.239:49153

[app:321](http://192.168.x.xxx/logs/past#app321)2019-12-31 07:25:02.834 pm [info](http://192.168.x.xxx/installedapp/configure/321)Subscribing to events for Christmas Tree

[app:321](http://192.168.x.xxx/logs/past#app321)2019-12-31 07:25:02.826 pm [info](http://192.168.x.xxx/installedapp/configure/321)Verifying that IP for Christmas Tree is set to 192.168.1.202:49153

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.741 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.720 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev2, ip:C0A801EF, ssdpPath:/setup.xml, ssdpUSN:uuid:Socket-1_0-221623K010287B::urn:Belkin:device:controllee:1, ssdpTerm:urn:Belkin:device:controllee:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.734 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.730 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:urn:schemas-upnp-org:device:basic:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.725 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:schemas-upnp-org:device:basic:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.723 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.718 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev3, ip:C0A801CA, ssdpPath:/setup.xml, ssdpUSN:uuid:Socket-1_0-221609K010045B::urn:Belkin:device:controllee:1, ssdpTerm:urn:Belkin:device:controllee:1]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.718 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:Belkin:device:controllee:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.715 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: urn:Belkin:device:controllee:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.714 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:Socket-1_0-221623K010287B::urn:Belkin:device:controllee:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.700 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:Socket-1_0-221609K010045B::urn:Belkin:device:controllee:1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.704 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /setup.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.711 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.708 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.705 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@19237db

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.701 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@1502dea

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.698 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /setup.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.694 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@98725c

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.617 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.612 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-001788414b4a]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.610 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.607 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.604 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.603 pm [debug](http://192.168.x.xxx/installedapp/configure/323)hub: 1

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.598 pm [debug](http://192.168.x.xxx/installedapp/configure/323)upnp: [mac:dev1, ip:C0A801B5, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice, ssdpTerm:upnp:rootdevice]

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.595 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpTerm: upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.593 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@11e065a

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.592 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpUSN: uuid:2f402f80-da50-11e1-9b23-001788414b4a::upnp:rootdevice

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.589 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Found ssdpPath: /description.xml

[app:323](http://192.168.x.xxx/logs/past#app323)2019-12-31 07:25:02.586 pm [debug](http://192.168.x.xxx/installedapp/configure/323)Device Location Event: com.hubitat.hub.domain.Event@19dd04d

Oh bugger, it's always fun when someone quotes back something you forgot you said. It's also like when you google a problem and find yourself as the first hit. :smiley:

Ok, on it, this is easy enough to fix, and sentinel values it is!

@yototogblo

Thoughts:

  1. I haven't looked into the discovery app at all, so I'm not sure what's going on over there at all.
  2. Worst case: You don't need the discovery app, so you can remove it. You can add the TV as a "virtual device" and then set the IP address by hand and it'll start working once it finds the TV being on.
  3. This looks like upnp spam. Some device is perhaps being noisy and the hub is just reporting all the upnp broadcast traffic it's seeing. upnp == universal plug & pray. I don't know all the details, but for discovery I believe devices broadcast enough info that others can look up what they are. This is how the app discovers the TV.
  4. Presumably once discovery is done the app doesn't need to keep subscribing to UPNP events. Not sure if the app has enough info to actually know this though. But the app flow could be changed to allow for this by using a page just for discovery and a timeout.

Most of this is conjecture though. Once I'm happy with the driver I'll have to start digging into the app side.

Updated the code to account for on/off web socket sync issues, merged the importURL PR, and channelName and friends go to [off] Careful with channelDesc it still needs to be fixed, and I'm not sure what to do with channelNumber. Meh.

Thanks. I switched to a virtual device and works fine so far.

Previously, had tried removing the app after pairing the TV and it broke at some point. I'm guessing that's because the device was created by the app and so, once the app was removed, the device broke. So hopefully, that shouldn't affect a virtual device.

Happy New Year!

Happy New Year. Tried HDMI switching using friendly names with your new drivers and it works great now! Thank you.

Also, just for fun, thought folks might appreciate seeing a dashboard I created on top this great device handler. It's not as aesthetically refined as I'd like, but it's a decent v1.0. Each tile runs an app that fires the appropriate command to the WebOS device. Works like a charm. Latency is minimal. The out-of-place looking tiles along the left side are virtual switches that indicates which TV(s) to control, as we have 4 LGs around the house.

image

That's awesome! I really like the dashboard and it's what my goal of updating the driver is. Along with I being able to say "Alexa, turn on amazon prime" and voila, lights are right, TV is on and running the right app, etc. Or "Alexa, turn on Andrew's Netflix" and it's on my screen not my partners and her weird shows. :wink:

1 Like

You and me both. And I imagine a bunch of others as well. If you want help with testing iterations of the driver, don't hesitate to call on me.

noob question: can this be done from rule machine? I see no way to access a child device from RM.

You sure can. Don't think of it as a child device, it's just a device you need to select, and issue custom commands.

Except, this is where the wrinkles comes up, but it's an easy fix. You do this in RM4 by:

  1. Select Custom command (it's somewhere in the list)
  2. Select a capability to filter on (here's the rub)
  3. Select the device you
  4. Select the custom command that device has. RM4 introspects the device and lists all it's custom capabilities.

The problem is you can't do #2. I didn't give the Mouse Driver any capabilities. If you add this line to the definition:

		capability "Switch"

Before the commands, you can then select switches in step 2 and it'll be listed as a switch. Ok that's a poor capability, but it works for now.

Okay, major duh moment for me. I couldn't figure out why the mouse devices weren't showing up in RM4. Your explanation cleared it up for me, thanks. You want me to send you the modified driver code?

Thanks, but I'll give it some capability when I edit it next. Need to find one that better than switch since it should implement that capability to.

1 Like

The first post really should be updated with a link to the updated code that actually works !

Another good bit of advise is to download the LG TV Plus App for your phone and make sure it connects to the TV before you drive yourself crazy with the hub not connecting.

I was confused with how the ON/OFF switch was set, I was able to verify this quickly with my phone then I went deeper into this thread and found the updated code.

This is working great, even have Rule machine sending my tv door alerts

Thanks for all the help

1 Like

Going to try and connect Hubitat to my LG OLED C7 tomorrow. Will this work if TV is connected only on WIFI?

YES.

One of my LGs is in a place where I can't get wired ethernet. It works fine with wifi.

Sorry, a bit confused, Need app (which app) ? I have the driver set up as a virtual device, and no connection. I'm new to Hubitat, and trying to figure out exact instructions thru all these threads is daunting.

Thanks for the quick response. Much appreciated!

Try these.