From e837bf7c755f7f903261c4e06737166785e8c1a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Tue, 1 Oct 2024 19:42:01 +0200 Subject: [PATCH] home-assistant-custom-components.amshan-homeassistant: init at 2024.12.0 --- .../amshan-homeassistant/package.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/amshan-homeassistant/package.nix diff --git a/pkgs/servers/home-assistant/custom-components/amshan-homeassistant/package.nix b/pkgs/servers/home-assistant/custom-components/amshan-homeassistant/package.nix new file mode 100644 index 00000000000000..527d866bb4972a --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/amshan-homeassistant/package.nix @@ -0,0 +1,34 @@ +{ + lib, + fetchFromGitHub, + buildHomeAssistantComponent, + amshan, +}: + +buildHomeAssistantComponent rec { + owner = "toreamun"; + domain = "amshan"; + version = "2024.12.0"; + + src = fetchFromGitHub { + owner = "toreamun"; + repo = "amshan-homeassistant"; + tag = version; + hash = "sha256-L7TGdUjDvIRP9dHIkng9GYwilmRzhGbUK6ivx8PVtQ4="; + }; + + dependencies = [ + amshan + ]; + + meta = { + description = "Home Assistant integration for electricity meters (AMS/HAN/P1)"; + longDescription = '' + The integraiton supports both streaming (serial port / TCP/IP) and MQTT + (Tibber Pulse, energyintelligence.se etc.). + ''; + homepage = "https://github.com/toreamun/amshan-homeassistant"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bjornfor ]; + }; +}