amaximus / garbage-collection-card

Custom Lovelace card for Garbage Collection custom component
MIT License
127 stars 24 forks source link

How do I unhide a garbage collection entity if I accidentally clicked it? #94

Closed trackzero closed 2 years ago

trackzero commented 2 years ago

Hey there, not sure what I'm missing; but I accidentally clicked my trash-day card and it disappeared. I went in and added hide_on_click: false but that doesn't seem to be enough to bring back the missing sensor. Then I went in through developer tools and set last_collection to null; it blinks in, gets overwritten with today's date immediately.

trackzero commented 2 years ago

Nevermind, figured it out. Went to services and ran:

service: garbage_collection.collect_garbage
data:
  entity_id: sensor.trash
  last_collection: 2022-04-06T10:54:00.000Z
amaximus commented 2 years ago

If you don't need this functinality you may disable it by setting hide_on_click to false. Otherwise the card will reappear after the due day (or if hide_before is set then hide_before days before next due date.