Quantcast
Jump to content

How to add HomeKit support to your webOS TV with HomeBridge and iOS 12.2


Recommended Posts

9to5 mac posted this today...

image.thumb.png.4b524d436ba62460820b6e02c5e42f7f.png

With iOS 12.2, Apple is 

link hidden, please login to view
 for select smart TVs. Some users, myself included, are slightly irritated that LG is only supporting these features on its yet-to-be-released 2019 televisions. Fortunately, there’s a workaround that gets you most of the way there.

While this method is unconventional and not officially supported, it will  who recently bought a webOS TV to get support for HomeKit.

As outlined in this week’s , this method allows you to control your TV’s power state, volume, and app/input switch with ease. What it won’t give you is AirPlay support, meaning you won’t be able to control what’s playing on the TV itself including play/pause, and forward/rewind controls.

For this, you’ll need an always-on computer of some sort: whether that’s a Raspberry Pi, Synology, or a Mac mini (either as a server or one that’s always on).

Before we get started, remember that iOS 12.2 is currently in beta and that things could change and vary from beta to beta. At the time of writing, iOS 12.2 beta 1 is currently the latest release.

How to set up HomeKit support with HomeBridge for your webOS TV in iOS 12.2 beta

With slight variations depending on platforms, here’s how you set up HomeBridge for your webOS TV. For demonstration purposes, I’ll be using an always-on Mac mini.

First, you’ll need to install Xcode (if you’re using a Raspberry Pi or a Synology, this isn’t needed and this step can be skipped). To do this, launch the App Store, and search for Xcode. Click the ‘Get’ button and the download will begin. This may take some time to download and install, even on fast internet connection. Be prepared to wait for up to an hour for it to download and install.

B35492E5-DF63-4EB5-8E6A-5DE1085AD45F.png

After it’s installed, you’ll want to launch Xcode and install the additional tools. Again, this may take some time depending on your internet connection.

Once installed, it’s time to install Homebrew and node. To do that, run the following command in Terminal:

