Sonoff SNZB-04 replacement case for 2x AA battery.
(Zigbee Door/Window Sensor)
The orginal SNZB-04 depends on CR2032 coin cells which often last only some weeks, so I did a case with AA batteries.
You need to buy a 2 x AA battery holder and a magnet 1x10x30 mm for the magnet holder. It is also possible to glue a magnet directly to the door or window or use the orignal magnet.
Solder the wires of the 2xAA battery holder to the coin holder, red wire to the top of the coin holder, black wire to the lower part of the coin holder as shown.
The orginal housing of the SNZB-04 opens with a small screwdriver and snaps into this case.
Depending on your printer calibration the upper part snaps to the lower part.
The author remixed this model.