HomeAssistant automation updates

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2022-10-09 01:26:47 +02:00 committed by main
parent 5ca647ecdd
commit 270d7af20b
3 changed files with 28 additions and 1 deletions

View file

@ -53,6 +53,7 @@ nglib.makeSystem {
(import ./home-assistant/automations/alarm/disarmed.nix) (import ./home-assistant/automations/alarm/disarmed.nix)
(import ./home-assistant/automations/alarm/triggered.nix) (import ./home-assistant/automations/alarm/triggered.nix)
(import ./home-assistant/automations/alarm/motion-detected.nix) (import ./home-assistant/automations/alarm/motion-detected.nix)
(import ./home-assistant/automations/alarm/motion-detected-away.nix)
]; ];
alarm_control_panel = import ./home-assistant/alarm_control_panel.nix; alarm_control_panel = import ./home-assistant/alarm_control_panel.nix;
frontend.themes = frontend.themes =

View file

@ -0,0 +1,26 @@
{
alias = "Alarm - Trigger when motion detected - Away";
id = "b16e988f-2ee0-4596-a14d-0fda1a95ac2d";
trigger = {
platform = "state";
entity_id = "binary_sensor.motion_sensor_occupancy";
to = "on";
};
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";
}
];
}

View file

@ -1,5 +1,5 @@
{ {
alias = "Alarm - Trigger when motion detected"; alias = "Alarm - Trigger when motion detected - Home/Away";
id = "972bccd8-a68c-48fc-ac90-ebbeb87c64b9"; id = "972bccd8-a68c-48fc-ac90-ebbeb87c64b9";
trigger = { trigger = {