Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This FAQ shows you how to create automation to be able to activate the switch by special code for certain amount of time.

Requirements

Icon
  • Be able to open doors by special code - doors will remain open unitl deactivation code will be used
  • While time profile is used - Activation / deactivation code does not have any effect
  • While time profile is used - user can access the building and can also use their access methods - intercom will signalize that the doors are open only - door remain open until the time profile is active
  • While Activation code is used - doors are open until the deactivation code is used or activation timeout expire
  • While activation code is used - user can access by using any access method -  intercom will signalize that the doors are open only - door remains open the deactivation code is used or activation timeout expire
  • While activation code is not used - user can use any access method and the door remains open based on delay object in automation (default value is 5s) and will be clsoed after the timeout 

Settings prerequisities:

It is necessary to associate switch with the bluetooth, RFID reader or finger print modules in case that  these access method will be used. In this example Bluetooth module is used and it is necessary to associate moduel to a specific switch. In this example switch 1 is used.

 

Switch 1  has following parameters:

 

Example

Icon

Note: In this example the http command looks like this: https://192.168.1.131/enu/trigger/open  where:

  • 192.168.1.131 - is the IP address of the intercom (loopback address 127.0.0.1 can be also used)
  • open - keyword used in the automation object Event HttpTrigger

 

Notice that the switch 1 does not control any output. To be able to met all requirements described at the beginning of the article, it is necessary to control outputs via the automation. Switch 1 is used only to transfer the information about the activation of the switch to the automation function. Swtich 1 can be activated by the Bluetooth, RFID card, Finger print or by numeric code defined in the global switch codes of the switch 1. 

 


It is necessary to configure door section and assign the switch which will be used to control output and doors. Switch 2 is used in this example.

Switch 2 parameters:

  • Switch mode-  Bistable
  • Controlled output - Output 1



Switch 2 is sued to control the output. Notice that the switch mode is in Bistable mode - this is crucial to ensure that the switch 2 remains activated during the time specified in the automation function. If the time profile needs to be used, it has to be applied on the switch 2.

 

Automation function

 

How it works:

  1. If the 666 code is entered - Switch 2 will be activated, delay for 50s will be activated. This delay can be modified and  determines the time during which the switch 2 will be active. Also FlipFlopRS is set to 1 to save the info that code 666 has been used. Once the timeout expire, Switch 2 is deactivated if the time profile is not active. HTTP command with reset keyword is send to reset FlipFlopRS to 0. Switch 2 deactivation related to 666 activation code is highlighted on the picture as object with ID 1. 
  2. If code 777 is used - the switch 2 is deactivated if the time profile is not active and HTTP command to loopback address is send with the keyword reset - this will reset FlipFlopRS to 0.
  3. If any access method associated with switch 1 is used - the switch 1 will send the HTTP command with the keyword: open. Based on this keyword, the switch 2 is activated and after 5s time out the switch 2 is deactivated if the condition is met. Switch 2 deactivation is highlighted on the picture as object with ID 2.  

 

Conditions and logic description:

Time profilestate of FlipFlopRSObject ID 1 condition stateObject ID 2 condition state
1000
1100
0011
0101

 

Automation file can be downloaded

HERE.

  • No labels