Comfort Home Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

How to use Scenarios
 Moderated by: admin
 New Topic   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Sunday Mar 6th, 2011 03:59 am
   
1st Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 4339
Status: 
Offline

  back to top

The Scenario feature introduced in Comfigurator 3.2.7 allows a complete set of Responses as well as Events which trigger the Responses to be packaged as a Scenario file (with .crsx extension). The .crsx scenario file can be imported from the File > Import Scenario menu into your working cclx configuration file. This is very useful as it allows tested scenarios to be reused in future projects.

This is an example from an actual program. The requirements are

At night, between say 11 PM and 6 AM the next morning, if motion has not been detected by a PIR in the living room for 30 minutes, the system will auto-arm to Night Mode. 

To program this from scratch, this is what is done;

Time Program 1 at 11 PM ,
Response SetAutoArmFlagtoNight

Set Flag Flag01
If Timer Timer10 = 0 Then
    Do AutoarmNighFlag
End If

It sets the Flag01
If the 30 minutes timer is not running, autoarm to Night Mode

Time Program 2 at 6 AM
Response ClearAutoarmNight:
Clear Flag Flag01

PIR Zone Response = PIRStartTimer30M
Do AutoarmNighFlag After 1800 Seconds Using Timer10

This starts the timer for 30 minutes and arms to Night if Flag is set.

Response AutoarmNighFlag:
If Flag Flag01 <> 0 And SecurityMode = SecurityOff Then
    AutoArm NightMode
End If

This autoarms to Night mode is Flag is set

To export this as a Scenario, do File > Export Scenario. A window showing the Responses opens.



Select the Responses which are used.
Press and hold the Control key to select multiple Responses. In this case 4 Responses are selected;
SetAutoArmFlagtoNight
ClearAutoArmNight
PIRStart30M
AutoarmNighFlag

The Scenario will automatically include the Events and Responses which call the selected Responses, eg Time Programs 1 and 2, Flag10, Timer10

The scenario is saved as a crsx file, see attached file


Attachment: AutoArmIfNoPIR.crsx (Downloaded 18 times)

Last edited on Thursday Dec 25th, 2014 11:14 am by slychiu



 Posted: Sunday Mar 6th, 2011 04:03 am
   
2nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 4339
Status: 
Offline

  back to top

To Import the Scenario, go to File > Import Scenario and select the .crsx file

Attachment: ImportScenario.jpg (Downloaded 135 times)



 Posted: Sunday Mar 6th, 2011 04:05 am
   
3rd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 4339
Status: 
Offline

  back to top

When the crsx file has been selected, Comfigurator will ask you to select the zone numbers and Output numbers) for the imported events, eg the PIR zone in this case
This allows you to assign a zone number for the PIR

Comfigurator will ask for Zones and Outputs in the scenario to be selected as these are physical objects that have to be connected to Comfort.

Attachment: SelectZone.jpg (Downloaded 133 times)

Last edited on Sunday Mar 6th, 2011 04:32 am by slychiu



 Posted: Sunday Mar 6th, 2011 04:08 am
   
4th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 4339
Status: 
Offline

  back to top

The other events, Time Programs, Flags and Timers are assigned automatically, using the next available number of each type. A Scenario Import Report is shown showing how they were allocated.
This scenario has been imported into your cclx configuration file.
A Scenario Library can be built up from such working scenarios which will be a useful resource for Comfort installers

Attachment: ScenarioImportReport.jpg (Downloaded 134 times)

Last edited on Sunday Mar 6th, 2011 04:10 am by slychiu



 Current time is 06:43 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems