+ global status_presence,room_is_bright,unixts_last_movement,uwscfg,unixts_last_presence
+ unixts_last_presence=time.time()
+ if ( time.time() - unixts_last_movement ) <= uwscfg.powerswitching_secs_movement_before_presence_to_launch_event:
+ eventPresentAndMoved()
+
+
+def eventPresentAndMoved():