bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
382 stars 90 forks source link

Expire After being optional #380

Closed lazodar closed 2 years ago

lazodar commented 2 years ago

Before you submit a new bug report, please check that

Write your question here

Hi there, thank you first of all for your work. In the read.me you say that using the 'Expire After' parameter is optional, but I can't seem to work out how not to use it? Leaving it blank results in 00:00 which is still a time right? To clarify, I want to make a sensor that tells me to clean the filters, until I manually press a button to indicate the filters have been cleaned, and then make the sensor calculate the next date to clean them (30 days later) Hope its clear what I'm trying to achieve, that it is possible with this integration. Kind regards...

bruxy70 commented 2 years ago

It is optional by having a default value. So if you do not configure it, it will automatically expire at the end of the day. It would be difficult to use it for what you want - the calculated schedule is fixed, and it won't keep moving until you confirm that. I'd use a helper for that.

lazodar commented 2 years ago

Ok, I see. Thank you for your answer. I will try to do it some other way.