Jump to content

Again with the Alarm Folders!!


mitch236

Recommended Posts

Ok, I'm almost at wit's end. Last night I tested what I thought was ready for prime time two Folder system with Alarm status settings. But it didn't work. I ended up having timed programs roll over from the Alarm Away Folder to the Alarm Disarmed Folder and causing all kinds of havoc! Anyway, I think I wrote enough programs to shore this thing up but I would appreciate it if the brain trust could look it over and point out any weaknesses and possible better solutions.

 

I will post some examples of how this is structured. First I have two main Folders,

 

This is what the Alarm Off Folder has as an If statement:

 

Folder Conditions for 'Alarm OFF (or Stay)'

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

 

 

 

If

Program '*Armed Away' is False

 

Then

Allow the programs in this folder to run.

 

 

 

Then my Armed Folder:

 

Folder Conditions for 'Armed Away'

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

 

 

 

If

Program '*Armed Away' is True

 

Then

Allow the programs in this folder to run.

 

 

 

Then I wrote a toggle program (which resides outside of both folders) to turn off my front lights in case I disarm the alarm before the Alarm On program turns off the front lights:

 

If

Program '*Armed Away' is False

 

Then

Set Scene 'Scenes / Outdoor Front' Off

Wait 15 seconds

Disable Program 'Alarm Off Toggle'

 

Else

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

 

 

 

I had to write another program to enable the Alarm Off Toggle:

 

If

Program '*Armed Away' is True

 

Then

Enable Program 'Alarm Off Toggle'

 

Else

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

 

 

 

Here's one of the main programs in the Alarm On Folder:

 

If

Program '*Armed Away' is True

And From Sunset + 1 second

To Sunrise (next day)

 

Then

Set Scene 'Scenes / Outdoor Front' On

Set 'Indoor / Dining Room / Dining Room Chandelier' Fast Off

Set 'Indoor / Dining Room / Dining Room Main Switch' Fast Off

Set 'Indoor / Dining Room / Dining Room Sconce' Fast Off

Set 'Indoor / Dining Room / Lamplinc (Dining Room Hutch)' Fast Off

Wait 5 seconds

Set 'Indoor / Foyer / Foyer Archway' Fast Off

Set 'Indoor / Foyer / Foyer Chandelier' Fast Off

Set 'Indoor / Foyer / Foyer Closet' Fast Off

Wait 5 seconds

Set 'Indoor / Girls Bathroom / Bathroom' Fast Off

Set 'Indoor / Girls Bathroom / Shower' Fast Off

Wait 5 seconds

Set 'Indoor / Kitchen / Kitchen Cooking Area E' Fast Off

Set 'Indoor / Kitchen / Kitchen Cooking Area W' Fast Off

Set 'Indoor / Kitchen / Kitchen Pantry' Fast Off

Set 'Indoor / Kitchen / Kitchen Table' Fast Off

Set 'Indoor / Kitchen / Kitchen Under Cabinet' Fast Off

Wait 5 seconds

Set 'Indoor / Lea Room / Lea Closet' Fast Off

Set 'Indoor / Lea Room / Lea Nightstand' Fast Off

Set 'Indoor / Lea Room / Lea Room' Fast Off

Wait 5 seconds

Set 'Indoor / Living Room / Lamplinc 2 (sofa)' Fast Off

Set 'Indoor / Living Room / Lamplinc 3 (large lamp)' Fast Off

Set 'Indoor / Living Room / Living Room Controller' Fast Off

Set 'Indoor / Living Room / Living Room High Hat' Fast Off

Set 'Indoor / Living Room / Living Room Sconces' Fast Off

Set 'Indoor / Living Room / Living Room Short Lamp' Fast Off

Wait 5 seconds

Set 'Indoor / Loft / Loft Fan' Fast Off

Set 'Indoor / Loft / Loft Light' Fast Off

Wait 5 seconds

Set 'Indoor / Main Ceiling Lights / Catwalk' Fast Off

Set 'Indoor / Main Ceiling Lights / Catwalk2' Fast Off

