Use a Wemos D1 mini with supporting electronics to inform you if somebody rang the door bell and push the open button.
Per default (see the config.h
file), the following pins are used:
Pin | Connected to | Comment |
---|---|---|
D1 | Ringing Detection | Digital input when somebody is ringing (default HIGH to LOW when ringing). |
D2 | Opening Button | I.e. a relais which presses the opening button for you. |
D3 | Indicator LED | After a detected ringing, keeps on for a given amount of time. |
Remember the you also have to supply power to your D1 Mini.
See the config.h.example
file which has to be copied to config.h
to be used.
It publishes its MAC address regularly to /d1doorbell/discovery/MAC
with the
current version as value.
It sets its last will to /d1doorbell/lastwill/MAC
with the MAC as message. This
message will be retained and cleared on start.
If a door ringing is detectet, it sends the payload ringing
to /d1doorbell/MAC address
.
The pin is expected to be HIGH
in normal state and LOW
when ringing.
It subscribes to two MQTT topics where it listens to the payload open
to trigger the door opening:
/d1doorbell/all
/d1doorbell/MAC address