LG Smart TV 2012+ Integration

tv

(Sam) #1

Hello Everyone,

I have been working on a Smart App that connects my LG Smart TV 2012-2013 model to Smartthings. It contains some remote control functions, (Channel, Volumes, Up, Down, Left, Right, Sources, My Apps etc.)

I have configured it so that other apps like Alexa, Action tiles see it as a switch and can turn off the TV. I find this useful to make sure I haven’t forgot to turn off the TV when I leave the house and set the alarm.

Smart App and Device Handler Reference:


SmartThings control of LG webOS 3.0 TVs?
(S A ) #2

Can’t wait to try it out :heart_eyes:

Thank you…


#3

Any chance you can get this to work for other brand tvs?


(Rui Soares) #4

I’m trying it but the app is not discovering the TV :frowning:

The remote is one, i’ve checked the Android app and i can control the TV with it.

Any other option that i would have to configure on the TV?
I have it on DHCP static from the router.


#5

I am having the same issue,

The app is not discovering the TV from smart things.

The LG app is controlling and discovering just fine.


(Sam) #6

Can you provide some screenshots. And I might be able to help.


(Rui Soares) #7

What kind of screenshots or logs?

On thr smartapp discovery process it just says sit back and relax.
I left the app trying to discover the TV for almost 30 min.


(Michael Ekers) #8

Hi, i tried this and it just say an unexpected error occurred when submitting the numerical pairing code


#9

I will take a look at logs tonight.

From what I remember last night it just said “Looking for TV” over and over again.

Where exactly can I look for logs?


(Rui Soares) #10

Same happens to me @Cptsamir.

Which model do you have?

Mine is a 40UF770V


(Michael Ekers) #11

i managed t successfully add it, it was trying to create a device with device handler ‘LG Smart TV’ but the device handler from github is actually called ‘LG Smart TV 2012+’


(Rui Soares) #12

Hi @Mikey887 what’s the model of your tv?

And have you done any changes to the smart app or dh?


(Michael Ekers) #13

Hi @soaresrm,
yes i tweaked the name of the device handler, my tv is a 40UB800V-ZA


(Rui Soares) #14

on the log i can see the TV being discovered but on the SmartApp nothing shows :frowning:

58563030-000d-4ef6-a7af-1009c31d8e95 6:53:04 PM: debug Looking for TV’s
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:53 PM: debug hub: 2e88174f-b84d-4932-b27f-87038f009d24
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:53 PM: debug upnp: [devicetype:04, mac:C808E990B560, ip:C0A80108, ssdpPath:/, ssdpUSN:uuid:6624353e-a4d6-2867-49b5-03e0c47206e4::urn:schemas-upnp-org:device:Basic:1, ssdpTerm:urn:schemas-upnp-org:device:Basic:1]
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:53 PM: debug Device Location Event: devicetype:04, mac:C808E990B560, networkAddress:C0A80108, deviceAddress:07B6, stringCount:04, ssdpPath:/, ssdpUSN:uuid:6624353e-a4d6-2867-49b5-03e0c47206e4::urn:schemas-upnp-org:device:Basic:1, ssdpTerm:urn:schemas-upnp-org:device:Basic:1, ssdpNTS:
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:53 PM: debug hub: 2e88174f-b84d-4932-b27f-87038f009d24
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:53 PM: debug upnp: [devicetype:04, mac:C808E990B560, ip:C0A80108, ssdpPath:/, ssdpUSN:uuid:6624353e-a4d6-2867-49b5-03e0c47206e4::urn:schemas-upnp-org:device:Basic:1, ssdpTerm:urn:schemas-upnp-org:device:Basic:1]
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:53 PM: debug Device Location Event: devicetype:04, mac:C808E990B560, networkAddress:C0A80108, deviceAddress:07B6, stringCount:04, ssdpPath:/, ssdpUSN:uuid:6624353e-a4d6-2867-49b5-03e0c47206e4::urn:schemas-upnp-org:device:Basic:1, ssdpTerm:urn:schemas-upnp-org:device:Basic:1, ssdpNTS:
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:50 PM: debug hub: 2e88174f-b84d-4932-b27f-87038f009d24
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:50 PM: debug upnp: [devicetype:04, mac:6045CB91BE90, ip:C0A80101, ssdpPath:/rootDesc.xml, ssdpUSN:uuid:de92cf00-6979-11e4-9803-0800200c9a67::urn:schemas-upnp-org:device:WANDevice:1, ssdpTerm:urn:schemas-upnp-org:device:WANDevice:1]
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:50 PM: debug Device Location Event: devicetype:04, mac:6045CB91BE90, networkAddress:C0A80101, deviceAddress:0B35, stringCount:04, ssdpPath:/rootDesc.xml, ssdpUSN:uuid:de92cf00-6979-11e4-9803-0800200c9a67::urn:schemas-upnp-org:device:WANDevice:1, ssdpTerm:urn:schemas-upnp-org:device:WANDevice:1, ssdpNTS:
58563030-000d-4ef6-a7af-1009c31d8e95 6:52:47 PM: debug Looking for TV’s


(Michael Ekers) #15

did you select the tv then hit next or save or w/e in the top right, it doesn’t look like its even trying to create the device in these logs


(Rui Soares) #16

That’s my main issue. It doesn’t show any tv being found.
On the logs it only shows “looking for tvs” and then there’s that part I’ve posted (which contains the mac address of my eth and wifi for the tv) and it goes back to "looking for tvs"
And it stays like that :frowning:


(Trey Sneeringer) #17

Tried this one as my first devicehandler and SmartApp. It simply says looking for TVs. Tried for a good 30 minutes. Checked previous issues listed here and tried those resolutions and still nothing. Any suggestions? Using Model: 49UJ6300. Nothing to really see in the logs other than “Looking for TVs” and the Health Poll.


(Trey Sneeringer) #18

Health poll logs.
6febc157-a349-4c82-a055-c97b19f7456b 10:39:30 AM: debug description is read attr - raw: E5150A00080A00000020FE, dni: E515, endpoint: 0A, cluster: 0008, size: 0A, attrId: 0000, result: success, encoding: 20, value: fe
6febc157-a349-4c82-a055-c97b19f7456b 10:39:30 AM: debug description is catchall: 0104 0006 0A 01 0140 00 E515 00 00 0000 01 01 0000001001
6febc157-a349-4c82-a055-c97b19f7456b 10:39:30 AM: debug healthPoll()


(Ian Lewis) #19

Seeing the same thing, never finds TV even though app works fine. Really hopeful for this to work.


(Robross0606) #20

Does this support WebOS 3.0 models circa 2015?