Simple Ultra-Low-Power Door/Window Open/Close Sensor

by saghon in Circuits > Electronics

615 Views, 1 Favorites, 0 Comments

Simple Ultra-Low-Power Door/Window Open/Close Sensor

DOORSENSOR.png

This instruction will shows how a battery powered door/window sensor can be build and integrated in eg. FHEM home automation solution.

The solution is based on SHRDZM device sensor platform which supports multiple different sensor integration with low power consumption.

This integration is focused on ultra-low-power consumption to run the sensor for long time without changing the battery.
To reach this goal, the sensor should consume energy only if the door is closing or opening for a few hundred milliseconds.
It detects opening as well as closing events.

What Is Needed

DOORSENSOR_BOM.png

There are several types of integrations for a SHRDZM device possible.

This instruction shows the Integration Style I. With this Integration Style, the gateway is directly connected via USB. For other styles of integration, please visit the SHRDZM Wiki. Instead of the Wemos D1 mini, each other type of ESP8266 based module can be used. (eg. NodeMCU)

Flashing Firmware

FXMCY26KL0VJL0L[1].png

For initial flashing of the firmware onto the sensor device, you need a CP2102 USB to UART adapter.

Flashing Instruction Sensor Device

Flashing Instruction Gateway

How to Wire the Sensor Device

DOORSENSOR_1.png

Mounting Principle

2021-04-25 08_26_36-Window.png

Place the SHRDZMSensor above the door leaf onto the door frame with a double sided adhesive tape.
Directly below on the door leave, place the magnet.
It is important to mount the magnet on a position where the 'Closed Reed Switch' contact is tightened when the door is fully closed.
At the same position, the 'Trigger Reed Switch' must not be tightened.

Integration Into FHEM Home Automation Solution

DOORSENSOR_FHEM.png

SHRDZM supports different types of integration methods.

Take that one which fits best to your requirements.
For this instructable, a running installation of FHEM has to be available.

How to install FHEM on the Raspberry Pi can be found here.
As soon as FHEM is available, follow the instructions for activating the SHRDZM Gateway.
Since a SHRDZM Gateway can support multiple SHRDZM Sensor devices, it is necessary to pair the Sensor Device so that it communicates with the correct gateway.
For pairing, follow this instruction.