Releases: bruxy70/Garbage-Collection
Not everybody loves calendars :(
I pushed calendar creation to the entity updates, and only call it if the entity has to be added.
So if you do not like the calendar, make all entities hidden
.
Calendar! Move collection to next day! General improvements.
New features
Calendar
This is a major release - adding a 'Garbage Collection' calendar to HA. This allows you to check not only the next coming collection but also check all past and future collections!
A large portion of code was refactored (and hopefully improved), it should run faster and better.
There is also a new attribute hidden
if for the entities you'd like to hide from the calendar (useful for calendars included in groups, so they do not show twice).
If you would like to let me know that you like it, you can always
Move collection to next day
#162 - Move collection day to next day if a holiday in the week - @hasenbolle
Changes
The entities now use custom device class, which should improve handling translations.
General stability and speed improvements. The integration is now more granular and uses async methods more.
Release candidate?
Fixing loading of holidays in the calendar (it was loading from today onwards).
Also added a new attribute hidden
, that will hide the sensor from the calendars (useful for sensors used in groups)
General improvements
Calendar getting all collection dates + automatic next date for holidays
The calendar now reads all collection events, not just the next one.
This required quite brutal code refactoring of the sensor integration, as it has to be able to find a date from any generic data (including re-calculating groups). And the integration is now creating a structure of all entities so that it can query them at any time. So I will leave it for a while in beta to make sure it works. Thanks to @hasenbolle for the suggestion - I thought about that initially but decided to be lazy, this gave me a kick.
Anyhow, two other changes. @hasenbolle contributed a new attribute holiday_in_week_move
, that automatically moves the collection to the next day if the collection comes to holiday.
And I changed (added) the device class, which might help with the translation issues reported in #142
Small improvememts
Reducing debug logs. General improvements to the sensor update.
Home Assistant Calendar
Major feature
Adding Home Assistant calendar. So that the next collections for each calendar will show in Garbage Collection Calendar. And there will also be a new calendar created, with the next event.
I am looking forward to your feedback. Does it work? Is it useful? Any suggestions?
Please write in the issue #161.
Thanks!
Considerations/Limitations
In the ConfigFlow, HA does not allow me to have a common configuration for the garbage_collection platform (because the sensors are not physical devices that are not discovered, I have to add each entity as new integration (since there is no way in HA to manually add new "devices" into one integration - there is no place for common configuration).
Because of that, there is no place to configure the calendar name :(. So it is hard-coded.
The alternative would be to create a calendar for each schedule, that would not work I suppose.
Merging options back with data
Fix
Fixing issue #158
I thought this was fixed in the last release, but HA is fighting back. When the integration is configured, it saves it in data. But when the configuration is changed, it saves it in options.
I am merging the two places to keep the config in data, and keep options clean.
Stability improvements
Changes
No new functionality. General speed and stability improvements. Further improving ConfigFlow and improved configuration issues introduced in previous versions.
ConfigFlow improvement
I have noticed, that the configuration creates 2 copies - in data and options. Different parts of code used one or the other. This has been fixed. Options is removed.
Also, minor improvements in OptionsFlow and confusion about sensor name.
Testers welcome. Thanks.
Fix compatibility with old config option configuration for monthly frequency
Fix
Fix the clean-up process #151