Fork of which now only supports 2011 LG TVs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqozz 0ca919c9b0 Make project installable 4 months ago
lgtv2011 Make project installable 4 months ago
.gitignore Initial commit 7 years ago
LICENSE Initial commit 7 years ago Handle session internally 3 years ago Switch to python3 3 years ago Make project installable 4 months ago


Simple class for pairing with and controlling your 2011 LG TV with python.

For 2012+ TVs check out the original of this fork at

This library does not appear to support the newer WebOS LG TVs. Please see if this does not work for you.

You can find all TVs on the network using the find_tvs class method.

**This was only tested with a 42LW579S-ZD

from lg import Remote

addresses = Remote.find_tvs()

If you have only one, it'll be faster to use the first_only parameter.

address = Remote.find_tvs(first_only=True)

You will need a pairing key, if you already know it you can initiate the Remote class with it as second parameter. Otherwise you can create your remote control instance and it'll ask the TV to display it onscreen. You can then provide this pairing key using the set_pairing_key method.

remote = Remote(address)
# Pairing key will appear on screen
key = raw_input('Please enter pairing key: ')

After this you can send single or multiple commands using send_command and send_multiple.


commands = [Remote.HOME, Remote.EXIT, Remote.MENU]

An optional delay parameter can be provided to send_multiple; this will the amount of seconds the control will wait between commands. N.B. Sending commands too fast can cause some of them to be ignored.

Shortcuts-structure is subject to change. They still can be looked up in Be careful on your journey!