[RELEASE] lgtv-bridge: LG Smart TV (WebOS) Integration [BETA]

webcore
tv

#1

I know that there are quite a few SmartApps and releases out there for managing the latest WebOS-based LG smart TVs, but none of them quite worked for me. This is my first attempt at creating any sort of SmartThings integration so it’s very rough around the edges. Anyway, this release really only achieves a couple of things:

  • Power On/Off of an LG smart TV
  • Power status tracking of an LG smart TV, reflected in the status of a virtual switch

It relies on three components:

  • A container running some node.js code which both accepts URL-based requests to control the TV, and monitors the power status of the TV using ICMP (pings). Sadly, I can’t see a way to put this functionality into a SmartApp so it has to remain separate.
  • A virtual switch device in SmartThings.
  • A WebCoRE piston to provide the intelligent link between the container and the virtual switch.

See https://github.com/sOckhamSter/lgtv-bridge for the full readme.

There are plenty of ways to tidy this up and make this more useful, so volunteers are welcome…


(Philder Lucas) #2

Hello sOckhamSter,

I’m really interested to put my lg smart tv webos 4.0 working with smartthings, but I don’t know what to do.
I only have the app working in my network lan and lg tv in my lan too.
So at this point I don’t know where and how to install your lgtv-brige.
Can you please explain me? I’m really noob but I really would like to put this working!
Thank you!


#3

Hi, this release isn’t a beginner-friendly implementation really because it assumes a certain level of existing knowledge. Your first thing to investigate is something called Docker and running containers - the lgtv-bridge software is a Docker container, which is to say that’s it’s a bit of software that needs an always-on server running the Docker software. I’d suggest you have a play with Docker and familiarise yourself with that, the easiest way to use Docker in my opinion is on a Synology NAS - it’s click-and-go in most cases, but it can equally run on most computers if you have something lying around to leave on all the time. Once you understand Docker, you are ready to install the lgtv-bridge container. I created it as a container to make it easier to use than if you just decided to run the scripts on node.js manually, but if you would rather do that you can just do that by downloading them from GitHub. Again, that’s even less of a beginner-friendly method. Sadly, I haven’t found a way to get the TV and SmartThings to talk directly to each other without this man-in-the-middle container to do the proper work.