I just did a write up on another thread for these hall effect sensors… or similar ones anyway… and I have already spent waaaay too much time on this today so I am going to shamelessly quote myself:
Been alive for at least 6hrs so far and still at 100%, most of that was without magnet present but it is now functioning as my water meter sensor with a ~66% magnet present duty cycle, so will be a good test, if I remember I will update at some stage on the battery situation.
I purchased 2 different door/window sensors cause I read this thread first and people were having issues modding them… so I mapped out the other one, though it has been successfully modded above, I can see a neater way of doing it:
P1 is the wire attachment point, one is grounded, the other is mapped above.
both the external points and the hall effect sensor are connected to the same pin of the controller, so this is unfortunately not the second opening sensor being reported for this device (I was unable to find it at all, which I think has been mentioned above… it may just be a ghost… or lazy implementation)
The P1 part of the board (mapped above) is also unpopulated on my one.
Unlike my other door sensor, this one doesn’t have a stupid drain when open as its connected directly to the pin, but this also means that you need a pull up or down resistor instead of using existing.
I would suggest anyone looking to mod this one do the following (after you have confirmed that it is the same board by beeping it out):
Attach wire for external sensor to P1, this is in a good place to feed out the hole in the back panel, is easy to solder and will be stronger.
Bridge R10 (solder bridge or cut off resistor wire… or a 0ohm resistor if you are feeling fancy)
Bridge Q1 between the R10 input and D7 output (careful not to bridge to VCC)
Put a big resistor (1M would be my pick, but I haven’t tested this) in the R4 spot or in Q1 (between R10 and VCC)
If you are half decent at soldering, you could use the resistor leg to bridge the Q1 pins by adding a sharp fold the right length, then put the other side to VCC
I am going to use this one as is, so please try at your own risk, trust but verify, if in doubt beep it out… other generic or humorous caveats…