feat: home-assistant changes

This commit is contained in:
2024-12-01 11:42:34 +01:00
parent 03eaa38a08
commit 1c4cc1e393
9 changed files with 458 additions and 102 deletions

View File

@@ -0,0 +1,18 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ha-bermuda";
version = "0.7.2"; # Replace with the latest version
src = fetchFromGitHub {
owner = "agittins";
repo = "bermuda";
rev = "v${version}";
sha256 = "sha256-FBmZc2I9JoLAQ55yasa0i+SM0dMg2IbR3AaKgEybRu8="; # Replace with the correct SHA256 hash
};
installPhase = ''
mkdir -p $out
cp -r custom_components/bermuda $out/
'';
}

View File

@@ -0,0 +1,27 @@
{ lib
, buildHomeAssistantComponent
, fetchFromGitHub
}:
buildHomeAssistantComponent rec {
owner = "hacs";
domain = "hacs";
version = "2.0.1"; # Replace with the latest version
src = fetchFromGitHub {
owner = "hacs";
repo = "integration";
rev = version;
sha256 = ""; # You'll need to fill this in
};
propagatedBuildInputs = [
# Add any required dependencies here
];
meta = with lib; {
homepage = "https://github.com/hacs/integration";
license = licenses.mit;
description = "HACS (Home Assistant Community Store)";
};
}

View File

@@ -20,12 +20,12 @@ buildNpmPackage rec {
runHook preInstall
mkdir $out
cp scheduler-card.js $out
cp card-mod.js $out
runHook postInstall
'';
passthru.entrypoint = "scheduler-card.js";
passthru.entrypoint = "card-mod.js";
meta = with lib; {
description = "This is a Lovelace card for Home Assistant that can be used to create a time schedule for your smart devices. You can create new rules, modify existing rules and temporarily disable rules.";

View File

@@ -6,7 +6,7 @@
}:
buildHomeAssistantComponent rec {
owner = "KartoffelToby";
owner = "nielsfaber";
domain = "scheduler";
version = "3.3.7";