Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Surpressing security off response when auto disarming from night
#1
Under Miscellaneous Event Security Off, I have this response turn on some lights when the system is disarmed.

If NightTime <> 0 Then
    X10 B7 On ! Stair Lights On
    X10 A8 On ! Hall Lights On
    X10 A4 On ! Kitchen Lights On
End If

The trouble is that this also turns on the lights when the system Auto disarms from Night mode. Can anyone suggest some additional conditionality to apply to avoid this - I was looking for \'previous security mode\' or something, so that when the system auto disarms during winter (when it is still \'night\' in the UK) it doesn\'t turn lights on.

Thanks

HB
Reply

#2
There is no \"Previous Security Mode\" (although that may be useful)
But you can save the previous security mode in a Counter
In Away Mode, Night Mode, and Day Mode Response use Initialise counter action to save a different value to a counter eg Away = 1, Night =2, Day = 3

Then in your Security off Response, test that counter

That is 1 way
Reply

#3
Or add an if sunset condition so it will also only do not if it is still sunset?
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

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