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
parent 1905582e0a
commit fca9454e2a
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
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/triggered.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;
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";
trigger = {