Wait 5 seconds

Set 'Indoor / Master Bath / Bathroom Lights' Fast Off

Set 'Indoor / Master Bath / Shower' Fast Off

Set 'Indoor / Master Bath / Water Pump' Fast Off

Wait 5 seconds

Set 'Indoor / Master Suite / Master Chandelier' Fast Off

Set 'Indoor / Master Suite / Master Fan' Fast Off

Set 'Indoor / Master Suite / Master High Hat' Fast Off

Wait 5 seconds

Set 'Indoor / RF Lamplincs / 14 1D 50 1' Fast Off

Set 'Indoor / Siena Room / Siena Closet' Fast Off

Set 'Indoor / Siena Room / Siena Room' Fast Off

Wait 5 seconds

Set 'Indoor / Stairs / Stair Bottom' Fast Off

Set 'Indoor / Stairs / Stair Top' Fast Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater NE' Fast Off

Set 'Theater / Receptacle / Theater NW' Fast Off

Set 'Theater / Receptacle / Theater SE' Fast Off

Set 'Theater / Receptacle / Theater SW' Fast Off

Wait 5 seconds

Set 'Theater / Theater Front' Fast Off

Set 'Theater / Theater Hall' Fast Off

Set 'Theater / Theater Middle' Fast Off

Set 'Theater / Theater Rear' Fast Off

Set 'Theater / Theater Sconces' Fast Off

Wait 15 minutes

Set Scene 'Scenes / Outdoor Front' Fast Off

Run Program 'Random Indoor Alarm' (If)

Run Program 'Random Outside Alarm' (If)

Stop program 'All off Nighttime Alarm'

 

Else

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

 

 

 

Here's an example of a thermostat program in the Alarm On Folder:

 

If

Program '*Armed Away' is True

 

Then

Wait 10 minutes

Set 'Indoor / Thermostats / Main House / HVAC Main House' Fan Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' 36° (Heat Setpoint)

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' 82° (Cool Setpoint)

 

Else

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

 

 

 

And a light random program for Alarm Away:

 

If

Program '*Armed Away' is True

And From Sunset

To Sunrise (next day)

 

Then

Set 'Indoor / Lea Room / Lea Nightstand' On

Set 'Indoor / Kitchen / Kitchen Under Cabinet' On

Wait 1 hour

Set 'Indoor / Foyer / Foyer Archway' On

Set 'Indoor / Master Bath / Bathroom Lights' On

Set 'Indoor / Foyer / Foyer Chandelier' On

Wait 1 hour

Set 'Indoor / Master Bath / Bathroom Lights' Off

Set 'Indoor / Master Suite / Master Chandelier' On

Set 'Indoor / Lea Room / Lea Nightstand' Off

Set 'Indoor / Foyer / Foyer Chandelier' Off

Wait 1 hour

Set 'Indoor / Master Suite / Master Chandelier' Off

Wait 2 hours

Set 'Indoor / Foyer / Foyer Archway' Off

Set 'Indoor / Kitchen / Kitchen Under Cabinet' Off

 

Else

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

 

 

Link to comment

Now for the Alarm Off state:

 

First I realized I had to write a program that stops the Alarm On programs that are on timers:

 

If

Program '*Disarmed' is True

 

Then

Stop program 'All off Daytime Alarm'

Stop program 'All off Nighttime Alarm'

Stop program 'Main House a/c Alarm'

Stop program 'Master Suite a/c Alarm'

Stop program 'Upstairs a/c Alarm'

Stop program 'Theater a/c Alarm'

Stop program 'Random Outside Alarm'

Stop program 'Random Indoor Alarm'

 

Else

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

 

 

 

Here's my solution to the HVAC issue with the help of sub-routine:

 

If

Program '*Armed Away' is False

And From 8:00:00AM

To 11:00:00PM (same day)

 

Then

Set 'Indoor / Thermostats / Main House / HVAC Main House' Fan Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' Mode Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' 65° (Heat Setpoint)

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' 80° (Cool Setpoint)

 

Else

