mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-24 00:56:16 +01:00
27 lines
557 B
Nix
27 lines
557 B
Nix
|
{
|
||
|
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";
|
||
|
}
|
||
|
];
|
||
|
}
|