X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=switch-power.py;fp=switch-power.py;h=f9c5b99dbf82e8bcfc0f632d7a78c7e45dd7f2ee;hp=186ccd11da49ea37afb7a6d50b5b5e33baad2e36;hb=15fac9ae63abcf0971b2ba7308b03bccd0871fdb;hpb=cc97fa01d9bbcd60fa89c08238d8c94680161c8b diff --git a/switch-power.py b/switch-power.py index 186ccd1..f9c5b99 100755 --- a/switch-power.py +++ b/switch-power.py @@ -144,6 +144,7 @@ def switchLogo(status_presence): else: logo_action=True if not logo_action is None: + logging.info("switchLogo: logo_action:%s" % str(logo_action)) for id in uwscfg.slug_ids_logo.split(" "): switchPower(id,logo_action) @@ -222,14 +223,14 @@ def eventNobodyHere(): logging.info("event: noone here, switching off: "+present_ids) present_id_list=present_ids.split(" ") for id in present_id_list: - time.sleep(0.2) + time.sleep(0.15) switchPower(id,False) present_id_list.reverse() - time.sleep(0.2) + time.sleep(0.15) switchLogo(status_presence) - time.sleep(4) + time.sleep(2) for id in present_id_list: - time.sleep(0.3) + time.sleep(0.15) switchPower(id,False) ##def eventPanic():