Set 'Indoor / Thermostats / Main House / HVAC Main House' Fan Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' Mode Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' 84° (Cool Setpoint)

Wait 5 seconds

Set 'Indoor / Thermostats / Main House / HVAC Main House' 46° (Heat Setpoint)

 

 

 

 

Here are some concerns I have:

 

-If I arm the alarm and then disarm it within 10 minutes, will all the timed programs in the Armed folder stop and will all the programs within the Disarmed Folder work as expected?

 

-Will my Alarm Toggle solve my front light issue?

 

-Does my program cause any instabilities?

 

 

I ask all this because last night, I set the Alarm and the indoor lighting didn't turn off. I had to disarm and then re-arm the alarm for that program to run. I wonder if there is a timing issue with how the folders become true and when the folder contents run.

 

The other problems I had I think I solved by writing the Alarm Toggle programs and the Stop Alarm Away.

 

Anyway, ever since I integrated the alarm into the ISY, things have become much more complicated but exciting at the same time. I finally can see a day when my house is completely integrated with the ISY at the wheel! Its just going to take some creative programming to make it happen and be bullet proof!

Link to comment

Then I realized I had another problem. Every time I changed the alarm from Disarmed to Armed Stay, the Alarm Away False folder reassessed its contents and changed all the thermostats to their programmed setting regardless of whether they had been changed manually. So I am trying to trick the ISY into not realizing that the alarm has changed statuses. Here are the programs I wrote to accomplish this:

 

I wrote am empty program to give the ISY/DSC interface something to update. I disabled this program. I called it Alarm Stay Trick.

 

Then I wrote a program to keep the status of Disarmed true:

 

 

 

If

Program 'Alarm Stay Trick' is True

 

Then

Run Program '*Disarmed' (Then Path)

 

Else

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

 

 

My question is will the program Alarm Stay Trick still update this program even though it is disabled?

Link to comment
Here's one of the main programs in the Alarm On Folder:

 

If

Program '*Armed Away' is True

And From Sunset + 1 second

To Sunrise (next day)

 

Then

Set Scene 'Scenes / Outdoor Front' On

Set 'Indoor / Dining Room / Dining Room Chandelier' Fast Off

Set 'Indoor / Dining Room / Dining Room Main Switch' Fast Off

Set 'Indoor / Dining Room / Dining Room Sconce' Fast Off

Set 'Indoor / Dining Room / Lamplinc (Dining Room Hutch)' Fast Off

Wait 5 seconds

Set 'Indoor / Foyer / Foyer Archway' Fast Off

Set 'Indoor / Foyer / Foyer Chandelier' Fast Off

Set 'Indoor / Foyer / Foyer Closet' Fast Off

Wait 5 seconds

Set 'Indoor / Girls Bathroom / Bathroom' Fast Off

Set 'Indoor / Girls Bathroom / Shower' Fast Off

Wait 5 seconds

Set 'Indoor / Kitchen / Kitchen Cooking Area E' Fast Off

Set 'Indoor / Kitchen / Kitchen Cooking Area W' Fast Off

Set 'Indoor / Kitchen / Kitchen Pantry' Fast Off

Set 'Indoor / Kitchen / Kitchen Table' Fast Off

Set 'Indoor / Kitchen / Kitchen Under Cabinet' Fast Off

Wait 5 seconds

Set 'Indoor / Lea Room / Lea Closet' Fast Off

Set 'Indoor / Lea Room / Lea Nightstand' Fast Off

Set 'Indoor / Lea Room / Lea Room' Fast Off

Wait 5 seconds

Set 'Indoor / Living Room / Lamplinc 2 (sofa)' Fast Off

Set 'Indoor / Living Room / Lamplinc 3 (large lamp)' Fast Off

Set 'Indoor / Living Room / Living Room Controller' Fast Off

Set 'Indoor / Living Room / Living Room High Hat' Fast Off

Set 'Indoor / Living Room / Living Room Sconces' Fast Off

Set 'Indoor / Living Room / Living Room Short Lamp' Fast Off

Wait 5 seconds

