Skip to content

Commit

Permalink
WIP HS replace ikea home kit integration with dirigera custom component
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Nov 17, 2024
1 parent f9c8d0f commit 2bfbe31
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
- Get `API Token` from <https://discord.com/developers/applications> for `Home Assistant bot`
- ESPHome
- `airgradient-one.local`
- Homekit Device
- `DIRIGERA (Bridge)`
- IKEA Dirigera Hub Integration
- `gw2-3fb2ef61d5a6.local`
- Philips Hue
- `ecb5faac6110.local`
- Rename
Expand Down
14 changes: 13 additions & 1 deletion configuration/devices/headless/server/home-assistant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,19 @@ in {
];
};

customComponents = [ pkgs.home-assistant-custom-components.localtuya ];
customComponents = [
pkgs.home-assistant-custom-components.localtuya

# TODO remove when merged https://nixpk.gs/pr-tracker.html?pr=350542
(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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [{
Expand All @@ -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 = [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ in {

entities = [{
name = "Reduit Parasoll";
entity = "sensor.reduit_parasoll_battery";
entity = "sensor.reduit_parasoll_battery_percentage";
}];

collapse = [
Expand Down

0 comments on commit 2bfbe31

Please sign in to comment.