Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Smart TV
  3. LGWebOSRemote

LGWebOSRemote

MITPython

A command-line tool to control LG webOS TVs via WebSocket, supporting newer firmware with SSL.

GitHubGitHub
646 stars113 forks0 contributors

What is LGWebOSRemote?

LGWebOSRemote is a command-line remote control tool for LG webOS televisions. It connects to the TV via WebSocket (using port 3000 or 3001 with SSL) to send commands for power management, media playback, app launching, and system control. It solves the problem of controlling newer LG TVs where traditional REST-based methods on port 8080 are no longer available due to firmware updates.

Target Audience

Developers, home automation enthusiasts, and power users who want to script or automate control of their LG webOS TVs from a command line or within custom applications.

Value Proposition

Developers choose LGWebOSRemote because it supports modern LG TV firmware with SSL, offers a comprehensive set of commands, and is community-tested across a wide range of TV models. It provides a reliable, scriptable alternative to proprietary apps or unsupported methods.

Overview

Command line webOS remote for LGTVs

Use Cases

Best For

  • Automating TV power states in smart home setups
  • Scripting media playback control from a command line
  • Integrating LG TV control into home automation systems like Home Assistant
  • Developing custom remote applications for LG webOS TVs
  • Controlling LG TVs in headless or kiosk environments
  • Sending notifications or alerts to an LG TV display programmatically

Not Ideal For

  • Applications needing a graphical user interface for remote control
  • Environments with non-webOS LG TVs or very old firmware
  • Real-time, interactive remote control where CLI latency is unacceptable
  • Setups requiring fully automated control without manual TV pairing

Pros & Cons

Pros

Modern Firmware Compatibility

Uses WebSocket on ports 3000/3001 with SSL, specifically working on newer LG TVs where older REST methods on port 8080 are blocked, as stated in the README.

Extensive Command Library

Supports a wide range of functions from power management to app control, with commands like 'on', 'off', 'openApp', and 'sendButton' listed in the README.

Community-Tested Reliability

Maintained with user contributions, with a tested model list including various OLED and UHD models, ensuring broad compatibility and ongoing debugging.

Easy Network Discovery

Includes a 'scan' feature to automatically find LG TVs on the local network, simplifying initial setup and authentication.

Cons

SSL Dependency Complexity

Requires SSL for newer firmware, connecting to port 3001, which can complicate setup if users face certificate issues or network configuration challenges.

Incomplete Feature Set

The README lists TODOs like 'closeToast' and 'getSystemSettings', indicating missing functionalities that might be needed for comprehensive TV control.

Manual Authentication Barrier

Each TV requires on-screen pairing during authentication, which interrupts automation and adds a manual step before full control can be achieved.

Frequently Asked Questions

Quick Stats

Stars646
Forks113
Contributors0
Open Issues26
Last commit27 days ago
CreatedSince 2017

Tags

#home-automation#lg#smart-tv#smart-home#command-line-tool#websocket#lg-tv#python3#python#media-control#ssl#webos#smarthome#websockets

Built With

W
WebSocket
P
Python

Included in

Smart TV1.3k
Auto-fetched 1 day ago

Related Projects

homebridge-webos-tvhomebridge-webos-tv

Homebridge plugin for LG webOS TVs

Stars699
Forks86
Last commit4 months ago
lgtv2lgtv2

Control LG WebOS TV using node.js :tv:

Stars344
Forks46
Last commit4 years ago
PyWebOSTVPyWebOSTV

Python API for controlling LG TVs (Web OS)

Stars313
Forks57
Last commit9 months ago
lgtv2mqttlgtv2mqtt

Interface between LG WebOS Smart TVs and MQTT :tv:

Stars109
Forks35
Last commit3 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub