amaximus / garbage-collection-card

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

[BUG] Cannot get display to look the way I want #98

Closed danielbrunt57 closed 1 year ago

danielbrunt57 commented 1 year ago

Describe the bug I want the two cards to look like this:

image

But I have to use hide_date: false to get due_txt: true to work.

cards:
  - type: custom:garbage-collection-card
    entity: sensor.garbage
    icon_color: grey
    due_color: red
    due_1_color: yellow
    due_txt: true
    hide_date: false
    hide_days: false
    hide_on_click: false
    icon_size: 30px
    card_mod:
      class: inline-card
  - type: custom:garbage-collection-card
    entity: sensor.recycling
    icon_color: green
    due_color: red
    due_1_color: yellow
    due_txt: true
    hide_date: true
    hide_days: false
    hide_on_click: false
    icon_size: 30px
    card_mod:
      class: inline-card

And if I use hide_date: false then the display is undesirable when the item is not due tomorrow!

image

With hide_date: true and due_txt: true it looks like this:

image

Expected behavior image

Screenshots

Environment (please complete the following information):

Additional context

amaximus commented 1 year ago

You'll have to use hide_date: true , hide_days: false and due_txt: true for both cards.

danielbrunt57 commented 1 year ago

The problem with that combination is Tomorrow does not display: image

hide_date: true prevents Tomorrowfrom displaying. I would like due_text: true to override the other two options.

danielbrunt57 commented 1 year ago

OMG. After playing with the options I am back to hide_date: true, hide_days: false and due_txt: true and it's displaying correctly now...

image