Trouble editing conditionally-displayed dashboard cards

I’ve run into an odd problem using the UI dashboard editor and was wondering if anyone has any suggestions. Basically if you create an auto-entities card with show_empty set to false, then it disappears from the dashboard editor UI – leaving no way to edit it – if the conditions aren’t currently met.

I’ve created a “Sections” style dashboard to display on a “kiosk” wall screen. It usually displays basic things like weather forecast and lighting controls, however I want to have some alerts that appear at the top only if something unusual needs attention (e.g., low batteries, internet issues, etc.). So I’ve been using the “Auto Entities card” which is pretty great. I can, for example, create an auto entities card that shows all of the battery levels that are below, say 15%… and best of all, I can have the card only appear if there are some batteries that are below 15%, using the “show_empty: false” flag.

The problem is, if I do this, then the card disappears not only from the dashboard but even from the dashboard editor screen. So I can’t edit that card (e.g., to change the threshold to 20%) without waiting until a battery drops below 15% and the card reappears. And since I’m using the dashboard editor UI (because I have a lot of other dashboards already that were built this way, etc.), I apparently can’t even go in and edit the YAML to flip on the show_empty flag (because if you use the dashboard UI at all, I guess all dashboards are stored in JSON format rather than YAML…)

Any advice?

Thanks!

You can always edit the yaml. Go into dashboard edit mode then Raw Edit mode (same menu).

Also, You should change Repos, A Community Member has taken over a few “unmaintained” Repos , so the “New” Auto-Entities-Card you find below
GitHub - Lint-Free-Technology/lovelace-auto-entities: 💡 Lint Free Technology fork 💡 Automatically populate the entities-list of lovelace cards · GitHub .

1 Like

Thanks @tom_l ! I guess I’m blind and did not spot the option to do this until you prompted me to go back and search again.

For anyone else confused, it’s not in the edit section for the card or even tab but for the full dashboard:

  1. Click the pencil icon in the top right (“edit dashboard”)
  2. The pencil icon will be replaced with a 3-dot menu. Click this.
  3. From the dropdown menu that appears, click “{ } Raw Configuration editor”

Thanks @boheme61

I’m not sure I follow. Do you mean that the developer of the repository I linked has stopped maintaining it, so someone else has forked it and is updating/maintaining it in a new location?

If so, that makes sense. How do I actually change repositories? I had installed the one I’m using via the HACS UI. Do I just go into the HACS UI and hit “Remove” for that one and then install the new one? Will this break any existing dashboards I have using the original repository?

Thanks!

Yes, He has previously contributed to various cards of thomaslowen , so im sure he has an “agreement/approval” from Thomas, if you look att the timestamp in both, you’ll also see the Diff.

I believe this “new” Fork is already available in HACS , i simply deleted the old, and make sure no “leftovers” and restart, then install the New.
I didn’t notice any differs in my Cards, Just read the Repos , for i.e new features

1 Like

Confirming that display bug was indeed fixed in 2.0.0 in the LFT Fork of auto-entities, along with many performance issues.

You need to use as a custom repository after uninstalling the HACS default version.

2 Likes

Thanks! Got it working!

Just a quick note for anyone else finding this and trying to do the same: switching repositories broke a bunch of my dashboards that included filters based on state but the fix was simple: just change the filter type from state to state_translated and the dashboard will work again!

2 Likes