Hi All I'm experiencing some problems whilst using logic to set a scene once another is set and is night. Here is the code: [CODE]once (Sceneisset("Goodbye") or Sceneisset("Goodbye Garage")) and ((TIME > SUNSET ) or (TIME < SUNRISE )) then begin SetScene("Exit Night"); end;[/CODE] [B]Background[/B] Both Goodbye and Goodbye Garage belong to the same Trigger Group. Both scenes have the same lighting group with the same levels. Both scenes are also stored in the CTouch. The only difference is that "Goodbye" is triggered from the Ctouch and "Goodbye Garage" from a 6 gang in the garage. On exit the customer wanted to set the goodbye scene from the Ctouch or 6 Gang from the garage. The scene sets most of the lighting groups in the house to 0 (OFF). If it is a night exit an "Exit Night" scene was to be triggered which switched on the garage and a couple of other groups for 2 mins lighting an exit path. [B]The problem[/B] Once "Goodbye" is set from the CTouch all the loads switch off and the "Exit Night" scene is trigger. After 2 mins the garage lights switch off, however, immediately switch back on. The customer claims the garage lights remain on ndefinately. The Application log indicates that the CTouch unit is re-triggering the "Exit Night" scene. I haven't had a chance to wait around and see whether the cycle repeats. Manually switching a load on immediately after the "Goodbye" scene is set (from Ctouch) and the "Exit Night" scene was set (using the logic code) breaks the cycle and the logic works as expected. I suspect my logic code must be looping, because the "Goodbye" scene remains set thus it sets "Exit Night" with each loop. When the goodbye is broken "Exit Night" runs a final time. [B]Questions[/B] [LIST=1] [*]Are my assumptions correct? [*]How do I fix this? [*]Is there a better/more efficient way to acheive what we're trying to do? [/LIST] Your assistance would be much appreciated. Cheers Theo