X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=switch-power.py;fp=switch-power.py;h=b3dbfab51f2b3879ea2c51f0516d1cd466e93e43;hp=2af257c631e8d2b31acff58a0fd98c03e1d70e33;hb=c7774bf8752d8825067cee013113fba06e777486;hpb=0fe3cd2adcabd0ae1d465c55f1749c6201f28e7b diff --git a/switch-power.py b/switch-power.py index 2af257c..b3dbfab 100755 --- a/switch-power.py +++ b/switch-power.py @@ -210,6 +210,11 @@ def eventNobodyHere(): for id in present_ids.split(" "): time.sleep(0.2) switchPower(id,False) + present_ids.reverse() + time.sleep(4) + for id in present_ids.split(" "): + time.sleep(0.3) + switchPower(id,False) ##def eventPanic(): ## logging.info("eventPanic(): switching around: "+uwscfg.slug_ids_panic)