Hi Guys,
I managed to create critical notifications that ring even if my cell phone is silent. Imagine the night I leave the phone silent and the notifications don’t emit sounds, with the sleep I have, I never see the notifications.
With this script instead I can set a sound of my choice and make it play even if I’m in full immersion, silent or other.
alias: Notifica e Snapshot Veranda
description: ""
triggers:
- entity_id:
- binary_sensor.aarlo_motion_veranda
from: "off"
to: "on"
trigger: state
conditions: []
actions:
- delay: "{{ delay }}"
- entity_id: camera.aarlo_veranda
data:
filename: "{{ snapshot_create_file_path }}"
action: camera.snapshot
- device_id: 3d854d2ff83aad786bcd811ae1459cd9
domain: mobile_app
type: notify
title: "{{ notification_title }}"
message: "{{ notification_message }}"
data:
push:
sound: alarm-26718.wav
critical: 1
interruption-level: critical
attachment:
url: "{{ snapshot_access_file_path }}"
content_type: JPEG
mode: single
variables:
motion_sensor: binary_sensor.aarlo_connected_veranda
motion_sensor_name: "{{ states[motion_sensor].name }}"
camera: camera.aarlo_veranda
notify_device: 3d854d2ff83aad786bcd819ae1459cd9
is_ios: true
notification_title: Attenzione!
notification_message: "{{ motion_sensor_name }} ha rilevato una persona!"
delay: 1
snapshot_create_file_path: /config/www/tmp/snapshot_{{ states[camera].object_id }}.jpg
snapshot_access_file_path: "{{ snapshot_create_file_path | replace('/config/www','/local') }}"
But I have a subscription with Arlo that only notifies me when a person is identified, instead with this script in homeassistant ALL notifications are notified, even if a cat passes by.
Do you think there is a way to solve this?
Can I set a script on homeassistant only to receive notifications from Arlo? So I don’t pass for motion entities that triggers every movement detected by the camera.