Poor-Man’s Control System


import ouimeaux.environment# Setup UPnP server and listen for devices
env = ouimeaux.environment.Environment()
# Make sure we found the switch
if 'SteamControl' not in env.devices:
raise ValueError("Unable to discover control system.")
# Now we have access to our control
control = env.get_switch('SteamControl')

Basic Insight

# We have access to some metadata around electricity usage
print("current_power = " + str(control.current_power))
print("today_kwh = " + str(control.today_kwh))
print("today_on_time = " + str(control.today_on_time))

Big Picture



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store