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.

Does "On" = 100%?

Featured Replies

Posted

I have the following program to turn some lights off at night:

 

If

Time is 12:22:00AM

Then

Wait 40 minutes (Random)

Set 'Rec Room Track' Off

Else

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

 

I also have a program that turns the lights on to 90% just before sunset. If I go into that room, I manually flip the Insteon switch up, which brings the lights up to 100%.

 

There are times when I'm in that room well past the time when the program turns the lights off. I want to modify the above program to only turn the lights off if they are NOT at 100%. However, when I go to add that condition, there is no option for 100%, so here is how the statement looks now:

 

If

Time is 12:22:00AM

And Status 'Rec Room Track' is not On

Then

Wait 40 minutes (Random)

Set 'Rec Room Track' Off

Else

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

 

So, does "On" equal 100%? It seems to me that this statement will be true no matter what the level is. Why isn't there an option for 100% in the drop-down list?

 

Thanks

Yes, On = 100%, Off = 0%. So your program should be fine.

 

Rand

I see why this is confusing, because my experience is that status is ON is true for anything but OFF. I could be wrong, thourgh.

 

For what you are trying to accomplish might I suggest:

 

1) For your program that turns the light on before sunset (call it "TrackOn"):

 

If
       Time is Sunset  -  5 minutes
   And (
            Status  'Rec Room Track' is On
         Or Status  'Rec Room Track' is Off
       )

Then
       Set 'Basement / Playroom Track Lights' 90%

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

 

2) Then for the program that turns the light off

 

If 
       Time is 12:22:00AM 
   And Program'TrackOn' is True 
Then 
       Wait 40 minutes (Random) 
       Set 'Rec Room Track' Off 
Else 
  - No Actions - (To add one, press 'Action') 

 

In this scenario the lights will always be set to 90% at 5 minutes before Sunset and teh program TrackOn will be set to true. However, any subsequent status change, whether turning them to 100% from the switch or turning them off, will trigger the "TrackOn" program and set it to false (because the time is not 5 minutes before sunset). At 12:22, the second program will only turn the lights off if the "TrackOn" program is True, i.e. the lights were set to 90% at 5 minutes before sunrise and have not been changed since.

because my experience is that status is ON is true for anything but OFF

 

Yes, that it a reasonable understanding by a reasonable person. If I recall correctly, however, the ISY also has a condition "not off". So, you have the ability to have a condition of "on" = 100% and "not off" = 1% - 100%. Pick one that meets your needs.

  • Author

Thanks everyone for the quick replies.

 

I'm going to test this tonight.

Well, operating under my standard "believe but verify" approach (as my wife puts it), I went through my programs in the ISY and it turns out that I don't ever use 'status is On'; only 'status is Off' and 'status is not Off'. So my understanding that status of On was anything other than status is Off was not only incorrect, it was unfounded.

 

I was wrong, you were right, and I am sorry (my wife would be so proud) ;)

I am sure that you were right, but just haven't come up with a good explanation for you wife. Remember, between the husband and wife, the husband is always right. Also remember, what is said in the forum stays in the forum.

Just curious, how many members of this forum do you suppose are female?

I think I have noticed a few, but there is a reason that most of us know the meaning of "WAF".

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.