mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add HASS bambulab integration and some other components
This commit is contained in:
parent
8277a85746
commit
0edc440f81
2 changed files with 52 additions and 6 deletions
31
hosts/sausebiene/hass-components/ha-bambulab.nix
Normal file
31
hosts/sausebiene/hass-components/ha-bambulab.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildHomeAssistantComponent,
|
||||||
|
fetchFromGitHub,
|
||||||
|
cloudscraper,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildHomeAssistantComponent rec {
|
||||||
|
owner = "greghesp";
|
||||||
|
domain = "bambu_lab";
|
||||||
|
version = "2.0.40";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "greghesp";
|
||||||
|
repo = "ha-bambulab";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-ygbNq7B/ZBQ8/al9ADPSru+VpzmMESwxhKA0YkKKOrE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
cloudscraper
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/greghesp/ha-bambulab/releases/tag/v${version}";
|
||||||
|
description = "A Home Assistant Integration for Bambu Lab Printers";
|
||||||
|
homepage = "https://github.com/greghesp/ha-bambulab";
|
||||||
|
maintainers = with lib.maintainers; [ oddlama ];
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
|
@ -35,16 +35,30 @@ in
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraComponents = [
|
extraComponents = [
|
||||||
"radio_browser"
|
|
||||||
"met"
|
|
||||||
"esphome"
|
"esphome"
|
||||||
"fritzbox"
|
"fritzbox"
|
||||||
"soundtouch"
|
|
||||||
"spotify"
|
|
||||||
"matter"
|
"matter"
|
||||||
#"zha"
|
"met"
|
||||||
"mqtt"
|
"mqtt"
|
||||||
"ollama"
|
"ollama"
|
||||||
|
"radio_browser"
|
||||||
|
"soundtouch" # Bose SoundTouch
|
||||||
|
"spotify"
|
||||||
|
"webostv" # LG WebOS TV
|
||||||
|
#"zha"
|
||||||
|
];
|
||||||
|
|
||||||
|
customComponents = with pkgs.home-assistant-custom-components; [
|
||||||
|
(pkgs.home-assistant.python.pkgs.callPackage ./hass-components/ha-bambulab.nix { })
|
||||||
|
(philips_airpurifier_coap.overrideAttrs (_: rec {
|
||||||
|
version = "0.34.0";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "kongo09";
|
||||||
|
repo = "philips-airpurifier-coap";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-jQXQdcgW8IDmjaHjmeyXHcNTXYmknNDw7Flegy6wj2A=";
|
||||||
|
};
|
||||||
|
}))
|
||||||
];
|
];
|
||||||
|
|
||||||
customLovelaceModules =
|
customLovelaceModules =
|
||||||
|
@ -103,8 +117,8 @@ in
|
||||||
# organization = "home";
|
# organization = "home";
|
||||||
# bucket = "home_assistant";
|
# bucket = "home_assistant";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages =
|
extraPackages =
|
||||||
python3Packages: with python3Packages; [
|
python3Packages: with python3Packages; [
|
||||||
psycopg2
|
psycopg2
|
||||||
|
@ -114,6 +128,7 @@ in
|
||||||
zlib-ng
|
zlib-ng
|
||||||
pymodbus
|
pymodbus
|
||||||
pyipp
|
pyipp
|
||||||
|
pyatv
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue