Hi all - I have a sectional garage door, that I'm currently automating with a relay to trigger button press on the garage door motor, and a simple reed switch for open/closed state, using esphome on a Wemos D1 mini.
Lately, I've been thinking about finding/building a door position sensor, instead of the reed switch.
If I had position data being sent reliably, I could very easily determine if the door is opening, as well as open/close state. I have a number of automations in mind that would benefit from such data.
So far, my searches for "garage door position sensor", and variations thereof, aren't bearing much fruit. I've been pondering of couple of home-brewed approaches:
-
A series of reed switches on a track that a magnet on the door will trip as it moves along.
I guess it's theoretically doable, but they'd have to be sensitive enough to be tripped by a moving magnet, but not so sensitive that too many of them are tripped at the same time, which might confuse my "moving mathematics" to determine door movement direction.
-
An ultrasonic sensor could possibly do the job.
I'm mulling over exact placement of it so it has a reliable surface to reflect off, to give me an accurate read on position. Nothing (yet) comes to mind on that front.
It's not that I wouldn't enjoy going down the very enjoyable rabbit hole of prototyping something, but I thought I'd just ask first.
Is anyone aware of an off-the shelf sensor that might give me what I'm looking for, please? If it needs something beefier than an ESP board, I've got a couple of RasPis lying around doing nothing.
Cheers in advance for any suggestions.
Out of curiosity: what would be an automation that would benefit from knowing if it’s opening or closing?
I’m quite happy with this: https://opensprinkler.com/product/opengarage/ It doesn’t know whether the door is opening but has the benefit of knowing whether or not the car is in the garage when then door is closed.
It’s probably more that I’d benefit from knowing the position of the door - my garage gets stupid hot in summer (where my server rack is) and simply cracking it open a couple of inches and turning on a oscillating fan makes the world of difference in there.
Re the opening/closing thing, I could use some simple calcs to determine that based on change in position data, and then do some fancy animations on my HA panel. Just because. :D
It’s a shame that even “cheap” versions are hundreds of dollars, because the perfect absolute position sensor would be a “draw wire displacement sensor” (goes by a few variations on that name).
https://appmeas.co.uk/products/draw-wire-position-sensors/compact-long-range-draw-wire-displacement-sensor-low-cost-mk120/
Basically a spring-loaded spool of wire with a multi-turn position sensor, rolls in and out like a tape measure.
I had one of those for a couple years. I replaced it with a yolink garage door controller as I was trying to get everything into one ecosystem. Pretty happy with it so far.