PyViera allows you control your Panasonic VIERA TV using Python.
from pyviera import Viera, COMMANDS
# List out all possible commands
print(COMMANDS.keys())
print()
# Look for any supported TVs
tvs = Viera.discover()
# Make sure we have at least one
if len(tvs) > 0:
# Get the first TV that was found
tv = tvs[0]
# Send TV commands
tv.mute()
tv.vol_up()
tv.num(5)
else:
print("No TVs could be found")
According to the description on the app store, the following models are supported:
Panasonic flat-panel TV, 2011/2012/2013/2014/2015 VIERA
This is a forked repository, based on tomokas work.