mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-13 02:12:00 +01:00
47ad385ca2
Signed-off-by: Magic_RB <magic_rb@redalder.org>
45 lines
895 B
Nix
45 lines
895 B
Nix
{
|
|
alias = "Alarm - Armed Check Windows";
|
|
id = "8748ce03-2910-468e-8764-8d43604a051d";
|
|
|
|
trigger = [
|
|
{
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
platform = "state";
|
|
to = "armed";
|
|
}
|
|
];
|
|
|
|
condition = {
|
|
condition = "or";
|
|
conditions = [
|
|
{
|
|
condition = "state";
|
|
entity_id = "binary_sensor.left_window_contact";
|
|
state = "on";
|
|
}
|
|
{
|
|
condition = "state";
|
|
entity_id = "binary_sensor.right_window_contact";
|
|
state = "on";
|
|
}
|
|
];
|
|
};
|
|
|
|
action = [
|
|
{
|
|
service = "alarm_control_panel.disarm";
|
|
entity_id = "alarm_control_panel.home_alarm";
|
|
}
|
|
{
|
|
data = {
|
|
message = "Alarm arming failed - Window Open!";
|
|
data = {
|
|
channel = "Motion";
|
|
importance = "high";
|
|
};
|
|
};
|
|
service = "notify.modile_app_redrum";
|
|
}
|
|
];
|
|
}
|