Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with programming

Featured Replies

Posted

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.

ronbo,

 

The reason is that your Alarm_Disarmed program is probably always true and thus the whole condition now depends on the time. Would you be kind enough to post your Alarm_Disarmed program?

 

With kind regards,

Michel

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.