1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

feat: add waste collection schedule

This commit is contained in:
oddlama 2025-01-29 22:12:50 +01:00
parent 40ce6c041e
commit 47c21d3436
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 36 additions and 0 deletions

View file

@ -118,11 +118,47 @@ in
organization = "home";
bucket = "hass";
};
waste_collection_schedule = {
sources = [
{
name = "ics";
args.url = "!secret muell_ics_url";
calendar_title = "Abfalltermine";
customize = [
{
type = "Restmüll 2-wöchentlich";
alias = "Restmüll";
}
{
type = "Papiertonne 4-wöchentlich";
alias = "Papiermüll";
}
];
}
];
};
sensor = [
{
platform = "waste_collection_schedule";
name = "restmuell_upcoming";
value_template = "{{value.types|join(\", \")}}|{{value.daysTo}}|{{value.date.strftime(\"%d.%m.%Y\")}}|{{value.date.strftime(\"%a\")}}";
types = [ "Restmüll" ];
}
{
platform = "waste_collection_schedule";
name = "papiermuell_upcoming";
value_template = "{{value.types|join(\", \")}}|{{value.daysTo}}|{{value.date.strftime(\"%d.%m.%Y\")}}|{{value.date.strftime(\"%a\")}}";
types = [ "Papiermüll" ];
}
];
};
extraPackages =
python3Packages: with python3Packages; [
adguardhome
aioelectricitymaps
dwdwfsapi
fritzconnection
getmac