Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
main 2022-12-20 23:25:57 +01:00
parent 7e677df145
commit 286c4f7a68
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 24 additions and 0 deletions

View file

@ -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

View file

@ -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";
};
}
];
}