From 3376c063fbfacb2376702aa799f428a490bf2a81 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sun, 16 Jul 2023 13:17:42 +0200 Subject: [PATCH] Remove HASS automations Signed-off-by: Magic_RB --- .../home-assistant/home-assistant.nix | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/nixng/containers/home-assistant/home-assistant.nix b/nixng/containers/home-assistant/home-assistant.nix index 4bfb5eb..1770116 100644 --- a/nixng/containers/home-assistant/home-assistant.nix +++ b/nixng/containers/home-assistant/home-assistant.nix @@ -71,20 +71,13 @@ makeSystem { ]; media_dirs.local = "/mnt/cctv"; }; - automation = "!include automations.yaml"; - "automation static" = [ - (import ./configs/automations/alarm/pending.nix) - (import ./configs/automations/alarm/disarmed.nix) - (import ./configs/automations/alarm/triggered.nix) - (import ./configs/automations/alarm/retriggered.nix) - (import ./configs/automations/alarm/motion-detected.nix) - (import ./configs/automations/alarm/motion-detected-away.nix) - (import ./configs/automations/bathroom_light/dim.nix) - (import ./configs/automations/bathroom_light/brighten.nix) - (import ./configs/automations/bathroom_light/on.nix) - (import ./configs/automations/bathroom_light/off.nix) - ]; + pyscript = { + allow_all_imports = false; + hass_is_global = true; + }; + + automation = "!include automations.yaml"; alarm_control_panel = import ./configs/alarm_control_panel.nix; frontend.themes = {}; sensor = singleton {