MakerWorld
Other Tools
Go to Model
D1 Mini with Reed Switch Case
5
Downloads
1
Likes
2
Makes
This is a case with a snap on back for a reed switch connected to a D1 mini that can be used as a door/window sensor. The reed switch is connected to pins D2 and GND. There is the option power the D1 mini by USB or hard wire it to a 5V power supply, where the wires can pass through the top of the case. To hard wire it to a 5V supply the connection needs to be to the 5V pin and GND. The D1 mini can be snapped into place inside the case, and the case has a horizontal marker at the front indicating the position of the reed switch so it can be aligned to the magnet. I find these switches are ideal where there is a permanent power supply and they are incredibly reliable. They can be setup in ESPHome in Home Assistant and used to run various automations and notifications. Below is the yaml code for the switch:esphome: name: "garage-door-sensor friendly_name: Garage door sensor esp8266: board: d1_mini# Enable logginglogger: # Enable Home Assistant APIapi: encryption: key: "your_encryp
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!