Htec LG TV
IP control for LG webOS smart TVs (OLED, QNED, NanoCell, UHD; webOS 1 to webOS 24+): power, HDMI inputs, exact
volume and mute with feedback, navigation and apps. Built to stay connected: the driver checks the TV every 10 seconds,
reconnects by itself, keeps commands waiting while the TV wakes, and follows the TV if its IP address changes.
Htec license
- Free trial: without a key the driver runs a free 2-day trial on this controller (the controller needs internet;
Htec License Status shows the time left).
- License: send the Htec Controller ID to Htec, then paste the key you receive into Htec License Key.
Keys for this driver start with LG-; an Htec ALL- key also works. The driver checks the license
with www.htecmarine.com once a day.
Setup (2 minutes)
- On the TV: turn on network wake. Depending on the year it is Settings > General > Devices >
TV Management > Quick Start+ and Settings > General > Devices > External Devices >
Mobile TV On > Turn On via Wi-Fi (2018+), or Settings > Network > LG Connect Apps and
Mobile TV On (older webOS). Give the TV a fixed (reserved) IP address in your router if you can.
- In Composer: add the driver to the room. Run Actions > Find LG TVs; if only one TV is found,
its IP address is filled in, otherwise copy it from Found TVs into IP Address.
- Pair: with the TV on, a prompt appears on the TV: choose ACCEPT (or Allow) with the TV remote.
Paired changes to Yes. The key is saved; you never need to accept it again. If you missed it,
run Actions > Pair with TV.
- Connections: bind the HDMI inputs to your sources and the Room Selection - Output to the room,
as with any Control4 TV.
How it stays connected
- The MAC Address is filled in automatically the first time the TV is seen; Wake-on-LAN uses it.
- When the TV is off it usually stops answering; that is normal. ON sends Wake-on-LAN several times, waits up
to Wake Time seconds for the TV, then sends the commands that were waiting (for example the HDMI input).
- If the TV's IP address changes, the driver finds it again by its unique ID (with Follow IP Address Changes on)
and updates IP Address by itself.
- Diagnostics shows how long the control link has been up, reconnects, drops, wakes and IP changes.
Events Connection Lost and Connection Restored can alert you in programming.
TV Sync button (Control4 app)
The driver adds a TV Sync button to the room in the Control4 app (iPad, phone, touchscreen). Rename it in
Composer (for example "Salon TV Sync") and place it like any other room button.
- Green check: synced. Control4 is connected to the TV, or the TV is off normally.
- Amber arrows: reconnecting or waking the TV.
- Red warning: lost sync. The TV should be on but has not answered for 30 seconds, or it asks to be allowed
again. Tap it to resync: Control4 reconnects at once, wakes the TV, looks for it at a new IP address or starts
pairing, whichever is needed. The same is in Actions > Resync with TV.
The event Sync Lost and the variable SYNC_STATE (Synced / Syncing / Lost) can drive a push notification or an
announcement. With Quick Start+ / Turn On via Wi-Fi enabled the TV stays visible when off, so the driver can tell "turned off"
from "lost connection" and the button never turns red just because the TV is off.
Volume
Exact level with feedback (default) sets and reads the TV's volume and mute directly, so Control4 shows the real
level. If the sound goes to a soundbar or receiver, choose Up/Down keys only.
Apps and programming
- Installed Apps lists the apps on the TV. LAUNCH_APP opens one by name (for example Netflix, YouTube,
Prime Video, Disney+, Apple TV, Plex, Spotify, Live TV) or by app ID.
- SEND_KEY sends any webOS remote button (for example HOME, EXIT, QMENU, INPUT_HUB, NETFLIX) or a full
ssap:// request for advanced programming.
- Variables: POWER_STATE, VOLUME, MUTE, CURRENT_INPUT. Events: TV Turned On/Off, Connection Lost/Restored,
Pairing Needed, IP Address Changed.
Troubleshooting
- Never pairs: make sure the TV is on (not in standby), then run Pair with TV and choose ACCEPT within a
minute. On some models also turn on LG Connect Apps / Mobile TV On. If it was denied once, run Pair
with TV again.
- Does not turn on: check Quick Start+ and Turn On via Wi-Fi on the TV and that MAC Address is filled in. The
controller and TV must be on the same network.
- Set Debug Mode to On and watch the Lua output. Last Error shows the latest problem.
Version history
- 1.2: fixes power on by Wake-on-LAN and commands sent while the TV was waking (a timer error on the controller).
- 1.1: no installer password needed: IP Address and MAC Address can be typed directly.
- 1.0: first release: TV Sync button in the Control4 app (green / amber / red, tap to resync), self-healing
connection (secure port 3001 with automatic fallback to 3000), Wake-on-LAN with command queue, IP following,
exact volume and mute with feedback, HDMI 1-4 with input feedback, apps, diagnostics, Htec license and 2-day free trial.
Htec LG TV © 2026 Htec. All rights reserved. Licensed per controller.
LG and webOS are trademarks of LG Electronics; Htec is not affiliated with LG. The pairing manifest is the
public webOS remote-app manifest also used by open-source LG clients (aiowebostv, Apache License 2.0).