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

Reset collection date to today for false positive triggers #384

Closed Morphy99 closed 2 years ago

Morphy99 commented 2 years ago

Before you submit a new bug report, please check that

Write your question here

I have come across a scenario where my bin will be moved (not collected) which will in turn trigger the "collected" automation and reset my sensor.waste_black_bin to 2 again. I'd like to be able to set the input select which controls the stage of bin collection back to "collection ready" but my "collected" automation is set to only trigger with a condition of "0" to eliminate false positives the day before so I need to reset it back to today. Could I use garbage_collection.add_date with a template for today's date?

bruxy70 commented 2 years ago

No, you can't add a date that already exists. But you can set the last_collection to the future (e.g. midnight) and it should reset the state back to "today".