Adapter for ZigBee Door/Window Sensors to use as a window or door handle.
This adapter is inspired by the eq3/HomeMatic HM-Sec-RHS [1] and the thing:4735627 [2].
Advantage/Disadvantage over HM-Sec-RHS [1]:
Advantage/Disadvantage over thing:4735627 [2]:
This adpater is designed with OpenSCAD. It also supports the OpenSCAD customizer to make it fit to your needs.
You can customize:
Ready to print STL files can be found on the linked models.
As the Aqara and Sonoff ZigBee window/door contacts have a very similar PCB layout and components, the design can be customized for your favorite sensor.
The design supports the ZigBee modules from Aqare and Sonoff including the LED window (the surface of the adapter at the LED position is thinner to let the LED shine thru) and the hole on the bottom to reach the config/pairing button.
You will find ready to print STL files for the following versions:
As described above, only the states locked and unlocked can be distinguished.
If you want to distinguish open from tilted, a second sensor can be used.
The two-sensor design works for both supported ZigBee modules.
You will find ready to print STL files for the following versions:
In your HomeAutomation you will have to aggregate these two sensors as follows:
Lower Sensor | Upper Sensor | Aggregated Window State |
closed | closed | illegal state |
closed | open | locked |
open | closed | tilted |
open | open | open |
The spacer is only necessary if the hole in the window frame around the pin has a larger diameter than the pin ring. The spacer prevents the ring from moving into the window frame (and out of sight for the sensor).
You will find STL files for different spacer heights here:
https://www.printables.com/de/model/753508-spacer-for-zigbee-rotary-handle-adapter
You can chose if you want the ring in the middle to be printed inplace or beside. Beside may give better print results as the borders are more accurate. You will find STL files for both variants.
The printing doesn't need print support structures, except for the hole on the lower end to reach the configuration button on the ZigBee module.
The print is oriented as in the preview (the case front side is placed on the printing bed down face).
Select your favorite filement so that the adapter matches your window frame or handle color. I prefer white PETG filament which is very robust so that the handle can be fasten tight.
To prepare the ZigBee sensor for the use in the adapter, follow these steps:
To mount the adapter to your window, follow these steps:
The adapter is 8.9 mm thick. To mount it under the handle it might be necessary to use longer screws (in my case only 2 out of 22).
It might also be necesary to use a longer pin (in my case only 3 out of 22). Some handles allow the change the pin, but on some handles the pin can't be changed, so a new handle might be necessary.
The adapter case has a small hole on the bottom where the ZigBee sensor button can be reached. Pair the device by pressing this button. The sensor will give you feedback over the LED which shines thru the adapter case.
Version | Date | Changes |
1.0 | 27.01.2024 | first release for the Aqara window/door sensor |
1.1 | 28.01.2024 | added LED window and button hole added optional second sensor to detect the tilt position |
1.2 | 01.02.2024 | added support for the SONOFF SNZB-04 sensor |
1.3 | 05.02.2024 | added mounting guides; added the handle corner radius; added the spacer; added controls to generate the adapater, the pin ring and the spacer separatly |
[1] https://www.eq-3.de/produkte/homematic/detail/hm-sec-rhs.html
[2] https://www.thingiverse.com/thing:4735627
The author marked this model as their own original creation.