From 795a9469613a42249be6084cbb7bea95e41ff02b Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Wed, 23 Oct 2024 21:09:01 +0200 Subject: [PATCH] WIP HS replace ikea home kit integration with dirigera custom component --- .../headless/server/home-assistant/README.md | 4 ++-- .../headless/server/home-assistant/default.nix | 13 ++++++++++++- .../headless/server/home-assistant/dirigera.nix | 4 ++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/configuration/devices/headless/server/home-assistant/README.md b/configuration/devices/headless/server/home-assistant/README.md index a413cc9f..3f0c79df 100644 --- a/configuration/devices/headless/server/home-assistant/README.md +++ b/configuration/devices/headless/server/home-assistant/README.md @@ -5,8 +5,8 @@ - Get `API Token` from for `Home Assistant bot` - ESPHome - `airgradient-one.local` - - Homekit Device - - `DIRIGERA (Bridge)` + - IKEA Dirigera Hub Integration + - `gw2-3fb2ef61d5a6.local` - Philips Hue - `ecb5faac6110.local` - Rename diff --git a/configuration/devices/headless/server/home-assistant/default.nix b/configuration/devices/headless/server/home-assistant/default.nix index b5551bdc..eb4bfc18 100644 --- a/configuration/devices/headless/server/home-assistant/default.nix +++ b/configuration/devices/headless/server/home-assistant/default.nix @@ -52,7 +52,18 @@ in { ]; }; - customComponents = [ pkgs.home-assistant-custom-components.localtuya ]; + customComponents = [ + pkgs.home-assistant-custom-components.localtuya + + (pkgs.python3Packages.callPackage (import "${ + pkgs.fetchFromGitHub { + owner = "NixOS"; + repo = "nixpkgs"; + rev = "097750eab077606b000f2c68d44225f488073cb8"; + hash = "sha256-abRod/lwME8j9ADG44/FDD62ECN2qOkyqlgGp1FGalo="; + } + }/pkgs/servers/home-assistant/custom-components/dirigera_platform/package.nix") { }) + ]; config = { homeassistant = { diff --git a/configuration/devices/headless/server/home-assistant/dirigera.nix b/configuration/devices/headless/server/home-assistant/dirigera.nix index 1c02feff..d4a1a7c9 100644 --- a/configuration/devices/headless/server/home-assistant/dirigera.nix +++ b/configuration/devices/headless/server/home-assistant/dirigera.nix @@ -71,7 +71,7 @@ alias = "Turn reduit closet lights on when sliding door is open"; trigger = [{ platform = "state"; - entity_id = "binary_sensor.reduit_parasoll_contact"; + entity_id = "binary_sensor.reduit_parasoll"; to = "on"; }]; action = [{ @@ -83,7 +83,7 @@ alias = "Turn reduit closet lights off when sliding door is closed"; trigger = [{ platform = "state"; - entity_id = "binary_sensor.reduit_parasoll_contact"; + entity_id = "binary_sensor.reduit_parasoll"; to = "off"; }]; action = [{