External integration - LG WebOS

A quick update on the LG webOS integration progress :slightly_smiling_face:

What’s done

  • TV discovery via SSDP
  • Local connection to webOS via WebSocket
  • Power management with real status feedback
  • TV shutdown
  • Wake-on-LAN
  • Volume / mute
  • Volume + / -
  • Play / Pause / Stop
  • Channel + / -
  • Sending notifications to the TV
  • Retrieving installed applications
  • Launching an application
  • Retrieving HDMI sources
  • Changing source
  • Automatic reconnection to WebSocket after TV wake-up

What’s left to do

  • Manage multiple TVs: for now, the integration is designed for a single TV
  • Add a warning / advice regarding DHCP reservation or TV fixed IP
  • Check if there are other interesting webOS commands to expose in Gladys
  • Add an indication for automatic discovery: the TV must be on to be detected via SSDP and, during the first connection, the user must accept the authorization request directly on the TV.
  • See how to automatically retrieve the MAC address (RĂ©cupĂ©ration adresse mac via SSDP)