Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Night Mode Disarming / Arming
#11
Hi Indent,

Also is this rigth for the night lights? should get to test tonight.

Cheers

Lee


Attached Files Thumbnail(s)
   
Reply

#12
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
Reply

#13
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  
Reply

#14
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 :-)
Reply

#15
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



Attached Files Thumbnail(s)
   
Reply

#16
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

Reply

#17
Hi All

Think I am getting this now so if I add the followin to Zone on response That should do it I think.

 


Attached Files Thumbnail(s)
   
Reply

#18
PIR 2

 


Attached Files Thumbnail(s)
   
Reply

#19
PIR 3


Attached Files Thumbnail(s)
   
Reply

#20
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?
Reply



Forum Jump:


Users browsing this thread:
3 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.