leosac / access-control

Leosac Access Control - Open Source Physical Access Control System
https://leosac.com
GNU Affero General Public License v3.0
240 stars 40 forks source link

Add ControlMode on AccessPoints #10

Closed Maxhy closed 9 years ago

Maxhy commented 10 years ago

Current implementation only supports one control mode: it opens few seconds a door if the AuthRequest is authorized. Abstraction level should be added and end-user should be able to configure a list of control mode according to days / hours / . For instance:

xaqq commented 9 years ago

We could implement this in the doorman module.

It would require an additional configuration file to store schedule and door's state/profile.

xaqq commented 9 years ago

The doorman module configuration has been extended. It is now possible to define doors and schedules were their states cannot be changed (aka always open/closed).

For opening on first access, and closing on second this is possible through proper configuration of the action in response to a successful authentication. Sending the TOGGLE command to the door is the way to go.