ljmerza / our-groceries-card

our groceries lovelace card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The option show_lists not working

Zubredo opened this issue · comments

Thank you for your great work!

I don't geht the option show_lists to work. Using the code

`show_lists:

  • xxx`

in the our groceries card leads to an empty card. I tried several lists ids in several ways of writing (upper case, lower case, etc) but nothing seems to work.

Is there any way you can fix this?

commented

I'm having the same issue - Dev Tools shows the list names being returned even with correct activeCount, but actual shopping list items don't display for the card.

Can note though, if I remove the show_lists completely, then all lists do actually display OK. So it is a something to do with the that filter.

It works, but you cannot use the name of the shopping list, you have to use the id of the shopping list. You can find the id in developer tools/states:

shopping_lists: 
- activeCount: 0
  name: Shopping
  id: wGFJ5tcmYRCAxAcd4CU7K3
- activeCount: 3
  name: ToDo
  id: WhZfgo9fQnIo0toUhLVDaD
commented

Thanks, that worked 100%. I think the problem was the readme.md file shows what looks like a name in the sample code, but I see now further down where entities are described, it actually does say this: "list of list ids to only show on card".

Think the readme.md just needs to expand with that entity description, where to find the ID, and then also in the sample code to rather show something like "- WhZfgo9fQnIo0toUhLVDaD".

Yeah, I eventually found that (I don't know why I was thinking it was CHROME's developer tools instead of HA's!) ... and I'm all good now. Thank you guys for this thread.