2022-08-26 17:45:13 +02:00
|
|
|
{
|
|
|
|
alias = "Alarm - Triggered";
|
|
|
|
id = "6b9c6dac-2c6b-4add-b499-8e2b134e5d9c";
|
|
|
|
|
|
|
|
trigger = [
|
|
|
|
{
|
|
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
|
|
platform = "state";
|
|
|
|
to = "triggered";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
action = [
|
2022-12-20 22:49:08 +01:00
|
|
|
{
|
|
|
|
service = "camera.record";
|
|
|
|
target.entity_id = "camera.mirror_camera";
|
|
|
|
data = {
|
|
|
|
lookback = 30;
|
|
|
|
duration = 30;
|
|
|
|
filename = "/mnt/cctv/cctv-{{ states('sensor.date_time_iso') }}.mp4";
|
|
|
|
};
|
|
|
|
}
|
2022-08-26 17:45:13 +02:00
|
|
|
{
|
|
|
|
data = {
|
|
|
|
message = "Alarm Triggered - Motion Detected!";
|
2022-12-20 22:49:08 +01:00
|
|
|
data = {
|
|
|
|
channel = "Motion";
|
|
|
|
importance = "high";
|
|
|
|
};
|
2022-08-26 17:45:13 +02:00
|
|
|
};
|
|
|
|
service = "notify.mobile_app_redrum";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|