aiowebostv
Library to control webOS based LG TV devices
What it is and what it does
aiowebostv is an async Python client library for controlling LG webOS-based televisions over the network. It wraps the webOS TV API to allow programmatic connection, querying device state and capabilities, and subscribing to state change events. The library is built on aiohttp for async I/O and is designed for integration into home automation systems and remote control applications.
The package handles the pairing handshake (storing a client key for future connections), exposes TV information and current state through simple object attributes, and allows registration of callbacks to react to TV state changes in real time. It is actively maintained and part of the Home Assistant ecosystem, with support for modern Python versions (3.11+).
Use it for:
- Build a home automation script that turns off your LG TV at a specific time or when leaving home.
- Monitor TV state changes in real time and trigger actions based on what's being watched or input selected.
- Integrate LG TV control into a broader Home Assistant or smart home system.
- Create a custom remote control application that queries and controls multiple webOS TVs on your network.
- Log TV usage patterns by subscribing to state updates and recording power and input changes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Async Python library for controlling LG webOS-based TV devices over the network, supporting connection, state queries, and event subscriptions.
Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a specific problem (LG webOS TV control) with a clean async API. It is suitable for home automation and smart home integration. No known vulnerabilities. The requirement for Python 3.11+ is a minor constraint but aligns with modern practice.
Install
aiowebostv on PyPI
pip
pip install aiowebostvuv
uv add aiowebostvpoetry
poetry add aiowebostvInstalling aiowebostv
Before you install
Low install friction with a single runtime dependency (aiohttp). Actively maintained with recent releases; last commit 2026-08-13 and version released 2026-08-06. Requires Python 3.11 or later.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aiowebostv
import asyncio
from aiowebostv import WebOsClient
async def main():
client = WebOsClient("192.168.1.39", "your_client_key")
await client.connect()
print(client.tv_info)
await client.disconnect()
asyncio.run(main())
Requires Python >= 3.11. Target LG webOS TV must be on the same network and accessible via IP address.
Verify before relying
- Whether pairing/key generation is automatic or requires manual TV interaction on first connection.
- Full range of TV control operations supported (power, input, volume, apps, etc.) beyond state queries.
- Network protocol details and any firewall/port requirements for TV communication.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — aiohttp |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,752/month — #13,978 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aiowebostv-0.9.1-py3-none-any.whl
Tags
More Home Automation packages
Represents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
homeassistantHome Assistant is an open-source home…
permissive · top 5,000 on PyPI
python-statemachineDefines finite state machines and statecharts…
permissive · top 5,000 on PyPI
btsocketA Python library for controlling BlueZ…
permissive · top 15,000 on PyPI
aiohomematicAn async Python library for controlling and…
permissive · top 15,000 on PyPI
hass-web-proxy-libProvides base classes and utilities for Home…
permissive · top 15,000 on PyPI
pyatvAn asyncio Python library for controlling Apple…
permissive · top 15,000 on PyPI
pybraviaProvides an async Python interface to control…
permissive · top 15,000 on PyPI
androidtvremote2A Python library for controlling Android TV…
permissive · top 15,000 on PyPI
aioqswAsync Python library for controlling QNAP QSW…
permissive · top 15,000 on PyPI
aioairzone-cloudAsync Python library for controlling Airzone…
permissive · top 15,000 on PyPI
samsungtvwsA Python library for remotely controlling…
copyleft · top 15,000 on PyPI
directvAsynchronous Python client for controlling and…
permissive · top 15,000 on PyPI
rokuecpAn asynchronous Python client for controlling…
permissive · top 15,000 on PyPI
fjaraskupanControl Fjäråskupan kitchen fans over Bluetooth…
permissive · top 15,000 on PyPI
aioshellyAsynchronous Python library for controlling…
permissive · top 15,000 on PyPI