I have this great automation that I use when I leave the house, a simple sensor which detects movements and takes a snap from the camera on the back and pushes on the IOS app, all great (the same code I use for the poor man doorbell)
However I can’t figure out why I cant make it critical notification or assign a custom sound
- id: patio_presence
alias: Patio Presence Detection
hide_entity: true
trigger:
- platform: state
entity_id: binary_sensor.patio_sensor
to: 'on'
action:
- service: camera.snapshot
data_template:
entity_id: camera.patio_camera
filename: '/config/xxx/xxxx/xxxxxxxxxxx_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg'
- service: notify.mobile_app_joes_phone
data_template:
title: "Someone is on the patio"
message: 'Patio at {{now().strftime("%H:%M %d-%m-%y")}} '
data:
attachment:
url: 'https://xxxxxxxxxxxxx.duckdns.org:8123/local/xxx/xxxx/xxxxxxxxxxx_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg'
content-type: png
hide-thumbnail: false
data: #this is the part that doesn't work
push:
sound:
name: default
critical: 1
volume: 1.0 # 0.0 to 1.0