30 lines
801 B
Nix
30 lines
801 B
Nix
{
|
|
buildHomeAssistantComponent,
|
|
fetchFromGitHub,
|
|
pkgs,
|
|
namespace,
|
|
...
|
|
}:
|
|
buildHomeAssistantComponent rec {
|
|
owner = "SecKatie";
|
|
domain = "wyzeapi";
|
|
version = "0.1.36";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = owner;
|
|
repo = "ha-wyzeapi";
|
|
rev = version;
|
|
hash = "sha256-4i5Ne3LYV7DXn6F6e5MCVZhIdDYR7fe3tT2GeSmYb/k=";
|
|
};
|
|
|
|
# wyzeapy must be built against HA's Python; pkgs.mjallen.wyzeapy uses home-assistant.python
|
|
dependencies = [ pkgs.${namespace}.wyzeapy ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/SecKatie/ha-wyzeapi/releases/tag/${version}";
|
|
description = "This is a custom component to allow control of various Wyze devices in Home Assistant using the unofficial API.";
|
|
homepage = "https://github.com/SecKatie/ha-wyzeapi";
|
|
maintainers = [ ];
|
|
};
|
|
}
|