mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 09:36:14 +01:00
HomeAssistant automation updates
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
1905582e0a
commit
fca9454e2a
|
@ -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 =
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
}
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue