home-assistant-custom-components.smartir: init at 1.17.9

This commit is contained in:
Zhong Jianxin 2024-04-17 21:00:03 +08:00
parent 5b18541d0a
commit 4eddeb46c4
2 changed files with 40 additions and 0 deletions

View File

@ -38,6 +38,8 @@
sensi = callPackage ./sensi {};
smartir = callPackage ./smartir {};
smartthinq-sensors = callPackage ./smartthinq-sensors {};
waste_collection_schedule = callPackage ./waste_collection_schedule {};

View File

@ -0,0 +1,38 @@
{ lib
, buildHomeAssistantComponent
, fetchFromGitHub
, aiofiles
, broadlink
}:
buildHomeAssistantComponent rec {
owner = "smartHomeHub";
domain = "smartir";
version = "1.17.9";
src = fetchFromGitHub {
owner = "smartHomeHub";
repo = "SmartIR";
rev = version;
hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic=";
};
propagatedBuildInputs = [
aiofiles
broadlink
];
dontBuild = true;
postInstall = ''
cp -r codes $out/custom_components/smartir/
'';
meta = with lib; {
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)";
homepage = "https://github.com/smartHomeHub/SmartIR";
maintainers = with maintainers; [ azuwis ];
license = licenses.mit;
};
}