![]() |
|
Night Mode Disarming / Arming - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Products (https://www.comfortforums.com/forum-3.html) +--- Forum: Questions on Using Comfort (https://www.comfortforums.com/forum-159.html) +--- Thread: Night Mode Disarming / Arming (/thread-2521.html) |
- lwillerton - 10-19-2011 Hi Indent, Also is this rigth for the night lights? should get to test tonight. Cheers Lee - schford - 10-19-2011 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 - lwillerton - 10-20-2011 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 - schford - 10-20-2011 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 :-) - ident - 10-20-2011 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 - ident - 10-20-2011 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 - lwillerton - 10-20-2011 Hi All Think I am getting this now so if I add the followin to Zone on response That should do it I think. - lwillerton - 10-20-2011 PIR 2 - lwillerton - 10-20-2011 PIR 3 - admin - 10-21-2011 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? |