added new feature to toggle lounge light

This commit is contained in:
ChChBot admin 2017-02-23 00:17:31 +01:00
parent 651d4a953e
commit 28176ad2ad
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ def cmd_lamp_lounge(inp, reply=None):
else:
reply("fatal error")
@hook.command("lounge_light_toggle", autohelp=False)
def cmd_ounge_light_toggle(inp, reply=None):
"""toggle lounge light modes"""
reply(check_output("echo lounge_light_toggle | ssh -q -p 2322 command@127.0.0.1", shell=True).strip("\n").decode("utf-8"))
# Lamp handling
@hook.command("lamp", autohelp=True)
def cmd_lamp(inp, reply=None):