Maybe this wil help
alias: 'Alarm: When armed'
description: ''
trigger:
- type: motion
platform: device
device_id: 3be4d4b54eda4d20bda8433788d2ac4c
entity_id: binary_sensor.hue_motion_sensor_1_motion
domain: binary_sensor
- type: motion
platform: device
device_id: 61d5d87c13b411ebae2fa5bdae758eaa
entity_id: binary_sensor.hue_motion_sensor_2_motion
domain: binary_sensor
- type: opened
platform: device
device_id: 78b0836df59ec4fc9edcbf2f834cd27d
entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_door_window_detector_sensor
domain: binary_sensor
- type: motion
platform: device
device_id: 6ecbd67b80a176d0ccf781495c064b53
entity_id: binary_sensor.motion_sensor_beneden
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
condition:
- condition: state
entity_id: alarm_control_panel.ha_alarm
state: armed_away
action:
- service: script.turn_on
target:
entity_id: script.flash_alarm_lights
- service: notify.mobile_app_sm_g970f
data:
message: Beweging gedetecteerd thuis!!!
data:
priority: high
ttl: 0
- service: media_player.volume_set
data:
volume_level: 1
entity_id: group.google_speakers
- service: media_player.play_media
data:
media_content_id: https://wolfpins.duckdns.org/local/inbraak_alarm.mp3
media_content_type: áudio/mp3
entity_id: group.google_speakers
- service: notify.mobile_app_sm_g970f
data:
message: TTS
title: There is someone in your hous,kill him
data:
LedColor: red
channel: alarm_stream_max
priority: high
ttl: 0
- service: notify.mobile_app_sm_g780g
data:
title: There is someone in your hous,kill him
message: TTS
data:
LedColor: red
channel: alarm_stream_max
priority: high
ttl: 0
- service: notify.mobile_app_sm_g780g
data:
message: Er is iemand binnen
data:
priority: high
ttl: 0
- service: input_boolean.turn_on
data:
entity_id: input_boolean.schakel_alarm
mode: single