2022-10-09 01:26:47 +02:00
|
|
|
{
|
|
|
|
alias = "Alarm - Trigger when motion detected - Away";
|
|
|
|
id = "b16e988f-2ee0-4596-a14d-0fda1a95ac2d";
|
|
|
|
|
2022-12-20 22:49:08 +01:00
|
|
|
trigger = [
|
|
|
|
{
|
|
|
|
platform = "state";
|
|
|
|
entity_id = "binary_sensor.motion_sensor_occupancy";
|
|
|
|
to = "on";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
platform = "state";
|
|
|
|
entity_id = "binary_sensor.sensor_entry_door_contact";
|
|
|
|
to = "on";
|
|
|
|
}
|
2023-05-23 10:28:56 +02:00
|
|
|
{
|
|
|
|
platform = "state";
|
|
|
|
entity_id = "binary_sensor.left_window_contact";
|
|
|
|
to = "on";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
platform = "state";
|
|
|
|
entity_id = "binary_sensor.right_window_contact";
|
|
|
|
to = "on";
|
|
|
|
}
|
2022-12-20 22:49:08 +01:00
|
|
|
];
|
2022-10-09 01:26:47 +02:00
|
|
|
condition = {
|
|
|
|
condition = "or";
|
|
|
|
conditions = [
|
|
|
|
{
|
|
|
|
condition = "state";
|
|
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
|
|
state = "armed_away";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
action = [
|
|
|
|
{
|
|
|
|
service = "alarm_control_panel.alarm_trigger";
|
|
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|