Set 'Indoor / Loft / Loft Fan' Fast Off

Set 'Indoor / Loft / Loft Light' Fast Off

Wait 5 seconds

Set 'Indoor / Main Ceiling Lights / Catwalk' Fast Off

Set 'Indoor / Main Ceiling Lights / Catwalk2' Fast Off

Wait 5 seconds

Set 'Indoor / Master Bath / Bathroom Lights' Fast Off

Set 'Indoor / Master Bath / Shower' Fast Off

Set 'Indoor / Master Bath / Water Pump' Fast Off

Wait 5 seconds

Set 'Indoor / Master Suite / Master Chandelier' Fast Off

Set 'Indoor / Master Suite / Master Fan' Fast Off

Set 'Indoor / Master Suite / Master High Hat' Fast Off

Wait 5 seconds

Set 'Indoor / RF Lamplincs / 14 1D 50 1' Fast Off

Set 'Indoor / Siena Room / Siena Closet' Fast Off

Set 'Indoor / Siena Room / Siena Room' Fast Off

Wait 5 seconds

Set 'Indoor / Stairs / Stair Bottom' Fast Off

Set 'Indoor / Stairs / Stair Top' Fast Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater NE' Fast Off

Set 'Theater / Receptacle / Theater NW' Fast Off

Set 'Theater / Receptacle / Theater SE' Fast Off

Set 'Theater / Receptacle / Theater SW' Fast Off

Wait 5 seconds

Set 'Theater / Theater Front' Fast Off

Set 'Theater / Theater Hall' Fast Off

Set 'Theater / Theater Middle' Fast Off

Set 'Theater / Theater Rear' Fast Off

Set 'Theater / Theater Sconces' Fast Off

Wait 15 minutes

Set Scene 'Scenes / Outdoor Front' Fast Off

Run Program 'Random Indoor Alarm' (If)

Run Program 'Random Outside Alarm' (If)

Stop program 'All off Nighttime Alarm'

 

Else

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

 

 

 

Hi Mitch,

 

I feel your frustration, been there. I do have two suggestions so far that will help cut some time on away.

 

I ended up putting all of the lights and devices that I wanted turned off when armed away in a scene called “Awayâ€. I found that I had a few stubborn devices which wouldn’t turn off with the first call so I added a wait 2 seconds then called the scene again.

 

Prgm “Away Activateâ€

If
       Folder  'Run If Away' is True

Then
       Wait  1 second
       Set Scene 'Scenes / Away Scenes / Away' Off
       Wait  2 seconds
       Set Scene 'Scenes / Away Scenes / Away' Off
       Wait  2 seconds
       Run Program 'Away Activate' (Else Path)

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

Also I had added some KPL buttons in the Away scene which were indicators for other devices and because you cannot set the on/off level of the KPL buttons in a scene I found it necessary to Call the scene Off instead of On to turn the KPL buttons Off when the scene was activated.

 

The other suggestion is, and if I remember correctly that your conditions for alarm stay and alarm disarmed were the same, I would just reference your programs to the Alarm Away (either true or false depending on what your program needs are) program, not the Alarm Disarmed / Stay status program. This way when you arm the alarm for stay it doesn’t cause your programs to re-evaluate.

 

Hope that makes sense, and helps.

 

Tim

Link to comment

I have the two folders set up so that the true/false statements only involve the Alarm Away status but I find the ISY still assesses the true folders even when the status change doesn't change the validity of the folder's If statement. IOW, if the alarm status changes from Alarm Stay to Disarmed the DSC sends a status change to the ISY and the ISY responds and runs the program folder that has the If statement, "If status Alarm Away is False" even though that folder is already running.

 

The ISY's programming for this would be better if the If statement could be made to say, "If the status changes to Alarm Away is False"

 

 

Your other suggestion of creating a Scene for controlling my Alarm Away lighting has an issue. If you look at my program you will see I put a bunch of 5 second waits in there to give the ISY time to keep up with all the changes. I could write a repeat into the program but it may not run because of the Stop command at the end.

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...