Could anyone recommend me a siren or something that can make a lot of noise?
Zigbee (zigbee2mqtt with the big TI dev board) or Wifi
With plug, USB or battery
HA compatible (of course)
For indoor use is fine, outdoor use is OK too
Reason for getting one:
Replicate doorbell in the backyard
Sound alarm when house alarm triggers or e.g what we had today, toilet flush button got stuck and it flushed about 1400 liters before we noticed, I have a monitor on the water usage but our phones were inside so we didnât see the push notif as we were in the yard
Thanks, looks interesting! Come to think of it, perhaps siren is not the correct word. For example, I have an Aqara hub that I use for burglar alarm sound amongst other things. I guess, it shouldnât necessarily be an alarm siren rather something that has a loud volume output and some sounds/ringtones.
For instance, when sitting in the backyard, no need for a siren to go off when someone rings the bell at the front door.
I was going to say, it sounds like you need something more than a siren. I have a very loud 12VDC alarm siren hooked to relay next to my pi3. I use a GPIO output on the pi to drive relay, but I do have something for other âquieter promptsâ.
Are you decent at soldering? If so, you could do what I do and place some wemos d1 minis with dfplayer minis around the house, and use automations and mqtt to trigger playing of specific mp3 files. For example, I get a real doobell sound from the speakers when someone rings the bell, and I have voice prompts (mp3âs generated by audacity using google tts) for things like âdryer load is doneâ, âgarage door left openâ, âmaster bath shelly overheatingâ, âfront door openedâ, etc⌠no internet required since itâs just playing local mp3 files from an sd card. Itâs not alexa, but itâs HA style cloud-free and it works perfect for this sort of thing. It also enables some pretty geeky cool stuff, like playing that âshhhht⌠shhhhtâ sound from startrek whenever doors are opened/closed.
Alternatively, you can simplify it if a beeper is enough. You can also use esphome to fire a peizo buzzer to warn you of something⌠much cheaper and smaller than the dfplayer option if you donât need mp3âs. I used to do this before I added dfplayers⌠2 short beeps when doors are opened, etc. In fact I still have beepers installed on the devices, because theyâre better than mp3âs for repeated warnings. Like, beep beep, âgarage door left openâ, then every 30sec beep beep until itâs closed (or a manual silencing button is pressed).
Not sure if there is a place you can buy such devices pre-assembled, but a search for âesp dfplayerâ might turn something up. Iâve got some 3d printable cases designed for these things if youâre interested (on thingiverse, same username).
Interesting, thanks for the inspiration! What speaker do you hook up to the dfplayer? How loud do they go? What about those piezo buzzers? The backyard (horse meadow behind it) goes a long way (around 80 meters) and sometimes weâre working in the back, so for it to be âperfectâ it should be quite loud.
Iâm using a tiny 3W speaker, and theyâre definitely loud enough for inside my 2000sf home. Here is a writeup I did that has links to all the parts I typically use in these devices:
80â away while working in the yard is going to need more volume though. You can also drive any old audio amplifier with a dfplayer; dfplayers have both an 8ohm speaker output, and stereo line outs as well. Not sure how well that would fit in to your plans though.
Also, I think a simple 5V piezo beeper could penetrate your ears from that far, and those can be easily controlled with an esp (you have to add a driver transistor⌠check out my schematic in that link I posted).
Itâs simple to do with esphome, which has a dfplayer component available. I just add some code to my espâs so they subscribe to a voice topic. When an automation fires a voice prompt, it just sends a number (1-255) to that topic. When an esp recieves a number published to that topic, plays the corresponding numbered mp3 files. The relevant esphome config looks like this:
Note the 150ms delay is only required because I am using a clone/fake dfplayer (typical of the kind you get from amazon). With that config, you just need to pop in an sd card with the mp3 files all named and placed in a folder named â01â placed at the root, like thisâŚ
Itâs a good idea to make all the sd cards on your dfplayers identical, to reduce confusion over which files are on which device (sd space is cheap enough to not worry about it here). It also lets you broadcast prompts to all devices with one message like Iâm doing. So sending an mqtt message of â003â to the topic esphome/voice, will make all my dfplayers play a doorbell sound. Sending â001â to âgarage/voiceâ makes just my garage device say âFront door is openedâ.
Note that I put configs for 2 different topics, but only 1 is really required. By using 2 topics, one being the same on all espâs (esphome/voice) and the other unique for each esp device (uniquename/voice), I can send a voice prompt to all dfplayers at once (using esphome/voice), or to each individual dfplayer as needed.
Also note that Iâm hardcoding the volume with this method. I do plan on taking that out, and using mqtt to control volume depending on the prompt and location. This would be like a topic esphome/voice/volume, and Iâd send numbers from 0-31, and use it in the code with the atoi just like I did with the track numbers.
This is to just for sending out a single tone based on the resistor? Could it be used with rtttl instead? And could I use a higher drive voltage like 12v?
The tone is fixed as it is just a 5V piezo buzzer. The transistor and bias resistor are just a cheap/old school way of driving the 5V device with the 3v3 output on an esp device.
I am also driving some 12V high current sirens (very, very loud!) from another esp device. That device just uses isolated relays to switch the sirens on and off. By âisolatedâ I mean the relays have an optical isolator built in, with a 5V supply. So they can operate fine with a 3v3 input, switching my 12V sirens (could even be a 15A 120V heater even).
You can also use MOSFETs if you prefer solid state or need faster switching for a DC device (like 12VDC siren). The same concept, with the right FET chosen, can drive several 100W at 12V if needed. This type of circuit is commonly found in 3d printers, to run 12/24V heaters with PWM from 3v3 level outputs. There are all kinds of such MOSFET breakout boards available online.
I went with relays so I have the option to use 120V sirens if I even needed. Here are some options that would work, if you are curious: