Zum Hauptinhalt springen

LG webOS Smart-Home-Integration, kostenlos und Open Source

LG webOS-Integration für Gladys Assistant

Steuern Sie einen LG webOS Fernseher lokal über Gladys Assistant.

Info

Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.

This integration controls LG webOS TVs locally from Gladys Assistant.

Automatic discovery​

  1. Turn the TV on, then install and start the integration without entering an IP address.
  2. Open the Discover tab and click Scan.
  3. Gladys sends an SSDP search for urn:lge-com:service:webos-second-screen:1 from the host network.
  4. The integration reads each TV UPnP description to obtain its name, model and stable UDN.
  5. Add your TV to Gladys. Its IP address and UDN are stored automatically.
  6. 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.

Konfigurationseinstellungen​

Diese Einstellungen fragt LG webOS in seinem Konfigurationsbildschirm in Gladys ab.

EinstellungTypPflichtfeldBeschreibung
LG webOS TVsectionNeinBeginnen Sie mit dem Tab Entdecken. Der Fernseher muss eingeschaltet sein, damit er über SSDP erkannt werden kann. Bei der ersten Verbindung erscheint eine Autorisierungsanfrage auf dem Fernseher, die mit der Fernbedienung bestätigt werden muss. Verwenden Sie nach dem Hinzufügen eines Fernsehers die Aktion Fernseher konfigurieren unten, um seine MAC-Adresse für Wake-on-LAN einzutragen.
VerbindungsmodusselectNein

So installierst du LG webOS in Gladys​

  1. Öffne in Gladys Integrationen: LG webOS erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
  2. Klicke auf Installieren. Gladys lädt das Docker-Image (ghcr.io/vincentbesseau/gladys-lg-webos:2.2.2) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration).
  3. Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
  4. Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/vincentBesseau/gladys-lg-webos.

LG webOS benötigt Gladys >=4.86.1. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.

Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.

Über externe Integrationen​

LG webOS ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von vincentBesseau veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.

Abonniere den Newsletter von Gladys Assistant

Ein paar E-Mails im Monat zu neuen Releases und Neuigkeiten aus dem Projekt. Verschickt von Pierre-Gilles Leymarie, dem Gründer des Projekts. Jederzeit abbestellbar 🙂