Compare commits
3 Commits
99dd5ec1fe
...
2ef90f25c5
Author | SHA1 | Date | |
---|---|---|---|
2ef90f25c5
|
|||
6c7edf43d1
|
|||
fe9fe3ec51
|
@ -369,12 +369,18 @@
|
||||
];
|
||||
|
||||
extraPackages = python3Packages: with python3Packages; [
|
||||
pyeiscp
|
||||
onkyo-eiscp
|
||||
zeroconf
|
||||
];
|
||||
|
||||
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
||||
bubble-card
|
||||
button-card
|
||||
ha-floorplan
|
||||
mushroom
|
||||
sankey-chart
|
||||
universal-remote-card
|
||||
# zigbee2mqtt-networkmap
|
||||
];
|
||||
};
|
||||
|
||||
|
4
overlays/ha-floorplan.nix
Normal file
4
overlays/ha-floorplan.nix
Normal file
@ -0,0 +1,4 @@
|
||||
final: prev:
|
||||
{
|
||||
home-assistant-custom-lovelace-modules.ha-floorplan = prev.callPackage ../pkgs/ha-floorplan/package.nix;
|
||||
}
|
38
pkgs/ha-floorplan/package.nix
Normal file
38
pkgs/ha-floorplan/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "floorplan";
|
||||
version = "1.0.44";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ExperienceLovelace";
|
||||
repo = "ha-floorplan";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ajEA47H9nFXVcuvhwkDsxc5YYQWMsUXqHQ3t6tuAaxc=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-/6H3XMraD7/usZBwmQaCDpV2n1Eed+U+G0f2YnjyWgk=";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir $out
|
||||
cp -R dist/* $out/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Floorplan for Home Assistant";
|
||||
longDescription = ''
|
||||
Bring new life to Home Assistant. By mapping entities to a SVG-object,
|
||||
you're able to control devices, show states, calling services - and much
|
||||
more. Add custom styling on top, to visualize whatever you can think of.
|
||||
Your imagination just became the new limit.
|
||||
'';
|
||||
homepage = "https://github.com/ExperienceLovelace/ha-floorplan";
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user