From 3db293005025727aef2b80096e8453ed17511e43 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 6 Oct 2022 09:56:01 -0700 Subject: [PATCH] chore: homekit hass entity filter --- nixos/systems/tewi/home-assistant.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/systems/tewi/home-assistant.nix b/nixos/systems/tewi/home-assistant.nix index a0a6cfc1..e19f7707 100644 --- a/nixos/systems/tewi/home-assistant.nix +++ b/nixos/systems/tewi/home-assistant.nix @@ -179,6 +179,16 @@ name = "Tewi"; port = 21063; ip_address = "10.1.1.38"; + filter = let + inherit (config.services.host-assistant.config) google_assistant; + in { + include_domains = google_assistant.exposed_domains; + include_entities = attrNames (filterAttrs (_: entity: entity.expose or true) google_assistant.entity_config); + }; + entity_config = { + "switch.swb1_relay_3".type = "outlet"; + "switch.swb1_relay_4".type = "outlet"; + }; }; tts = [{ platform = "google_translate";