cluster/containers/home-assistant/automations/alarm/motion-detected.nix
Magic_RB ae174de04d
Home Assistant security system bringup
Signed-off-by: Magic_RB <magic_rb@redalder.org>

Update flake.lock

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!!!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!!!!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>

wip!!!!!!!

Signed-off-by: Magic_RB <magic_rb@redalder.org>
2022-09-18 18:32:58 +02:00

32 lines
681 B
Nix

{
alias = "Alarm - Trigger when motion detected";
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";
}
{
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";
}
];
}