From f7b65f2290ee7f2838f5b57a8d833e41afcf0419 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Thu, 29 Aug 2024 10:02:16 +0000 Subject: [PATCH] home-assistant-custom-components.solis-sensor: init at 3.6.0 --- .../custom-components/default.nix | 2 ++ .../solis-sensor/default.nix | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/solis-sensor/default.nix diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix index 7d6f885481d9..409c39f5154b 100644 --- a/pkgs/servers/home-assistant/custom-components/default.nix +++ b/pkgs/servers/home-assistant/custom-components/default.nix @@ -58,6 +58,8 @@ smartthinq-sensors = callPackage ./smartthinq-sensors {}; + solis-sensor = callPackage ./solis-sensor {}; + somweb = callPackage ./somweb {}; spook = callPackage ./spook {}; diff --git a/pkgs/servers/home-assistant/custom-components/solis-sensor/default.nix b/pkgs/servers/home-assistant/custom-components/solis-sensor/default.nix new file mode 100644 index 000000000000..544223b43080 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/solis-sensor/default.nix @@ -0,0 +1,28 @@ +{ + lib, + fetchFromGitHub, + buildHomeAssistantComponent, + aiofiles, +}: + +buildHomeAssistantComponent rec { + owner = "hultenvp"; + domain = "solis"; + version = "3.6.0"; + + src = fetchFromGitHub { + owner = "hultenvp"; + repo = "solis-sensor"; + rev = "v${version}"; + sha256 = "sha256-DIUhUN1UfyXptaldJBsQEsImEnQqi4zFFKp70yXxDSk="; + }; + + dependencies = [ aiofiles ]; + + meta = with lib; { + description = "Home Assistant integration for the SolisCloud PV Monitoring portal via SolisCloud API"; + homepage = "https://github.com/hultenvp/solis-sensor"; + license = licenses.asl20; + maintainers = with maintainers; [ jnsgruk ]; + }; +}