wingers
(Darren Rose)
December 3, 2024, 3:52pm
1
Hi
How can I make a notification sound / sound when an automation runs, preferably on a specific device?
I have my automations working well to show a pop-up using browser_mod which shows last motion even of a camera, but I want to also play a notification sound on the device.
Home Assistant is running via the Companion App via Fully Kiosk Single App on a Samsung Galaxy Tab A9+
Thanks
wingers
(Darren Rose)
December 3, 2024, 9:39pm
3
wingers:
How can I make a notification sound / sound when an automation runs, preferably on a specific device?
I have my automations working well to show a pop-up using browser_mod which shows last motion even of a camera, but I want to also play a notification sound on the device.
Home Assistant is running via the Companion App via Fully Kiosk Single App on a Samsung Galaxy Tab A9+
Thanks for this.
I have a mp3 (ding.mp3) which I uploaded via Media > my Media > Media Management > Add media.
what is the URL to use to point to this mp3 file in my automation?
wingers
(Darren Rose)
December 4, 2024, 4:08pm
4
Currently use the below but it is hit and miss as to whether I get notification noise on tablet or not, hence wanting to improve it:
alias: test1
description: ""
triggers:
- type: motion
device_id: 0247f6b9c761444b7d1559fec3da3a9b
entity_id: c617ac5f69c2312151f1f4c527f4eb17
domain: binary_sensor
trigger: device
conditions: []
actions:
- type: turn_on
device_id: e4ef52da3ba1454f0be8b94be803617
entity_id: 6a0076cd5614454a46a77f9364905d0914
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
enabled: true
- data:
dismissable: true
autoclose: false
title: Driveway
size: wide
timeout: 30000
browser_id:
- 3523278f5bfa59846de212238c7de298
- c57f46c931d8e07523f144a42adc08a8
- 7a44f87c9b6d1514497a9d4a1aaf222
content:
type: picture-entity
entity: image.driveway_event_image
enabled: true
action: browser_mod.popup
- action: notify.mobile_app_sm_x210_lounge
metadata: {}
data:
message: Motion detected
mode: single
wingers
(Darren Rose)
December 4, 2024, 6:09pm
5
So if I use below - what path do I use for media_content_id to access a ding.mp3 I have via Media > my Media > Media Management > Add media
action: media_player.play_media
target:
device_id: 1710f7496913aefb15083980f380fc8f
data:
media_content_type: music
media_content_id: ???????????????