From 88299805924758ab57a999d4a58a6f45f8005f06 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 8 Apr 2024 20:50:14 +0200 Subject: [PATCH] home-assistant-custom-components.local_luftdaten: init at 2.3.1 Custom component for Home Assistant that integrates your (own) local Luftdaten sensor (air quality/particle sensor) without using the cloud. --- .../custom-components/default.nix | 2 ++ .../local_luftdaten/default.nix | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/local_luftdaten/default.nix diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix index a0946898b28d1..aba723d24bc4d 100644 --- a/pkgs/servers/home-assistant/custom-components/default.nix +++ b/pkgs/servers/home-assistant/custom-components/default.nix @@ -20,6 +20,8 @@ homematicip_local = callPackage ./homematicip_local { }; + local_luftdaten = callPackage ./local_luftdaten { }; + localtuya = callPackage ./localtuya {}; midea-air-appliances-lan = callPackage ./midea-air-appliances-lan {}; diff --git a/pkgs/servers/home-assistant/custom-components/local_luftdaten/default.nix b/pkgs/servers/home-assistant/custom-components/local_luftdaten/default.nix new file mode 100644 index 0000000000000..10a75e14ab705 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/local_luftdaten/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildHomeAssistantComponent +, fetchFromGitHub +}: + +buildHomeAssistantComponent rec { + owner = "lichtteil"; + domain = "local_luftdaten"; + version = "2.3.1"; + + src = fetchFromGitHub { + owner = "lichtteil"; + repo = "local_luftdaten"; + rev = version; + hash = "sha256-68clZgS7Qo62srcZWD3Un9BnNSwQUBr4Z5oBMTC9m8o="; + }; + + meta = with lib; { + changelog = "https://github.com/lichtteil/local_luftdaten/releases/tag/${version}"; + description = "Custom component for Home Assistant that integrates your (own) local Luftdaten sensor (air quality/particle sensor) without using the cloud"; + homepage = "https://github.com/lichtteil/local_luftdaten"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +}