2022-08-26 17:45:13 +02:00
|
|
|
{
|
2022-12-20 22:49:08 +01:00
|
|
|
alias = "Alarm - Trigger when motion detected - Home";
|
2022-08-26 17:45:13 +02:00
|
|
|
id = "972bccd8-a68c-48fc-ac90-ebbeb87c64b9";
|
|
|
|
|
2022-12-20 22:49:08 +01:00
|
|
|
trigger = [
|
|
|
|
{
|
|
|
|
platform = "state";
|
|
|
|
entity_id = "binary_sensor.sensor_entry_door_contact";
|
|
|
|
to = "on";
|
|
|
|
}
|
|
|
|
];
|
2022-08-26 17:45:13 +02:00
|
|
|
condition = {
|
|
|
|
condition = "or";
|
|
|
|
conditions = [
|
|
|
|
{
|
|
|
|
condition = "state";
|
|
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
|
|
state = "armed_home";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
action = [
|
|
|
|
{
|
|
|
|
service = "alarm_control_panel.alarm_trigger";
|
|
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|