over 25 years of programming, but this event driven system has stumped me.
If Alarm_Disarmed is True
and program IsDark is True
Then
Set Entry Light on
Else
Routine IsDark simply return true between sunset and sunrise next day.
Alarm_Disarmed is an EZIO2x4 relay which goes true and stays true when the alarm is disarmed.
The routine works when the system is disarmed, but each evening at sunset it sets the entry light on. I understand why it is happening, but I am not sure how to fix it.