10-19-2011, 09:00 PM
10-19-2011, 09:07 PM
You will need a separate response per PIR eg On Response for bedroom would start timer one
On Response for hall would then check if timer from bedroom pir was running and then starts its timer and do a null
then kitchen pir was do an on response etc etc
On Response for hall would then check if timer from bedroom pir was running and then starts its timer and do a null
then kitchen pir was do an on response etc etc
10-20-2011, 07:08 AM
Hi Ident,
Well the light on code working brill now thanks.
Hi Schford - That\'s sort of what I expected so now I am going to have to understand how I combine the lights on code with the bypass the the back door bit.
In my case both PIR 2 and 3 will are running an on responce for turning a z-wave appliance on and will also be required to start a timer. These events will have different conditions as well. So night lights between 0 - 8am, and the bypass zone will be when the night alarm is set around 1 - 7.
Maybe I have to change that and look at making the conditions the same, however we sometimes go to bed just before 1 so the bypass zone would not work unless I look at all possible route within the house to the back door and get timers running for all PIR\'s. To keep this simple I just though I know the route from the bedroom to back door and that we are normally in bed before 1 so hay presto.
Cheers
Lee
Well the light on code working brill now thanks.
Hi Schford - That\'s sort of what I expected so now I am going to have to understand how I combine the lights on code with the bypass the the back door bit.
In my case both PIR 2 and 3 will are running an on responce for turning a z-wave appliance on and will also be required to start a timer. These events will have different conditions as well. So night lights between 0 - 8am, and the bypass zone will be when the night alarm is set around 1 - 7.
Maybe I have to change that and look at making the conditions the same, however we sometimes go to bed just before 1 so the bypass zone would not work unless I look at all possible route within the house to the back door and get timers running for all PIR\'s. To keep this simple I just though I know the route from the bedroom to back door and that we are normally in bed before 1 so hay presto.
Cheers
Lee
10-20-2011, 07:23 AM
My understanding is that all the code unless it is within an if statement effectively happens at the same time within a response - so just have a cpl more lines after or before the if statement to turn the lights on for your Response HallPirOn
As an aside to make it easier I have all my responses based on actions called RoomObjectOn or Off - eg I would have HallPirOn and HallPIROff
On another note - why dont you put the code to switch the light off under the PIR off response? That way it would not kick in until you had left the room...
As there are so many timers I also find it easier to name my timers after rooms so I never mix them up as well :-)
As an aside to make it easier I have all my responses based on actions called RoomObjectOn or Off - eg I would have HallPirOn and HallPIROff
On another note - why dont you put the code to switch the light off under the PIR off response? That way it would not kick in until you had left the room...
As there are so many timers I also find it easier to name my timers after rooms so I never mix them up as well :-)
10-20-2011, 10:51 AM
The correct way to define an OR condition is shown below
Hours >= 23 OR Hours < 8
There is no need to use the condition If Hours >=0 as in your screenshot because that will always be true as Hours is from 0 to 23
Hours >= 23 OR Hours < 8
There is no need to use the condition If Hours >=0 as in your screenshot because that will always be true as Hours is from 0 to 23
10-20-2011, 10:55 AM
When you assign a Zone ON Responsem, you do not have to test that the zone is on,
eg in your screenshot you have
If MasterBedroomPIR<>0 Then ...
If this is the Master Bedroom PIR ONResponse then it is activated only if the Master Bedroom PIR becomes active, so that IF MasterBedroomPIR statement is redundant
However you can test if other zones are also on
eg
In Zone 1 Response you can test if Zone 2 etc are on
eg in your screenshot you have
If MasterBedroomPIR<>0 Then ...
If this is the Master Bedroom PIR ONResponse then it is activated only if the Master Bedroom PIR becomes active, so that IF MasterBedroomPIR statement is redundant
However you can test if other zones are also on
eg
In Zone 1 Response you can test if Zone 2 etc are on
10-20-2011, 05:20 PM
Hi All
Think I am getting this now so if I add the followin to Zone on response That should do it I think.
Think I am getting this now so if I add the followin to Zone on response That should do it I think.
10-20-2011, 05:21 PM
PIR 2
10-20-2011, 05:22 PM
PIR 3
10-21-2011, 01:33 AM
You have got the general idea.
A few comments;
The Master Bedroom PIR Response does not need to test Master Bedroom PIR being on
If Night Time = 0 means Not Night Time, so your actions work in the Day only?
A few comments;
The Master Bedroom PIR Response does not need to test Master Bedroom PIR being on
If Night Time = 0 means Not Night Time, so your actions work in the Day only?