This week's sponsor

Agenda

An elegant new take on notes


Developer Demos HomeKit’s New Integration with Smart TVs

Benjamin Mayo, writing for 9to5Mac:

Developer Khaos Tian hacked the HomeKit protocol to simulate adding a smart TV accessory to the Home app. He shared some screenshots and videos of these features ‘in action’ …

By essentially faking the existence of a HomeKit-compatible Smart TV accessory on his network, he was able to add a television tile into his Home app.

This reveals new interfaces for controlling the TV. You can tap on the tile to turn it on or off and access the Details menu to change input.

Tian has posted a series of examples of this new HomeKit integration on his Twitter account, including one where he was able to control his LG TV running webOS from the iPhone's Home app.

Interestingly, Tian has already contributed an update to homebridge – the third-party plugin to add all kinds of different accessories and platforms to HomeKit – with support for HomeKit's new TV control APIs. Here's where this gets really interesting for me: despite the launch of an online petition, LG has only confirmed that their latest 2019 TV sets will receive official HomeKit support. Thanks to homebridge, however, it should be possible to add native HomeKit integration to older LG televisions (such as my 2017 model) with plugins that bridge the webOS API to HomeKit's new endpoints. This is precisely what Tian is doing for his demo.

Now, as someone who's been running homebridge and the homebridge-webos-tv plugin for the past few months (and I promise I will write about this eventually), I'm excited about the idea of having a native interface for controlling my TV from the Home app (and, ideally, Siri too). As you can see, the plugin I'm currently using can only "fake" controls in the Home app by adding switches. It can get...confusing:

Configuring homebridge plugins (left) requires working with a JSON document.

Configuring homebridge plugins (left) requires working with a JSON document.

But it works. I've been running homebridge and this plugin without issues for months now, and I've gotten so used to asking Siri to change inputs on my TV, I can't imagine not having these integrations anymore. A recent update to homebridge-webos-tv even added support for individual channel input and more remote control buttons. For this reason, assuming that the folks at LG don't change their mind and ship a HomeKit software update for older TV sets, I think I'm going to experiment with a dual setup for webOS TV support in HomeKit: some controls based on the official HomeKit API, and others provided as custom switches – both based on homebridge plugins. But that's a story for another time.