From 7a17249b9b7b4811813cafba9dc1279f86239038 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 5 Oct 2022 10:41:50 -0700 Subject: [PATCH 1/2] chore: remove empty hass configs the nixos wiki claims that empty component config blocks are deprecated: https://nixos.wiki/wiki/Home_Assistant#Using_components_without_YAML_configuration --- nixos/systems/tewi/home-assistant.nix | 62 +++++++++++++-------------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/nixos/systems/tewi/home-assistant.nix b/nixos/systems/tewi/home-assistant.nix index 960661a3..a5624554 100644 --- a/nixos/systems/tewi/home-assistant.nix +++ b/nixos/systems/tewi/home-assistant.nix @@ -104,38 +104,6 @@ platform = "google_translate"; service_name = "google_say"; }]; - automation = {}; - counter = {}; - device_tracker = {}; - energy = {}; - group = {}; - history = {}; - image = {}; - input_boolean = {}; - input_datetime = {}; - input_number = {}; - input_select = {}; - input_text = {}; - logbook = {}; - map = {}; - media_source = {}; - mobile_app = {}; - my = {}; - person = {}; - scene = {}; - script = {}; - ssdp = {}; - switch = {}; - stream = {}; - sun = {}; - system_health = {}; - tag = {}; - template = {}; - timer = {}; - webhook = {}; - wake_on_lan = {}; - zeroconf = {}; - zone = {}; }; extraPackages = python3Packages: with python3Packages; [ psycopg2 @@ -144,6 +112,36 @@ (aiogithubapi.overrideAttrs (_: { doInstallCheck = false; })) ]; extraComponents = [ + "automation" + "counter" + "device_tracker" + "energy" + "group" + "history" + "image" + "input_boolean" + "input_datetime" + "input_number" + "input_select" + "input_text" + "logbook" + "map" + "media_source" + "mobile_app" + "my" + "person" + "scene" + "script" + "ssdp" + "switch" + "stream" + "sun" + "system_health" + "tag" + "template" + "timer" + "webhook" + "zone" "zha" "esphome" "apple_tv" From 9f38ae62965db56f60f4d442e216d0037f29f072 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 5 Oct 2022 10:45:49 -0700 Subject: [PATCH 2/2] feat: hass scenes/automations via UI --- nixos/systems/tewi/home-assistant.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/systems/tewi/home-assistant.nix b/nixos/systems/tewi/home-assistant.nix index a5624554..94c26119 100644 --- a/nixos/systems/tewi/home-assistant.nix +++ b/nixos/systems/tewi/home-assistant.nix @@ -104,6 +104,12 @@ platform = "google_translate"; service_name = "google_say"; }]; + # https://nixos.wiki/wiki/Home_Assistant#Combine_declarative_and_UI_defined_automations + "automation manual" = [ ]; + "automation ui" = "!include automations.yaml"; + # https://nixos.wiki/wiki/Home_Assistant#Combine_declarative_and_UI_defined_scenes + "scene manual" = []; + "scene ui" = "!include scenes.yaml"; }; extraPackages = python3Packages: with python3Packages; [ psycopg2