[Home Assistant] Alarm Box With Push Button + Buzzer + Door Sensor ESP8266 (updated + Configuration) 3D Printer Model

Author: @
License: CC BY-SA
File formats: 3mf,stl
Download type: zip
Size:2.2MB

The file '[Home Assistant] Alarm Box With Push Button + Buzzer + Door Sensor ESP8266 (updated + Configuration) 3D Printer Model' is (3mf,stl) file type, size is 2.2MB.

Summary

Update: ESPHOME CONFIGURATION WEMOS D1 MINI ESP8266

-Added a third top (top with 5mm led and buzzer from the photos)
-added photos from my personal use case
-updated the configuration on github and tested around a bit, for me i am using the top with buzzer and 2pin push button from a pc case.
when i leave apartment i make double push/click the button and it turns off all lights and media players etc
when i come back i push it once and all relevant lights turn on. https://github.com/PsychoOW/Homeassistant/blob/main/Alarm%20Box%20ESPHOME%20configuration
-also added a photo how to make automations based on 1 push or double push

History:
so this device is basically for me acting like alert thing as part of my alert system. added the buzzer because why not and also the button because it is very very nice and useful in my opinion. initially i wanted the door sensor with esp and then i thought its boring just that and a bit wastefully sad, so i just used what i had laying around to make something nice and useful to get the most out of it and here i am with that thing :D . i hot glued the box to a piece of wood which has magnets. and the door sensor part i mounted in a way that i can easy remove if i need to do something with that device or whatever.

i am open for any improvements, either the box itself or the code :) the buzzer could be better, a looping sound would be great. the button itself i think is great implemented.

enjoy!

Old Text:

Little DIY Home assistant door sensor alarm sensor. maybe it scares away burglar, maybe not. havent tested under real conditions lol

there are just 2 tops for the case and 1 base. i uploaded everything in 2 file formats (stl, 3mf)

remixed from 2 things, i took the housing and made it higher so you can use dupont cable. From the other thing i took the buzzer holder. Also made a 5mm hole for 5mm LED but i removed it because it interfered with buzzer (buzzer was too quiet and led not very bright), i will instead put in a 2pin push button from an old pc instead. Also made a hole to fiddle door sensor cable out. i had that stuff laying around and experimented. any additions / suggestions to improve are welcomed. please beware that i am new to this so apologize for not so good code.

it works as intended and plays rtttl sounds (like old nokia ring tones) and the only downside is that it doesnt play sounds in a loop for example alarm. it plays the sound and its done. better would be alarm until turned off but i dont know how to make it work.

preloaded some sounds (some alarm themed, some funny like halloween movie) in the esphome config

Alarm_Box.3mf 313.2KB
Alarm_Boxv2.3mf 428.7KB
Alarm_Boxv2.stl 1.6MB
Alarm_Boxv2_base.3mf 82.5KB
Alarm_Boxv2_base.stl 268.1KB
Alarm_Boxv2_top_no_button.3mf 199.7KB
Alarm_Boxv2_top_no_button.stl 720.3KB
Alarm_Boxv2_top_with_button.3mf 183.6KB
Alarm_Boxv2_top_with_button.stl 663.6KB
pcpowerbutton.stl 35.8KB
top_with_led_and_buzzer.3mf 187.6KB
top_with_led_and_buzzer.stl 672.1KB