Jump to content

Time Flags


C Martin

Recommended Posts

Posted

Just FYI.

For all of you and this should be a lot of people, I use time programs as flags for different types of times that I use for program control. I.E. Sunset, Sunrise, Night time, Good Night,an other misc time periods that I use. With some of these time periods, I use Random Waits commands to simulate security times.

This eliminates the re-using of Sunset or sunrise codes multiple times or other time setups that are used frequently.

 

Example:

 

If

From Sunrise

To Sunset (same day)

 

Then

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

 

Else

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

 

I use these with Folders that are enabled by these flags and programs that will fire when these folders are enabled.

 

Folder Conditions for 'Goodnite Lighting Folder'

Add conditions to limit when programs in this folder are allowed to run.

 

 

 

If

Program 'GoodNite Flag Pgm' is True

 

Then

Allow the programs in this folder to run.

 

 

If

Folder 'Goodnite Lighting Folder' is True

 

Then

Wait 15 minutes (Random)

Run Program 'Goodnite Lighting Pgm' (Then Path)

 

Else

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

 

 

This can be utilized when you need to interrupt a program and re-establish the program again.

 

I posted this because I noticed a posting about using timed programs recently.

I hope that is information is of some use and help to others in this forum.

I also hope that I explained this clearly. If not I can answer and give some more examples.

 

Some other examples of my time flags:

 

Evening Flag:

If

From Sunset

To Sunrise (next day)

 

Then

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

 

Else

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

 

Goodnite flag:

If

From 11:00:00PM

To Sunrise (next day)

 

Then

Run Program 'Sunset Flag Pgm' (Else Path)

 

Else

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

 

 

Example of a prgram that uses a flag program:

 

If

Program 'Evening Flag Pgm' is True

And Control 'KeyPad Switches / KeyPad Side Yard Light ©' is switched On

 

Then

Set 'Exterior Lights / Side Yard' Fade Up

Wait 15 minutes

Set 'Exterior Lights / Side Yard' Fade Down

Set Scene 'KeyPad Switches / Key Pad Toggles / KP Side Yard On/Off Toggle' Off

 

Else

Set 'Exterior Lights / Side Yard' Off

Set Scene 'KeyPad Switches / Key Pad Toggles / KP Side Yard On/Off Toggle' Off

Posted

Good information C Martin, without variables, flags are our only option. I follow similar logic and established time flags for all sorts of things:

Flag Away

Flag Awake

Flag Dark

Flag Garage

Flag Leaving

Flag Outdoors

Flag Party

Flag Prime

Flag Rain

Flag Vacation

Flag Watering

Name convention beginning with 'Flag' allows me to sort/find them when troubleshooting. None of my ‘flag’ programs have conditions or then/else actions. They merely track TRUE or FALSE condition. Like C Martin, I use these flags as conditions on a number of folders and/or other programs I have.

 

Other programs are necessary to control their condition. Here is one example:

Program PrimeTime:

If

. From Sunset - 45 minutes

. To 11:30:00PM (same day)

Then

. Run Program 'Flag Prime' (Then Path)

Else

. Run Program 'Flag Prime' (Else Path)

Sets prime time flag:

- Then path is true between 45 minutes before Sunset and 11:30 PM.

- Else path is false for all other times.

Following C Martin’s form, I could combine this condition in Flag Prime program, eliminating the need for this example. However, some flags have multiple triggers and/or conditions. I guess I just need to keep things simple.
Posted

Hi C Martin,

 

I see one issue. Start Fade Up/Down with no end (Fade Stop) will never update the ISY state of the device.

 

I suggest you create a scene with the On Level/Ramp Rate you desire And then call that scene On or Off. Then the ISY can interpolate the states of the devices in the scene.

 

Rand

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...