feat: grab all collection events in 1 call and dispatch in several sensors after

It becomes a bit of a mess with a lot of dynamically named sensors, and possibly a lot of empty ones.
It adds a bit of a burden on the user to clean-up the mess. :/
This commit is contained in:
Xavier Morel
2025-04-04 18:07:03 +02:00
parent 67016339b3
commit 893043e4ce
7 changed files with 138 additions and 182 deletions

View File

@@ -20,19 +20,19 @@
},
"entity": {
"sensor": {
"garbage_collections_count": {
"garbage_collections_count_current_year": {
"name": "Number of garbage collections"
},
"garbage_collections_total": {
"garbage_collections_total_current_year": {
"name": "Total weight of collected garbage"
},
"latest_garbage_collection": {
"latest_garbage_collection_current_year": {
"name": "Weight of the latest garbage collection"
},
"previous_garbage_collections_count": {
"garbage_collections_count_last_year": {
"name": "Number of garbage collections (last year)"
},
"previous_garbage_collections_total": {
"garbage_collections_total_last_year": {
"name": "Total weight of collected garbage (last year)"
},
"recycling_collections_count": {