Add octopus_energy custom hass component

This commit is contained in:
Evie Litherland-Smith 2025-02-16 13:01:45 +00:00
parent bde70d0c7b
commit 4a6cbd5ee6
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,18 @@
{
fetchFromGitHub,
buildHomeAssistantComponent,
pydantic,
}:
buildHomeAssistantComponent rec {
owner = "BottlecapDave";
domain = "octopus_energy";
version = "14.0.0";
src = fetchFromGitHub {
owner = "BottlecapDave";
repo = "HomeAssistant-OctopusEnergy";
rev = "v${version}";
hash = "sha256-tBM01ekeiTXEb1UxjbMLi7O5VAJ+4++N6ZxRPcTc6no=";
};
dependencies = [ pydantic ];
}

View file

@ -35,7 +35,10 @@
dirigera = (pkgs.python312.pkgs.dirigera.overrideAttrs (final: prev: { doCheck = false; }));
})
])
++ [ (hassPython.pkgs.callPackage ./customComponents/tapo_control.nix { }) ];
++ (with hassPython.pkgs; [
(callPackage ./customComponents/tapo_control.nix { })
(callPackage ./customComponents/octopus_energy.nix { })
]);
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/