ruby -e “$(curl -fsSL

Once Homebrew is done installing, simply type the following command to install node:

brew install node

Now that the basics are out of the way, you’ll need to install Homebridge, which is the framework for installing third-party plugins with HomeKit. To do this, type in the following command to Terminal:

sudo npm install -g –unsafe-perm homebridge

Then, when prompted, type in the password to your Mac. Depending on your internet connection, this step may take a few minutes as it’s downloading the necessary packages for HomeBridge.

Next, you’ll want to install the actual plugin. This can be done by typing the following into Terminal:

sudo npm install -g homebridge-webos-tv

This may take a few moments to install.

Before you go ahead and try run HomeBridge, you’ll need to set up your config file. You can find a sample config file . All you’ll need is to tweak it to work with your own network. (The config file is located in: /Users/(username)/.homebridge.) You’ll want to download a text editor such as instead of using macOSbuilt-inin text editor, as that can cause problems down the road.

Within the sample config file you’ll want to change the IP address and Mac address to match your TV’s.

There are a few extra options you might want to consider adding to your code:

  • Inputs — these are the basic AV/HDMI inputs. Simply add the following code to your set up (underneath inputs) for HDMI, simply replace the last digit with the input number on your TV. For AV, simply replace “hdmi1” with “av1”. As for the name, give the input a name (for example: Apple TV, PS4, Nintendo Switch):

035FE0A5-12CA-430D-9D12-B20D7391CE35.jpe

Under the same Inputs umbrella, you can also add things such as the built-in browser, YouTube, Amazon Prime Video, etc. to the set up. You’ll be responsible for finding the appropriate app ID’s for those yourself.

  • Volume control — You can use the Apple TV remote widget in the Control Center (by tapping the Apple TV icon, tapping the drop down on the top, and then selecting your TV), to control your volume with your iPhone or iPad’s hardware volume buttons, or you can add buttons within HomeKit. To do this, you can add one of the following to your code: volumeControl: true, “switch”, or “slider”. True enables both a slider and the switch method in HomeKit. Enabling the slider will force HomeKit to recognize the volume as a light bulb. Meaning, if you have any other lights in the same HomeKit room, this will be included in the group.

00E3FE6E-C922-46B7-936C-9C2797D86BD5.jpe

After setting up and saving your config file, Jump back into Terminal and simply type:

homebridge

If everything is set up correctly, HomeBridge will start up and spit out a QR code you can scan on your iPhone or iPad. This QR code should be scanned within the Home app. Once scanned, the Home app will walk you through setting up HomeBridge with HomeKit. This is  after everything is up and running.

If you want to ever stop HomeBridge from running, simply close the Terminal window and HomeBridge will no longer be running. To restart HomeBridge, simply open Terminal and type ‘homebridge’ again to get it up and running.

Source: 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Topics

    • By News Reporter
      Selected Finalists to Receive Funding to Develop and Launch
      Their Gaming or Lifestyle App on LG Smart TVs

      SEOUL, July 9, 2024 — LG Electronics (LG) announced a call for participants for its annual global webOS hackathon, with a focus this year on AI-based solutions and gaming services. Developers worldwide are invited to apply and submit their apps for a chance to win a significant monetary prize along with the opportunity to present onstage to LG executives in Seoul, South Korea, this September.
      As a web-centric platform with an easy-to-use Smart TV software development kit, webOS enables developers to create third-party services and apps for millions of homes worldwide. The platform offers developers the tools to create apps and services that engage media, devices, security, networking, Smart TV functionalities and more. Through this hackathon, developers will have the opportunity to build and launch their app on LG Smart TVs, directly reaching consumers with their business.
      Powering LG Smart TVs, including the award-winning LG OLED TV, for over a decade, webOS platform has been acclaimed as a friendly user interface, with easy navigation and customization to provide users with the premium entertainment experience expected from LG products. Now, with an always-growing ecosystem of global partners, the webOS platform is set to drive the next generation of service innovation.
      In addition, LG is committed to expanding the webOS ecosystem by partnering with leaders in the gaming industry. This collaboration aims to offer customers a wide range of gaming services tailored to diverse preferences and interests, while enhancing the gaming capabilities of its exceptional OLED TVs. LG Smart TVs in global markets now feature an increasing array of cloud gaming services and family-friendly games.
      To participate in the hackathon, applicants will need to submit their applications
      link hidden, please login to view. Applications for the hackathon are now open and will close on July 26. Following the application process, participants will be invited to a webinar to learn more about the API and hackathon details. Finalists will be notified by mid-September. For more information about the hackathon, including detailed event schedules with terms and conditions, visit .
      The hackathon will begin with a virtual webinar in early July. Participants will choose to create a game or lifestyle service app using either the Web or Flutter framework, with the opportunity to earn additional merit points for utilizing AI. The app, scenario and demo video must be submitted by August 26. Selected winning developers will then be invited to Seoul to present their ideas in front of top LG executives on September 27.
      Cash prizes will be awarded to the top three winners of the hackathon, with a USD 100,000 Grand Prize for first place, USD 80,000 for second place and USD 50,000 for third place. The winners will also receive technical support leading up to the rollout of their app as well as on-device promotional opportunities after the launch. Winning apps must be ready for release on the LG Content Store by the end of June 2025.
      “LG webOS Hackathon 2024 aims to attract creators worldwide who are building lifestyle solutions,” said Chris Jo, senior vice president of platform business at LG Home Entertainment Company. “LG is committed to engaging with the gaming community on a global scale, partnering with developers to nurture the next generation of talent using LG’s developer platform.”
      # # #

    • By Schleimie
      Hey, 
      My question is, can I install webos4.0 or higher on my lg 49uj701v, for example via a USB stick with an .apk ? I would like to download Paramount+.
      Thanks a lot
    • By Flavio_S
      On LG OLEDs. You go on and disable SIMPLINK. Fine. But everytime you turn on your HDMI device it enables itself back again. This happens because they have disables two key features that were present in previous OSs, as you can see clearly here
      link hidden, please login to view (they even put screencaps of the menus where you see the missing options in the 23) These functions are Auto Power Sync and Auto Device Detection.
      Man updates are supposed to add functionalities not the other way around. It's very annoying to turn on your TV and have your AVR turn on without you wanting to.

      Anyone found a solution for this problem?
    • By denisuu
      Hi all,
      I'm wondering how you can get into the service menu (In Start) on an old LG Smart TV (42LB630V) running WebOS 1.4.  I have a Samsung Galaxy S6 (SM-G920F) with a IR blaster, I have tried sending '0x04FB 0xFB04' to I which should be IR code to enter the menu, but that doesn't work.
      I have also tried entering it with the SSAP-Web, but I get:
      error: 500 Application error {"errorCode":-101,"returnValue":false,"errorText":"\"com.webos.app.factorywin\" was not found OR Unsupported Application Type" The SAPP-Web app does works though, because the TV does respond to Get info
      { "returnValue": true, "product_name": "webOS", "model_name": "HE_DTV_WT1M_AFAAABAA", "sw_type": "FIRMWARE", "major_ver": "05", "minor_ver": "05.90", "country": "omitted", "device_id": "omitted", "auth_flag": "N", "ignore_disable": "N", "eco_info": "01", "config_key": "00", "language_code": "en-GB" } The reason I want to access the menu is because I've enabled DEBUG mode on my TV through the NVM method and I want to enter a root shell trough UART to enable SSH and root access.
      Gaining root access through NVM: 
      link hidden, please login to view
    • By Mohammad1403
      Hello there,
      How to remove pre-installed apps from webos 23 like Netflix and Amazon prime?
  • Similar Tagged Content

×
×
  • Create New...