mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 17:46:14 +01:00
5b85429327
Signed-off-by: main <magic_rb@redalder.org> Signed-off-by: Magic_RB <magic_rb@redalder.org>
29 lines
577 B
Nix
29 lines
577 B
Nix
{
|
|
alias = "Alarm - Trigger when motion detected - Home";
|
|
id = "972bccd8-a68c-48fc-ac90-ebbeb87c64b9";
|
|
|
|
trigger = [
|
|
{
|
|
platform = "state";
|
|
entity_id = "binary_sensor.sensor_entry_door_contact";
|
|
to = "on";
|
|
}
|
|
];
|
|
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";
|
|
}
|
|
];
|
|
}
|