mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix: remove duplicate light clusters from HomeKit
This commit is contained in:
parent
9afd0ac2bd
commit
dbef8e896d
1 changed files with 6 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue