mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 09:36:14 +01:00
wip!!!!!
Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
parent
7e677df145
commit
286c4f7a68
|
@ -109,6 +109,21 @@
|
|||
alarm_control_panel = import ./home-assistant/alarm_control_panel.nix;
|
||||
frontend.themes =
|
||||
{ };
|
||||
sensor = [
|
||||
{
|
||||
platform = "time_date";
|
||||
display_options = [
|
||||
"time"
|
||||
"date"
|
||||
"date_time"
|
||||
"date_time_utc"
|
||||
"date_time_iso"
|
||||
"time_date"
|
||||
"time_utc"
|
||||
"beat"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
package =
|
||||
(pkgs.home-assistant.override
|
||||
|
|
|
@ -29,5 +29,14 @@
|
|||
service = "alarm_control_panel.alarm_trigger";
|
||||
entity_id = "alarm_control_panel.home_alarm";
|
||||
}
|
||||
{
|
||||
service = "camera.record";
|
||||
entity_id = "camera.mirror_camera";
|
||||
data = {
|
||||
lookback = 30;
|
||||
duration = 30;
|
||||
filename = "/media/cctv-{{ states('sensor.date_time') }}.mp4";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue