From dbef8e896d8ed874bf1c6e8e2031fbb44eb14441 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Fri, 7 Oct 2022 09:26:01 -0700 Subject: [PATCH] fix: remove duplicate light clusters from HomeKit --- nixos/systems/tewi/home-assistant.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/systems/tewi/home-assistant.nix b/nixos/systems/tewi/home-assistant.nix index f30fb662..407d18a1 100644 --- a/nixos/systems/tewi/home-assistant.nix +++ b/nixos/systems/tewi/home-assistant.nix @@ -184,9 +184,14 @@ in { ip_address = "10.1.1.38"; filter = let inherit (config.services.home-assistant.config) google_assistant; + entities = filterAttrs (_: entity: entity.expose or true) google_assistant.entity_config; in { include_domains = google_assistant.exposed_domains; - include_entities = attrNames (filterAttrs (_: entity: entity.expose or true) google_assistant.entity_config); + include_entities = attrNames (removeAttrs entities [ + # HomeKit is able to group lights together, no need to use the google hack here + "light.living_cluster" + "light.bedroom_overhead" + ]); }; entity_config = { "switch.swb1_relay_3".type = "outlet";