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  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 hidden, please login to view

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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 ashok R
      TV model: 49 UH770T 
      I used 6000 hours. All four corners start to have struck pixels, this is very disappointing us after spending INR 1,00,000. I am sure this should have been tested products for such high value. How would I customer will recommend LG Smart TV for family and friends if the product manufacturing is not worth the money spent on?
      regards,
      Ashok R 
      9880965020
    • By DA
      Can someone inform me as to when (what generation) they removed the smart zoom feature from their TV's? I want to purchase a new OLED TV but I noticed their smart zoom feature was missing from their remote control. I have a 2016 LG TV that still has it and I use it all the time.
    • By Phaedrus
      On an LG CX 55, two minutes into episode 4 -- "The Tomb" -- of the series Moon Knight on Disney+ there is a scene with statuettes in niches each lit by an oil lamp. As the flames flicker, dark blotches jump around some of the niche walls.
      These are certainly unintended artifacts.
      Can someone confirm wether this is a CX (only) issue?
       
    • By News Reporter
      LG Acquires AppleMango Together with GS Energy and GS Neotek,
      Securing Advanced EV Charger Development Capabilities

      SEOUL, June 27, 2022 — LG Electronics (LG) today announced it has acquired South Korean electric vehicle (EV) charger solutions provider, AppleMango Co., Ltd., jointly with GS Energy and GS Neotek. The acquisition is expected to accelerate the growth of LG’s EV charging solution business and enable the company to take advantage of future business opportunities.
      This strategic move, combined with LG’s own expertise and wealth of experience in both B2C and B2B segments, will enable the company to create fully-featured charging stations boasting a user-friendly interface and real-time control/management. LG continues to strengthen its EV charging solution business leveraging its exceptional digital signage technologies – specifically, its IP-rated outdoor digital display with sturdy, dust- and water-proof enclosure.
      Established in 2019, AppleMango has developed proprietary technologies and systems, including a slim, fast charger, to meet the rising global demand for EV charging solutions. In addition to the company’s market-leading charging tech, LG will secure access to the necessary operational infrastructure by working closely with GS Energy and GS Neotek. Both GS companies have considerable experience in operating EV charging stations and related businesses.
      The new acquisition will help LG to become an integrated solutions provider, bringing together its new charger development capabilities and existing in-house-developed EV charging management system. Moreover, the move is expected to create synergy with LG’s ongoing efforts in the area of vehicle components, including the development and supply of EV batteries and adjacent products, such as energy storage system (ESS) and energy management solutions.
      “The EV charging market is expected to grow rapidly due to the surging demand for more eco-friendly vehicles,” said Paik Ki-mun, senior vice president of LG Electronics Business Solutions Company. “Leveraging our know-how and experience in the B2B sector, we will offer customized, integrated vehicle charging solutions for diverse customers, enhancing the competitiveness of our existing business and ensuring our readiness for future opportunities.”
      LG now boasts a comprehensive EV business portfolio, with the recently-launched EV charging solution business joining other LG-owned concerns, including the LG Vehicle component Solutions (VS) Company, ZKW Group and the LG Magna e-Powertrain joint venture. This year, LG will establish an EV charger production line at LG Digital Park in South Korea, and aims to provide customized charging solution for various settings, such as private residences, shopping malls, hotels and public institutions, in the near future.
      # # #

      link hidden, please login to view
    • By News Reporter
      The importance of a well-balanced diet and its benefits for preventing diseases by boosting one’s immune system must never be underestimated. That said, an alarming number of people in Indonesia are malnourished and, unlike other parts of the world, this number is rising, not falling. This problem can be attributed to the number of children with limited access to nutrient-packed ‘superfoods’ like fruit, vegetables, beef, fish and nuts, according to a 2020 survey of low-income households that suggested children in Jakarta were not eating nearly as much nutrient-dense foods as they were before the pandemic.*

      Lee Taijin, President of LG Electronics Indonesia, and Kris Lee, Product Marketing Director of Home Appliances LG Electronics Indonesia, serve food to a waste disposal worker in Jakarta
      To take another step forward in its mission to make the world a better place for everyone, LG is bringing its healthier lifestyle initiatives to more underprivileged communities in Indonesia, most recently with its LG Lebaran Sehat (LG Healthy Eid) event. From May 4 to 6, the company set out to create social value in the nation’s bustling capital city, Jakarta, by delivering hot, healthy meals to hungry locals with LG’s flagship home appliances, including its cutting-edge microwave and expansive two-door refrigerator, playing their part.

      Every year, Eid al-Fitr marks the end of Ramadan and is celebrated by hundreds of millions of Muslims in Indonesia alone. After a full month of fasting and prayer, families participate in a nationwide exodus, known as mudik, to reach their hometowns in time to celebrate lebaran, which involves a family feast made up of various delicious, traditional meals. This year, lebaran meant even more to Indonesians of Islam as it saw the return of mudik, since restrictions on mass movement were finally lifted after 2 years living with the global pandemic.

      Believing that a spirit of solidarity within the local community would bring people together, LG Indonesia sent food trucks to three waste treatment facilities in the poorer areas of the city – Warung Buncit, Rawajati and Bantargebang. Hundreds of healthy meals were handed out to hard-working locals and deserving children, which were kept fresh and warm thanks to the advanced, energy-efficient LG products employed inside the restaurants on wheels.

      LG Indonesia endeavors to bring new social activities that better the lives of people from all walks of life, collaborating with various influential partners across multiple industries along the way to make sure no community is left behind.
      Contributed by LG Indonesia
      # # #
      *

      link hidden, please login to view
  • Similar Tagged Content


×
×
  • Create New...