is there a siren that lets HA choose the sound as needed?
for instant, chime for doorbell, blazing beeepp beep for fire/CO sensor?
i see my Dome has multiple sounds available in zwave JS settings. but it seems i can only set 1 sound and that is it. cannot play other sounds during setting up automations… or is there a way?
While it is not a ‘siren’ it can get plenty loud… I have a early generation Sonos Play:1 that I pretty much retired as a music device, it works great with Home Assistant’s automation functions. It is loud enough to be heard through out a 1800 sq. ft. house.
If you can find one on eBay or other place for low cost, it’s local web API’s are very solid, and unlike some of the newer speaker devices Google and Amazon, there is no delay in the messages or mp3’s playing. All local control.
I combine it with the pushover alerting service for my iOS devices, pushover has options to force alerts thru to iOS devices even when muted and keep repeating until you acknowledge.
Below are examples of a door bell, cuckoo clock and motion sensor detection alarm :
Good hunting!
# ---- alarm
action:
- service: notify.pushover
data:
message: Garage Motion Detected
data:
priority: 1
sound: gamelan
- service: tts.cloud_say
entity_id: media_player.living_room
data:
message: Garage Motion Detected
language: en-US
options:
gender: female
# ----- Cuckoo Clock
- alias: Cuckoo Clock
trigger:
- platform: time_pattern
minutes: 0
seconds: 5
condition:
condition: and
conditions:
- condition: time
after: 06:00:00
before: '22:31:00'
action:
- service: media_player.volume_set
data:
entity_id: media_player.living_room
volume_level: 0.56
- service: media_player.play_media
data_template:
media_content_id: '{% set b = now().strftime("%H") %} http://192.168.1.105:8123/local/sounds/cuckoo/cuckoo-clock-{{b}}.mp3
# --- door chime
- alias: Front Door Opened
trigger:
- platform: state
entity_id: binary_sensor.smartthings_pgc313_01_ias_zone
from: 'off'
action:
service: media_player.play_media
data_template:
media_content_id: http://192.168.2.242:8123/local/sounds/store-door-chime.mp3
entity_id: media_player.living_room
media_content_type: music
Is there no “select.xxx” entities for the different sound tones available in the device settings of HA?
If there are you should be able to use the “select.select_option” service for those select entities.
so your Play1 is always powered on never fully off?
Yes, you highlight the phantom power effect of our home automation experiments…
The Sonos sits at 5 watts (110v) idling after it speaks.
In contrast, a Google Home Mini idles at a little under 3 watts after speaking.
Using a ‘Kill A Watt’ low tech device to measure.
Thanks for your cuckoo and door chime yaml! I’m getting stuck at the data_template. When I select the play_media service. The automation UI asks for the speaker entity but a data line does not show for me to copy your code. Can you tell me what I’m doing wrong?
For this automation, I created it by editing my automation.yaml file at the command prompt, yes I have my configuration.yaml broken up into sub files. I am wondering if the UI might be having trouble with the format of the ‘data_template:’ and ‘media_content_id:’. it does have a multiline format with a ending single quote just hanging out at end. I would see if you can get it to work by editing in your configuration.yaml with a text editor first and see what happens. To even make it simpler, remove all the variable stuff as a first pass and just have it play a fixed .mp3 file. Then if that works try to get the hourly variable to work. So create a hello.mp3 file in the directory and try, it took me a while just to get the access to the directory with .mp3 files working :
media_content_id: 'http://192.168.2.242:8123/local/sounds/cuckoo/hello.mp3'