Samlalor
(Sam)
December 16, 2017, 12:23pm
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:
7 Likes
mrsbaaa
(S A )
December 16, 2017, 12:37pm
2
Can’t wait to try it out …
Thank you…
Any chance you can get this to work for other brand tvs?
soaresrm
(Rui Soares)
December 16, 2017, 7:00pm
4
I’m trying it but the app is not discovering the TV
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.
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.
Samlalor
(Sam)
December 19, 2017, 7:12pm
6
Can you provide some screenshots. And I might be able to help.
soaresrm
(Rui Soares)
December 19, 2017, 7:31pm
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.
Mikey887
(Michael Ekers)
December 19, 2017, 7:49pm
8
Samlalor:
samlalor/LGSmartTV2012
Hi, i tried this and it just say an unexpected error occurred when submitting the numerical pairing code
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?
soaresrm
(Rui Soares)
December 19, 2017, 10:29pm
10
Same happens to me @Cptsamir .
Which model do you have?
Mine is a 40UF770V
Mikey887
(Michael Ekers)
December 24, 2017, 11:50am
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+’
1 Like
soaresrm
(Rui Soares)
December 24, 2017, 9:26pm
12
Hi @Mikey887 what’s the model of your tv?
And have you done any changes to the smart app or dh?
Mikey887
(Michael Ekers)
December 25, 2017, 9:16pm
13
Hi @soaresrm ,
yes i tweaked the name of the device handler, my tv is a 40UB800V-ZA
soaresrm
(Rui Soares)
December 26, 2017, 6:56pm
14
on the log i can see the TV being discovered but on the SmartApp nothing shows
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: 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: 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: 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: 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: 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: 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
Mikey887
(Michael Ekers)
December 27, 2017, 8:46pm
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
soaresrm
(Rui Soares)
December 27, 2017, 9:00pm
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
fafnir
(Trey Sneeringer)
December 29, 2017, 3:34pm
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.
fafnir
(Trey Sneeringer)
December 29, 2017, 3:41pm
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()
Seeing the same thing, never finds TV even though app works fine. Really hopeful for this to work.
Does this support WebOS 3.0 models circa 2015?