def shutdown(): dict = getPlugInfo() shutdownAll(dict) return redirect(url_for('home'))
def activate(): dict = getPlugInfo() activateAll(dict) return redirect(url_for('home'))
def devices(input): return render_template('devices.html', content=getPlugInfo(), alias=[input])
def switch(input): dict = getPlugInfo() switchState(input, dict) return redirect(url_for('home'))
def home(): dict = getPlugInfo() return render_template('index.html', content=dict)