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:
parent
40ce6c041e
commit
47c21d3436
4 changed files with 36 additions and 0 deletions
|
@ -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
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue