diff --git a/pkgs/servers/home-assistant/custom-components/solarman/package.nix b/pkgs/servers/home-assistant/custom-components/solarman/package.nix new file mode 100644 index 000000000000..2ae609686f98 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/solarman/package.nix @@ -0,0 +1,33 @@ +{ + buildHomeAssistantComponent, + fetchFromGitHub, + lib, + pysolarmanv5, + pyyaml, +}: + +buildHomeAssistantComponent rec { + owner = "StephanJoubert"; + domain = "solarman"; + version = "1.5.1"; + + src = fetchFromGitHub { + owner = "StephanJoubert"; + repo = "home_assistant_solarman"; + tag = version; + hash = "sha256-+znRq7LGIxbxMEypIRqbIMgV8H4OyiOakmExx1aHEl8="; + }; + + dependencies = [ + pysolarmanv5 + pyyaml + ]; + + meta = { + description = "Home Assistant component for Solarman collectors used with a variety of inverters"; + changelog = "https://github.com/StephanJoubert/home_assistant_solarman/releases/tag/${version}"; + homepage = "https://github.com/StephanJoubert/home_assistant_solarman"; + maintainers = with lib.maintainers; [ Scrumplex ]; + license = lib.licenses.asl20; + }; +}