From 9a491e25962e3446c37604a658288092850dc995 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 --- .../devices/headless/server/home-assistant/README.md | 4 ++-- .../devices/headless/server/home-assistant/default.nix | 2 +- .../devices/headless/server/home-assistant/dirigera.nix | 4 ++-- .../devices/headless/server/home-assistant/discord.nix | 1 + .../devices/headless/server/home-assistant/lovelace.nix | 2 +- 5 files changed, 7 insertions(+), 6 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..2482e391 100644 --- a/configuration/devices/headless/server/home-assistant/default.nix +++ b/configuration/devices/headless/server/home-assistant/default.nix @@ -52,7 +52,7 @@ in { ]; }; - customComponents = [ pkgs.home-assistant-custom-components.localtuya ]; + customComponents = [ pkgs.home-assistant-custom-components.dirigera_platform pkgs.home-assistant-custom-components.localtuya ]; config = { homeassistant = { diff --git a/configuration/devices/headless/server/home-assistant/dirigera.nix b/configuration/devices/headless/server/home-assistant/dirigera.nix index 68f187fa..c88091e8 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 = [{ trigger = "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 = [{ trigger = "state"; - entity_id = "binary_sensor.reduit_parasoll_contact"; + entity_id = "binary_sensor.reduit_parasoll"; to = "off"; }]; action = [{ diff --git a/configuration/devices/headless/server/home-assistant/discord.nix b/configuration/devices/headless/server/home-assistant/discord.nix index 42958004..d6e186f7 100644 --- a/configuration/devices/headless/server/home-assistant/discord.nix +++ b/configuration/devices/headless/server/home-assistant/discord.nix @@ -44,6 +44,7 @@ "sensor.mystrom_button_orange_battery" "sensor.mystrom_button_purple_battery" "sensor.mystrom_button_white_battery" + "sensor.reduit_parasoll_battery_percentage" "sensor.valve_blue_battery" "sensor.valve_green_battery" "sensor.valve_orange_battery" diff --git a/configuration/devices/headless/server/home-assistant/lovelace.nix b/configuration/devices/headless/server/home-assistant/lovelace.nix index bdf6812e..f924a784 100644 --- a/configuration/devices/headless/server/home-assistant/lovelace.nix +++ b/configuration/devices/headless/server/home-assistant/lovelace.nix @@ -415,7 +415,7 @@ in { entities = [{ name = "Reduit Parasoll"; - entity = "sensor.reduit_parasoll_battery"; + entity = "sensor.reduit_parasoll_battery_percentage"; }]; collapse = [