A list of door sensor / reed sensor hacks! (Aqara, Xiaomi, others)

I have a Sonoff SNZB-04 sensor with the magnet mounted on the flap of my dumb Daikin air conditioner to give me a indication that it is on.

4 Likes

Nice. I do the same actually. Forgot about it;)

And as occasionally the ir signal from my broadlink ir/rf hub is not received first attempt by the air con, I retry if the door sensor state hasn’t changed to the correct position.

Another chair occupancy approach.

My parts arrived and I finally tackled the build tonight. Got everything added into Z2M/HA and my automation built. This is perfect and will see how my automation works out during the next power outage.

I did end up moving things around slightly in the project box from that picture as the relay and sensor were too thick to be on top of each other. My project box didn’t come with screws so I’ve currently got it kept closed with rubber bands.

I setup a Template Sensor based on the door/window sensor state as a clear way of seeing the “Power Service Status” as either “In Service” or “Outage”.

3 Likes

Hi guys,

Hi everyone, since all you guys seem to be gurus at this, though I’d ask here.
I’ve accidentally damaged the reed switch on one of my old Xiaomi contact sensors MCCGQ01LM

Does anyone know what specs I need to confirm when buying a new reed switch? Looks like there are different diameters
https://www.aliexpress.com/af/reed-switch.html?spm=a2g0o.detail.1000002.0&initiative_id=SB_20230104044913&origin=n&dida=y

I would go for the Aqara door sensor, that’s what I’ve used for my projects, and they work perfectly.

My Rain Gauge is running two years already, on the same battery!

1 Like

Do you want to replace just the actual glass reed switch?

I would measure the length and diameter of an unbroken one with a caliper if possible?

I suspect you may still be able to solder, fit and position an oversized one in the casing if required?

I’m guessing N/O normally open is what you want?

Yeah great point, I measured with calipers and it’s 2mm x 14mm

I would assume it’s N/O yes

1 Like

I’m going to try make a pulse counter energy meter with it. Going to solder a photoresistor into it. See how far I can go with it.
Waiting dor door sensor.
Post results later

2 Likes

Thanks for the inspiration I found in this thread.

I’ve built my own project using the ideas expressed hereinY

2 Likes

I’ll be interested to see how this goes as looking to do the same too. I’m not that familiar with the electronics side of things but are you hoping to literally just attach each end of a photoresistor to the reed switch contacts? If so I can say right now that doesn’t work as I have both sat on my desk and just tried it, I’m guessing as it’s not a mechanical switch like a reed so perhaps need some form of current to power itself?

I don’t have any battery contacts but perhaps if you could link up a couple of batteries for the photoresistor power and then connect that to the door sensor for the low power communications aspect before bundling it up into an enclosure…

A photoresistor will probably work with the Aqara sensor so long as the resistance dips below 2K ohms (seems to me like that’s the spot). Trick is simply to find what threshold resistance the sensor accepts. If the photoresistor is (when not lit) infinite resistance (or some very high value) then it might work.

Not sure about battery consumption if the photoresistor has a non-infinite resistance when not lit.

I’ve only got the basic ones that came with an electronics kit to test with, can confirm those at least don’t work when directly wired up. Be good to know if anyone tries it with other types, battery will be interesting!

Check their photoresistivity with a multimeter to let us know their values when lit and shielded from light.

I don’t have one sadly! Hopefully someone here has the parts lying around and can shed some light on it.

Hi there, I am trying to modify one of these, but I can’t figure out how it works. I don’t see a reed switch as big as the other sensors.


Those two pins works.

2 Likes

Maybe a hall-effect sensor on the PCB ? What brand/model sensor ?

How is this going in terms of reliability and battery life. Cheers.

How did you go with this?

I see these ones don’t quite make the cut-off @Rudd-O is suggesting.

AU $0.83 17%OFF | 20pcs 5506 5516 5528 5537 5539 Light Dependent Resistor LDR 5MM Photoresistor wholesale retail Photoconductive resistance
https://a.aliexpress.com/_m0gteV6