Add tapo_control custom hass component

This commit is contained in:
Evie Litherland-Smith 2025-02-16 12:45:05 +00:00
parent a1dbb153bc
commit 6b62eac2bf
2 changed files with 30 additions and 5 deletions

View file

@ -0,0 +1,19 @@
{
fetchFromGitHub,
buildHomeAssistantComponent,
pytapo,
}:
buildHomeAssistantComponent rec {
owner = "JurajNyiri";
domain = "tapo_control";
version = "5.8.0";
src = fetchFromGitHub {
owner = "JurajNyiri";
repo = "HomeAssistant-Tapo-Control";
rev = version;
hash = "sha256-JNCuWYBlc0kIa6wL1XEZdO/IL5R3Xa8qFBOhA0PooiA=";
};
dependencies = [ pytapo ];
ignoreVersionRequirement = [ "pytapo" ];
}

View file

@ -15,8 +15,10 @@
# Extra integrations
"apple_tv"
"bluetooth"
"ffmpeg" # Tapo
"mobile_app"
"nanoleaf"
"onvif" # Tapo
"proximity"
"prusalink"
"sonos"
@ -24,11 +26,15 @@
"tado"
"tplink_tapo"
];
customComponents = with pkgs.home-assistant-custom-components; [
(dirigera_platform.override {
dirigera = (pkgs.python312Packages.dirigera.overrideAttrs (final: prev: { doCheck = false; }));
})
];
customComponents =
(with pkgs.home-assistant-custom-components; [
(dirigera_platform.override {
dirigera = (pkgs.python312Packages.dirigera.overrideAttrs (final: prev: { doCheck = false; }));
})
])
++ (with pkgs; [
(home-assistant.python.pkgs.callPackage ./customComponents/tapo_control.nix { })
]);
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/