I am trying to do a complete home security system (intruder deter) with the xiaomi gateway. In this system I would have motion sensors and door sensors. Is it possible to connect a siren with a very high dB to the xiaomi gateway?
I haven’t seen a Xiaomi siren before but you can certainly use another branded siren which is compatible with Home Assistant and trigger it using inputs from your Xiaomi devices.
The Xiaomi Gateway has a built in speaker with around 10 or so sirens that can be sounded. If you want an example of how to do this just let me know. It goes pretty loud definitely loud enough to deter a would be intruder I also add in TTS with my speakers to warn the intruder that police have been notified etc. If the objective is to make their ears bleed then you may have to do as @sparkydave has suggested.
There are a few steps to it here is the automation
## This will use the Xiaomi Gateway to sound an alarm if the system has been triggered
- alias: Start Siren on Alarm Trigger
trigger:
- platform: state
entity_id: alarm_control_panel.ha_alarm
to: triggered
action:
- service: xiaomi_aqara.play_ringtone
data:
gw_mac: !secret xiaomimac
ringtone_id: 0
ringtone_vol: 80
- service: light.turn_on
entity_id: group.downstairs_lights
- service: tts.google_say
data:
entity_id: media_player.tts_kodi
message: Alarm triggered you have 2 minutes to reset or police will be contacted!
- service: switch.turn_on
data:
entity_id: switch.away_alarm_triggered
I actually do all this through Node-RED but also have the code to do it with yaml in my repo in a dedicated package called alarm system if you need further help.
I am not sure if there is a Xiaomi Siren out there. But what I did was to connect a 3rd party external siren plugged to Xiaomi Smart Plug and used the “Automation Feature”. The Smart Plug turns on whenever the alarm is triggered. And then I use a Mi Wireless button to turn it “off” together with the Gateway alarm. It is now definitely louder than the built in Gateway App. - Hope this helps!
For the siren, any typical third Party siren will do. I used a car alarm siren, which i bought for less than USD6 and used a 12V adaptor to power to up. The trick is to set a conditon in the Gateway that whenever am alarm is triggered it turns ON the Mi smart socket that powers the siren. However, the siren stays ON until you turn OFF the smart socket which i manually turn OFF using a MI wireless switch. . Also, Iart of the settings, i set a 30 secs timer delay before it automatically turns off. Otherwise, it’ll wake up the neighbors.
Sorry for reopening such an old - yet still relevant topic.
@FerdieFlores How did you add the condition in the gateway?
When I select “If…” in an automation, then the gateway isn’t an option?
And I cannot add “Responses” to the Alarm functionality itself.
then Smart socket turns on (this is where plugged the siren)
Set a delay for 1 minute (to keep the siren screamng)
Then turn off the smart switch (where the siren is plugged).
Additional condition (when alarm is triggered)
5. I have a manual remote wireless switch and programmed it that when i press twice, it disarms the gateway alarm and.turns off item 4 above (immediately turn off smart switch that powers the siren)
I only use the Xiaomi Gateway for the doorbell chime and it’s great. For an actual alarm siren I use a Z-Wave unit with inbuilt battery backup as linked above.