Integración domótica LG webOS, gratuita y de código abierto

Control an LG webOS television locally from Gladys Assistant.
La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.
This integration controls LG webOS TVs locally from Gladys Assistant.
Automatic discovery
- Turn the TV on, then install and start the integration without entering an IP address.
- Open the Discover tab and click Scan.
- Gladys sends an SSDP search for
urn:lge-com:service:webos-second-screen:1from the host network. - The integration reads each TV UPnP description to obtain its name, model and stable UDN.
- Add your TV to Gladys. Its IP address and UDN are stored automatically.
- On the first connection, a webOS pairing request appears on the TV: accept it using the remote control.
The TV UDN is used as the stable identifier. A later scan can therefore refresh a changed DHCP address without recreating the Gladys device.
Wake-on-LAN
SSDP does not reliably expose the TV MAC address. Control while the TV is powered on and power-off work without a MAC address, but it is required to turn on the TV from Gladys using Wake-on-LAN.
After adding a TV, use the Configure a TV action in the integration configuration, select the relevant TV and enter its MAC address.
Each added TV has its own configuration, allowing Wake-on-LAN to be used with multiple LG webOS TVs.
Keeping a DHCP reservation or static IP address for each TV is recommended, even though discovery can detect and update a changed IP address.
Connection
Automatic mode tries ws://TV:3000 and then wss://TV:3001. Some recent webOS firmwares require the secure port with a self-signed certificate.
The integration maintains a WebSocket connection with each configured TV. If the connection is unexpectedly lost, it automatically attempts to reconnect. After the TV is started using Wake-on-LAN, the integration waits for webOS to become available and automatically restores the connection.
The integration exposes power, volume, mute, play/pause/stop, volume +/-, channel +/- and TV toast notifications.
Parámetros de configuración
Estos son los parámetros que LG webOS te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| LG webOS TV | section | No | Start with the Discover tab. The TV must be turned on to be detected by SSDP. When connecting for the first time, an authorization request will appear on the TV and must be accepted using the remote control. After adding a TV, use the Configure a TV action below to enter its MAC address if you want Wake-on-LAN support. |
| Connection mode | select | No |
Cómo instalar LG webOS en Gladys
- En Gladys, abre Integraciones: LG webOS aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
- Haz clic en Instalar. Gladys descarga la imagen Docker (
ghcr.io/vincentbesseau/gladys-lg-webos:2.2.2), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración). - Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
- También puedes instalarla directamente desde la URL de su repositorio: https://github.com/vincentBesseau/gladys-lg-webos.
LG webOS requiere Gladys >=4.86.1. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.
¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.
Sobre las integraciones externas
LG webOS es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene vincentBesseau, no el equipo principal de Gladys.
- Explorar todas las integraciones externas
- Descubrir las integraciones nativas incluidas en Gladys
- Crear y publicar tu propia integración externa
- Código fuente en GitHub — fuente de esta documentación