
If you own a small office for 10-15 people, then you would like to know when your employees arrive, whether the cleaning woman came in the evening. It would not be superfluous to auto-close the castle so that none of the witnesses of Poseidon would accidentally make their way, as well as issue temporary codes for visitors.
There are many professional access control systems where you can open the door with a card, but in this case, a special mechanism is driven into the door, power leads, and the reader is installed in the wall. It is not very cheap and sometimes it is impossible to install such a system, for example, if the tenant does not allow changes in the decoration or in a building of historical value.
')
Devices from the Z-Wave smart home come to the rescue!
Access Control System Devices
- Vision lock on batteries, installed in place of the existing door lock. A lock always reports a change in its state, no matter how you open it: with a radio command, code or key.
Characteristics of the lock Vision:
- Ability to open the Z-Wave team (encryption AES128), using a code panel and a regular key
- If opened with a key or a latch, it reports to the controller that it is open / closed.
- Reports to the controller the code number that opened the door
- Keeps a log of events. If you enter the wrong code, you will learn about it.
- 13 codes
- Work on 4xAA batteries for up to a year (depending on how often the lock is used)
Complete with the Z-Wave RaZberry controller and the opening sensor, it is possible to use Auto-close, Remote control, Event logging and many others.

- The sensor of opening Fibaro Door / Window Sensor on batteries detects the door is open or closed. The sensor consists of two halves: a reed switch and a magnet, which are glued to a double-sided tape on the door and the door jamb. Each time you disconnect / connect the two halves, the sensor sends a message to the controller. With its help, it is possible to implement the Auto Close script or turn on the indication of an open door.
Characteristics of the opening sensor Fibaro Door / Window Sensor:
- Reed switch and magnet
- Informs on the controller the door is open or closed
- DS18B20 temperature sensor can be connected
- Reports to the controller if the sensor has been unstuck (there is a tamper on the back side)
- Battery operation 1 / 2AA up to two years

- The RaZberry smart home controller with the Z-Wave 5th generation motherboard is the brain of the entire system, supports work with all Z-Wave devices in the world (more than 1300), allows writing automation on JS, and in our case controls the lock using applications that are configured in 3 clicks.
Characteristics of the RaZberry controller:
- The power of Raspberry Pi B +
- Supports ALL Z-Wave devices in the world
- Automation is created using embedded applications.
- Ability to write unique automation on JS

Access Control System Features
We will assign the following functions to our access control system:
- Know what employee what time he came
- Auto-lock
- Automatically issue a temporary code to the cleaner for a short time.
- Open the lock remotely from a phone or key fob
- Indication of the door is not closed
So, after we installed the lock and the opening sensor, added them to the Z-Wave network, it remains only to use a couple of applications to configure access control.

View of devices in the RaZberry web interface
"
Auto-lock lock " - in its settings, select the lock and the opening sensor. If the door is open, the lock will not close; if you close and quickly open, the lock will not close. The lock will close only after the door is closed and the delay time specified in the application passes.

“
Lock log ” - an event will be logged in the lock at each lock operation, for example: “Vasya opened the door with a code”, “Lock is opened with a key”, “Code entered incorrectly”, etc. In the settings we specify a lock, we add employees (you can set the employee code from ExpertUI), specify how to save the events - JSON (local file) or HTTP (the event can be sent to a remote server in the database). The log is read from the local JSON file.


The design of the magazine will be improved and filters and other buns will be added. The Lock Log application will soon be available in the
Online Applications list.
"
Temporary code for the cleaners " - we will make it ourselves with the help of the schedule and the JS team. First you need to create two scenes "JS device" with the launch of the commands to install the lock code and remove the lock code.
The command for setting the code is 5555 in cell 12, where 2 is the lock number in the Z-Wave network.
zway.devices[2].UserCode.Set(12,"5555",1)
The command to remove code 5555 from cell 12, where 2 is the lock number in the Z-Wave network.
zway.devices[2].UserCode.Set(12,"5555",0)

In the schedule, we set the day of the week and the time when the scene should be executed with the command for setting the lock code.
Every day at 00:00 the code for the cleaning woman is activated. The withdrawal schedule is done similarly.

You can develop a topic with the schedule further and, for example, reset all codes at night to prevent access to the office at night.
Also in the office you can place a LED sign with the inscription "Close the door", which is connected to the socket module and turn it on if the door is open for more than 10 seconds.
Your secretary, you can give a keychain and then she will not have to get up from his seat to open the door.
If you have your own unique automation tasks, then you can easily solve them with the help of Z-Wave equipment. And since the RaZberry controller supports integration with other IoT devices via HTTP commands, you can use various WiFi smart devices with Z-Wave!
Recommended retail prices for devices used in the article:
- Lock with handle Vision Security - 22 220 rub.
- Sensor opening Fibaro - 5440 rubles.
- Z-Wave RaZberry controller - 13090 rub.
The lock and motion sensor can easily be replaced with other models, for example there is a version of the
lock without a handle , and the
opening sensor can be used hidden from Aeon .