node-red-contrib-lgtv 1.1.0

Node-RED Nodes to control LG webOS Smart TVs

npm install node-red-contrib-lgtv

NPM version npm dependencies Status Build Status License

Node-RED Nodes to Control LG webOS Smart TVs :tv:

With these Nodes you can:

  • Start Apps (this also includes changing the HDMI Inputs - these are also apps under webOS)
  • Change Volume / Mute
  • Turn your TV off (turning on over the Websocket API is not possible because the network interfaces are down when the TV is in standby. You can work around this via WakeOnLAN or Infrared)
  • Switch Channels on LiveTV
  • Press Remote Buttons
  • Move the mouse, drag, scroll and click
  • Show Popup Toasts on your TV
  • Open a URL in the Browser
  • Play a Video in YouTube
  • Send arbitrary commands to the API and receive the response

Some of the nodes have an output, so you can subscribe to events:

  • Volume and mute changes
  • Foreground app changes
  • Channel changes on LiveTV


You need to allow "LG Connect Apps" on your TV - see

For the initial configuration you then just need the Hostname or IP-Address of your TV and click Connect in the lgtv-config node. The token should be filled automatically on first connect.

Note: After turning on the TV it takes ~25 seconds until the API is available.

Usage Example

I made a flow using node-red-dashboard to create a simple Remote Control:

Support, Contributing

For questions and suggestions open an Issue or chat me on Slack: @hobbyquaker.

Pull Requests welcome!


MIT (c) Sebastian Raff

Node Info

Version: 1.1.0
Updated 5 years ago
License: MIT
Rating: 5.0 6




23 in the last week


  • lgtv-config
  • lgtv-control
  • lgtv-button
  • lgtv-mouse
  • lgtv-toast
  • lgtv-browser
  • lgtv-youtube
  • lgtv-app
  • lgtv-volume
  • lgtv-mute
  • lgtv-channel
  • lgtv-request


  • node-red
  • LG
  • WebOS
  • Smart
  • TV



  • itsj4y