Hi all, I have had a Wiser for several months now and I am finally getting to the point where enough of the physical CBUS wiring is completed that I can turn my attention to programming the Wiser to do all of the fancy stuff. My main problem is that when I did the CBUS course in the UK years ago there weren't any logic based products so I am starting from scratch. I have played a bit with PICED and also looked in the forum at logic examples but am a bit stuck as to where to start as my last experience in programming was over 20 years ago when I was at uni. Here's the scenario. Landing lights connected to a relay channel Light Sensor on outside of house - currently set to turn enable a group address when light level reaches x 360 PIR in landing ceiling Group address operated from multiple switches and screens around house. What I want to achieve is as follows:- 1. During daylight light only operates on the switches 2. Once light level drops to a specific point light should come on based on PIR movement for a specific time i.e. 5mins- light level determined by logic i.e. light sensor now outputting a light level not just enabling a group address. 3. If light is switched on via a switch then light should not be influenced by PIR unless if light is on and PIR is not triggered for 15mins then switch off light. - Basically i want to avoid the ability to leave the light switched on all night accidentally I have achieved 1 and 2 by simply setting up the light sensor and PIR with a trigger group but the fact that the PIR keeps switching off a light when it detects no movement that has been switched on at the switch is beginning to infuriate my wife!! Can someone give me a starting point for this logic which on the face of it seems simple but has me completely baffled currently? Once I get my head around the logic I will happily post what I come up with for people to use - no guarantee it will be any good though :) Many thanks in advance Paul