Matrix_TV_The_Construct

couch-tv on an LG TV

LG TVs run webOS, not Android, and LG does not let any app replace its home screen. So couch-tv on an LG is an app that opens itself, not a true home screen, the same as on a Samsung:

It needs a computer at home that stays on (option B). Without one you can still install the app and open it from LG’s app row, but nothing opens it for you, and nothing extends Developer Mode, so the app is removed when the session runs out.

Test status: two real LGs so far

First real LG, 2 November 2026 (issue #8): an LG UHD TV on webOS 5.6.2 (2020/2021 firmware), Developer Mode with the Homebrew Channel, the bridge on a Mac. The app built with lg/build.py installed and opened, the TV asked to accept the remote straight away, and the weather, clock, dock, a custom dock tile and a translation all worked. It found three things, all fixed now: the packer (step 3), the app row before the remote is accepted (Limits), and soft backgrounds on a 4K panel (a 4K screen now gets 3840x2160 copies of the built-in scenes and photos).

Second real LG, 7 November 2026 (issue #28): an LG OLED55C1 (2021) on webOS 6.5.3, set up from Windows 11 with no bridge, the app opened from LG’s app row. The Python packer built an .ipk that installed first time; the clock, the five scenes, the weather, Spanish from the TV’s language, accepting the remote and opening apps from the dock all worked. The dock was empty: webOS 6.5.3 also refuses the app list to a Developer Mode app, and with no bridge there is nothing else to read it from. It also gave three more app ids (Apple TV, HBO Max, Spotify, now in bridge/apps.py) and these, which show by their own names: Jellyfin org.jellyfin.webos, DGO com.directvgo.webostv-rt, Win Play com.toolboxott.winplay, Claro Video clarovideo.dla.1.

Everything else was built from LG’s documentation and the open source libraries that talk to LG TVs, and tested against a stand-in TV on a computer. If you run it on another LG, thank you: please open an issue and say how it went (TV model and year, webOS version, what worked, what did not), even if everything worked.

What was checked, in November 2026:

Not checked on a real LG yet: the prompt’s exact wording, which app ids your TV uses, how long the Developer Mode session really lasts, whether the Extend over the network remote (without the ares tools) does anything, and Wake-on-LAN.

What works and what does not

  LG
couch-tv home as an app, apps in your order, the remote’s arrows, OK and Back Yes (built, not yet seen on a real LG)
Opens by itself when the TV is switched on Yes, with the bridge running
LG’s own Home button Still opens LG’s menu. Press Back or open couch-tv from the app row
Phone remote: keys, volume, mute, open an app Yes (the TV asks to accept the remote once)
More than one TV on one phone remote Yes: one bridge runs Google TVs, Samsungs and LGs together (several entries in config.json)
“Put on Bluey” (find and play) Netflix opens the title, YouTube opens the video. Other apps open on their home page and the reply says to pick the show there. Nothing presses Play for you yet
“Who’s watching?” in an app You pick the profile on the TV
Typing into the TV from the phone Only while the TV shows its own keyboard
Turning the TV on from the phone From Quick Start+ standby, yes. From fully off, only if the TV allows Wake-on-LAN (see “Turning it on”)
What is playing, a progress bar, screenshots, the Claude ask’s “look at the screen” No. LG gives none of these to the network remote
Keep watching From couch-tv’s own history only (what you started through couch-tv)
Picture mode switch, ADB tools, re-disabling the stock home No (Android only)

Before you start

Set it up

1. Developer Mode on the TV

  1. On the TV, open the LG Content Store (or Apps) and install Developer Mode.
  2. Open it and sign in with the LG developer account.
  3. Switch Dev Mode Status on. The TV restarts.
  4. Open Developer Mode again and switch Key Server on. Note the passphrase it shows (6 characters) and the TV’s address.

LG’s guide: Developer Mode app.

2. Tell LG’s tools about the TV (on the bridge computer)

ares-setup-device -a lounge -i "username=prisoner" -i "host=<tv address>" -i "port=9922"
ares-novacom --device lounge --getkey        # asks for the passphrase from step 1

Use the same name as the TV’s id in config.json (here lounge), or set ares_device there. Check it with ares-launch --device lounge com.palmdts.devmode: the Developer Mode app opens on the TV.

3. Build the app

.venv/bin/python lg/build.py --bridge http://<bridge computer's address>:5400

Use the computer’s number address (for example http://192.0.2.20:5400), not its .local name. With more than one TV in config.json, add --tv <id> for this TV. This makes build/lg/app.couchtv.home_1.0.0_all.ipk. It holds the TV home, the LG app ids, and a copy of your settings for when the computer is off. No passwords or keys go in it.

lg/build.py packs the .ipk itself. Do not switch to LG’s ares-package (--packer ares) unless you have a reason: on the first real LG (webOS 5.6.2) the TV refused the ares-package build with com.webos.appInstallService failure: ipk verified failed, and installed the one lg/build.py made.

4. Install it

ares-install --device lounge build/lg/app.couchtv.home_1.0.0_all.ipk

Or open the .ipk in webOS Dev Manager. The app appears on the TV’s app row as Couch TV.

5. Tell the bridge about the TV

In config.json, add the TV with "kind": "lg":

{ "id": "lounge", "name": "Lounge", "kind": "lg", "ip": "<tv address>", "mac": "<tv mac>" }

mac is the TV’s network (MAC) address, for turning it on from the phone: Settings, General (or Support), About This TV, or Network, Wi-Fi Connection, Advanced Wi-Fi Settings. Restart the bridge.

6. Accept the remote (someone at the TV, once)

When the bridge starts, the TV shows a prompt asking to accept a remote control connection. Press Accept (or Yes). The TV gives the bridge a client key, kept in bridge/data/lg-<id>-key.txt, and never asks again. If nobody presses it, the bridge asks again at most every 10 minutes, or the next time someone presses a key on the phone remote. If the TV never asks, switch on LG Connect Apps in the TV’s network settings (the name Home Assistant’s guide gives; it may differ by year).

Unlike a Samsung, an LG tells the bridge nothing (not even whether it is on) until the remote is accepted.

7. Check it

How the hook works

bridge/lg.py checks the TV every 2 seconds over LG’s network remote (SSAP, a websocket on port 3000, or 3001 encrypted on newer firmware): the power state, and which app is in front. Every 30 minutes it reads the TV’s app list, and finds each app couch-tv knows by its LG id or its name.

When the TV goes from off (gone from the network, or in Quick Start+ standby) to on, the bridge waits a moment, and if no app is in front (live TV, an HDMI input or LG’s home) it opens couch-tv. If the TV came back straight into an app, it is left alone. Anything the phone remote or Claude just asked for also wins: the hook stays quiet for 20 seconds after any command, except a power press, so turning the TV on from the phone also lands on couch-tv. "open_on_power_on": false in config.json turns the hook off.

Netflix titles open with the title in the launch (contentId), YouTube videos with the video’s address (contentTarget), as LG’s own integrations do. Other apps just open.

Keeping Developer Mode alive

A Developer Mode session runs out (reports differ: about 50 hours in a 2022 write-up, up to 1000 hours on LG’s forum). When it runs out and the TV restarts, Developer Mode goes off and couch-tv is removed. It also goes off after 10 restarts with no network.

So once a day, while the TV is on, the bridge runs

ares-launch --device <ares_device> com.palmdts.devmode -p '{"extend":true}'

which does what the Extend button does (reported working). It does it as the TV comes on, just before couch-tv opens, so couch-tv covers whatever Developer Mode shows. On a TV that stays on all day it waits until couch-tv or live TV is in front, then puts that back. It never does it over another app.

Turning it on

With Quick Start+ on (Settings, General), an LG that is “off” stays on the network, and the phone’s power button turns it on over the network remote. Fully off, it leaves the network, and only a Wake-on-LAN packet can reach it, and only if the TV allows it: “Mobile TV On, Turn on via Wi-Fi” on 2017 and later models, “IP control settings, Wake on LAN” on 2025 models (both under the TV’s network or general settings). A cable is more reliable than Wi-Fi. If it does not wake, the phone says so and you use the TV’s remote.

Limits to know

Undo

  1. Remove the app: ares-install --device lounge --remove app.couchtv.home, or delete it from LG’s app row with the TV remote (how depends on the year: usually hold OK on the tile, then remove).
  2. Developer Mode off: open the Developer Mode app and switch Dev Mode Status off (the TV restarts), or uninstall the Developer Mode app.
  3. Take the TV out of config.json and restart the bridge, and delete bridge/data/lg-<id>-key.txt and bridge/data/lg-<id>-devmode.json. The client key is then gone from the computer. The TV may keep its own note of the accepted remote, which is harmless (where to remove it on the TV differs by year and was not checked).
  4. On the computer: ares-setup-device -r lounge.

Nothing else on the TV was changed.