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.

Programming

Featured Replies

Posted

i have a isy994i.

i am trying to create a program to do the following.

 

1. turn on my rear lights at full brightness at sunset.

2. 4 hours later i want to reduces the brightness to 60%

3. i want to shut the light off entirely at 5 am the next day

 

can i do this within

a single program or do i need two separate programs.(one to turn it on and one to lower the brightness)

It requires two Programs. One that triggers at Sunset and another that triggers at 5 AM. Sunset moves almost everyday so it is not possible to start at Sunset and then do something at 5AM in the same Program.

  • Author

what if i dont turn on at sundet. what if i tun lights on at 7PM instead of sunset

Then one Program can do the job

If
       Time is  7:00:00PM

Then
       Set 'SwitchLinc Dimmer DB' On
       Wait  4 hours 
       Set 'SwitchLinc Dimmer DB' 60%
       Wait  6 hours 
       Set 'SwitchLinc Dimmer DB' Off

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

I *think* the following program does it all in one program.

 

Note that it doesn't take into account that you may want to turn off the lights (via a switch or other) during the 4 hours after sunset ... it will turn them back on to 60% when the 4 hour timer expires.

 

Also note that trying to do everything in one program in ISY isn't usually the best solution.

 

If
       From    Sunset 
       To       5:00:00AM (next day)

Then
       Set 'Rear Light' On
       Wait  4 hours 
       Set 'Rear Light' 60%

Else
       Set 'Rear Light' Off

Thanks KMan, I had not thought of that If combination.

When I set up something similar for some lights I created two scenes and added the load controller to both scenes as a responder. I did this in case I wanted to add any other devices to the program, I could just add them to the scenes. For example, you get a new keypad with a button that also controls the lights. For the first scene the on level would be set to 100%. For the second scene the on level would be set to 60%. In the program you would then set the first scene on then after 4 hours the second on. For the else you can turn off either scene. I think you could also use an adjust scene and only have one, rather than two scenes. A lot of different ways to skin a cat. Reading threads like this is a big help while still trying to master the ISY.

Eric

I think most newbies have a problem with so many programmes required to do what is considered "one job" or "one function". I know it really bugged me in the beginning.

 

What can really help the feeling of tidiness of programme filing is the use of folders that may not be immediately evident at first when starting out.

 

An example of folder lexicology

Rear Lights           '**** folder (no software)
     sunset          '**** three programmes to do functions
     night
     morning

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.