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.

Need help with a timer program controlling an insteon outlet

Featured Replies

Posted

I have a program that controls an outlet to be "on" for 2 hours then "off" for a minute then "on" again for 2 hours etc.

 

If

$Allow_to_Run is 1

 

Then

Repeat Every 1 minute

Set 'Outlet' On

Wait 2 hours

Set 'Outlet' Off

 

Else (blank)

 

I would like to enhance the program to only do this 4 times and then set the outlet "off" for 16 hours, then repeat the 2 hour "on/off" cycle again.

 

Thanks in advance for your help

Logically, i suppose you could try:

 

If

$allowtorun is 1

Then

Repeat 4 times

Set outlet on wait 2 hours

Set outlet off

Wait 1 minute

Repeat

Run next program (then path)

Else

Halt next program

 

Next program:

If

Nothing

Then

Wait 16 hours

Run last program (if path)

One program could do it by calling itself

 

If

    $Allow_to_Run is 1

 

Then

    Repeat for 4 times

        Set 'Outlet' On

        Wait 2 hours

        Set 'Outlet' Off

        Wait 1 minute

    Repeat 1 times

    Wait 16 hours

    Run (if) program.self

 

Else

     Set 'Outlet' Off

Edited by larryllix

Nice!

  • Author

Thank you so very much gentlemen, very elegant.

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.