TV LG connecting problem: DeviceId changes everytime

Hi!
I have a lot of problems connecting two LG TVs with OpenHab 2.4.0.

One has WebOS and one not (is older), so i installed two bindings:

  • LG webOS Binding (Author: Sebastian Prehn) aka binding-lgwebos - 2.4.0
  • LGTV Binding (author: Martin Fluch) aka binding-lgtv1 - 1.13.0

Please help me with the first one with WebOS, (model: 28MT49S-PZS)

My .things file is:
/-----------------/
Thing lgwebos:WebOSTV:lgtv24p “TVCamera” @ “TV” [ deviceId=“426298ea-e92c-b84e-b891-5954584a12f2” ]
/-----------------/

My .items file is:
/-----------------/
Switch lgtv24p_Power “TV LG 24p Power” (gCameraMatr) { autoupdate=“false”, channel=“lgwebos:WebOSTV:lgtv24p:power” }
Switch lgtv24p_Mute “TV LG 24p Mute” (gCameraMatr) { channel=“lgwebos:WebOSTV:lgtv24p:mute”}

/-----------------/
Is there something wrong??

From logs, i discovered that the deviceid changes each time i power on the TV.
Is it possible ?

/---------/ Autodiscovery log
[INFO ] [overy.BusGatewayDiscoveryParticipant] - ================================================
[INFO ] [overy.BusGatewayDiscoveryParticipant] - ==OWN:UPnP== DISCOVERED DEVICE: (RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:c69368c9-5138-915e-7cf8-586cc07d109d, Descriptor: http://192.168.1.75:1908/, Root: true
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =FRIENDLY NAME: [LG] webOS TV MT49S
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =BASE URL : null
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =SERIAL # :
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =UPC : null
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =ID.DESC URL : http://192.168.1.75:1908/
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =ID.MAX AGE : 1800
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =MANUFACTURER : LG Electronics.
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =MODEL : LG TV | LG WebOSTV DMRplus | 1.0

[INFO ] [overy.BusGatewayDiscoveryParticipant] - ================================================
[INFO ] [overy.BusGatewayDiscoveryParticipant] - ==OWN:UPnP== DISCOVERED DEVICE: (RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:426298ea-e92c-b84e-b891-5954584a12f2, Descriptor: http://192.168.1.75:1851/, Root: true
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =FRIENDLY NAME: [LG] webOS TV MT49S
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =BASE URL : null
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =SERIAL # :
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =UPC : null
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =ID.DESC URL : http://192.168.1.75:1851/
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =ID.MAX AGE : 1800
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =MANUFACTURER : LG Electronics
[INFO ] [overy.BusGatewayDiscoveryParticipant] - =MODEL : LG Smart TV | | 28MT49S-PZS
[INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘lgwebos:WebOSTV:eacb4a51-3268-4687-821a-d348eac2faf3’ to inbox.

/-------------/ Actual log /------------/
[INFO ] [al.discovery.BusGatewayUpnpDiscovery] - ==OWN:UPnP== — Found device # urn:schemas-upnp-org:device:MediaRenderer:1
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - +=== UPnP =========================================
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | ID.UDN : uuid:c69368c9-5138-915e-7cf8-586cc07d109d
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | ID.DESC URL : http://192.168.1.75:1129/
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | ID.MAX AGE : 1800
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | --------------
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | MANUFACTURER : LG Electronics. (http://www.lge.com)
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | MODEL : LG TV | LG WebOSTV DMRplus | 1.0 ()
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - +==================================================
[INFO ] [al.discovery.BusGatewayUpnpDiscovery] - ==OWN:UPnP== |- LG TV (LG Electronics.)

[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - +=== UPnP =========================================
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | ID.UDN : uuid:c69368c9-5138-915e-7cf8-586cc07d109d
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | ID.DESC URL : http://192.168.1.75:1994/
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | ID.MAX AGE : 1800
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | --------------
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | MANUFACTURER : LG Electronics. (http://www.lge.com)
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - | MODEL : LG TV | LG WebOSTV DMRplus | 1.0 ()
[DEBUG] [al.discovery.BusGatewayUpnpDiscovery] - +==================================================

/-------------/

If DeviceId changes everytime, how can I make it working ?
I’m spending time on this because my goal is to send Openhab alert messages on TV !

Thanks for any kind oh help,
Alex

  • Platform information:
    • Hardware: Raspberry Pi 3 Model B+
    • OS: RaspBian OS
    • openHAB version: 2.4.0 (Linux openHABianPi 4.19.42-v7+)

Same in my case with my LG TV (LG 49SJ810V). Did you ever succeed?
Update: I found the cause. As long as you don’t successfully pair your tv with OpenHab, the TV will return a new device id each time you switch it on (I think).
Anyway, my problem was that my tv is in the living room and I am working in another room to setup Openhab. As soon as I switched on the tv I went to the other room and saw from the openhab logs that the tv was recognized by the binding. But what I couldn’t see was the message appearing on the tv to accept the pairing request… That’s what I found out when I decided to take my laptop to the living room and see what was going on the tv screen during setup… makes perfect sense of course…
After pairing everything worked out fine.

2 Likes