This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
The connection refused generally means that it was unable to connect to the TV on the mentioned IP and port. If you grab your laptop, make sure you can ping both your TV and your Homey, meaning they are both in the same network, and if your laptop can ping both that means they should be able to connect to eachother. So if that's the case, it's not a network issue but (probably) a TV related issue.
By the way, the app is now published in the app store!
system.launcher/launch
Start an app.
Example:
lgtv.request('ssap://system.launcher/launch', {id: 'netflix'});
https://apps.athom.com/app/com.lg.smarttv
but nevertheless: great work @jorden
http://developer.lge.com/webOSTV/api/
I would help to search but i don't know where too
i will test when i'm home!
the tv displays a pin (three numbers) for pairing and it works.
doesn't this say that the procedure of pairing with numbers works normaly?
what does it mean?
there are more people having this problem like me. the comments in the appstore show some people with the same problem.
but @jorden can't reproduce this because he has no LG TV.
@BasVanDenBosch I doubt it. I think that the people that have this problem, have a TV that uses a different system and therefor it doesn't work.
I actually don't use request.js, that is a file that is there as an example (it is the original file that was used to control LG TV's using Node.js).
I use the http library in NodeJS for pairing.
<?xml version="1.0" encoding="utf-8"?>
While the documentation on LG UDAP 2.0 states its got to be:
<?xml version="1.0" encoding="utf-8"?>
<envelope><api type="pairing"><name>showKey</name></api></envelope>
(more info: http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.references.book%2Fhtml%2FUDAP%2FUDAP%2FPairing.htm)
If I try the last one it works on my 42LW5500-ze, with the currect app I also get error 400. Hope @jorden can also implement this
Perhaps it is possible to find a way to see which kind of TV's support the first, and which support the second. And then build that in.
I have added a new version to Github at https://github.com/jordenc/com.lg.smarttv so perhaps you all can try if this works? There is a v2 button in the pairing window now, and the v1 now has a 'v1' tag (that's the old version of requesting the pairing key).
Probably also the sendcommand function will need changes for people for which the v2 works.
@jeroenbos22 Good find!
Don't know if it helps. Because you didn't asked but more info helps i think. App works fine. i have a 42lm620s