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.

Java programs for power outage recovery

Featured Replies

Posted

I have a ISY994i, latest software running a network of 3 X10 units and 4 Insteon units.

I'm trying to find a way to make the ISY do a better job of recovery after a power failure. I followed BitSmith's suggestions and find they work well when I specify a SET command in the Power Recovery program but I get nothing happening when I specify execute a program that I use to control a unit.

For example:

Execute this program when powering up (i.e. power has been restored):

If ;When the ISY restarts

- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then

Send Notification to "Myself" content "Power Restored"

Enable Program 'POWER RECOVERY'

Run Program 'POWER RECOVERY' (If)

Else

- No Actions - (To add one, press 'Action')

 

The POWER RECOVERY program looks like this:

If ;If there is some light

From Sunrise - 1 hour

To Sunset + 1 hour (same day)!

Then ;Turn everything off then disable this program

Set Scene 'My_Home_ISY' Off

Disable Program 'POWER RECOVERY'

Else ;Turn everything off, turn on a soft light then disable this program

Set Scene 'My_Home_ISY' Off

Set Scene 'Downstairs / Soft_Light' On

Disable Program 'POWER RECOVERY'

 

The Set works OK, but if I specify RUN OUTDOOR (with correct syntax), the program that turns on my outdoor lights (X10 controlled) at sunset and off at sunrise, I get nothing happening. OUTDOOR has a From...To IF statement in it...could that be a problem? I don't really understand how Java executes these programs...are they continuously being 'run'?

Any help would be appreciated.

ISY Programs are event driven. The Program with a From/To time will produce a True If section at Sunset which causes the Then clause to run and a False if section at Sunrise which causes the Else clause to run. Issuing a Run Then for the program with the From/To of Sunset/Sunrise will run the Then clause. Issuing a Run If for the same program will result in the Else clause executing because it is not exactly Sunset.

  • Author

Thanks LeeG, that's the part of Java I didn't understand. I now think I know how to make it work.

Guest
This topic is now closed to further replies.

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.