Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add new filtering properties on old cards #483

Open
wsw70 opened this issue Dec 27, 2024 · 9 comments
Open

Cannot add new filtering properties on old cards #483

wsw70 opened this issue Dec 27, 2024 · 9 comments

Comments

@wsw70
Copy link

wsw70 commented Dec 27, 2024

I created a card about 2 or 3 years ago. It is systematically updated to the latest version (currently 1.13.0).

After embracing Labels, I wanted to add a label-based filter to a card. This is how it looks like when opening the editor.

image

When trying to select "Label" from the "Select property" dropdown, I can select it but after a few seconds it vanishes. This is a screenshot quickly snagged when "Label" was still visible:

image

There is no entry for the label.

  • I can add the filer via the YAML and it then shows up in the editor
  • the issue is true for any property - I just ended up discovering it when trying to add a Label
@ccle610
Copy link

ccle610 commented Jan 5, 2025

Also, properties can't be changed anymore. It goes back to the original value after a short time, surprising . . .
Not shure, if the Card will show the Infos, if the property will be true (i.e. Battery below 10%)

@wsw70
Copy link
Author

wsw70 commented Jan 5, 2025

Also, properties can't be changed anymore. It goes back to the original value after a short time, surprising . . . Not shure, if the Card will show the Infos, if the property will be true (i.e. Battery below 10%)

Right. You can still change them in the YAML but the visual editor has a problem.

@ccle610
Copy link

ccle610 commented Jan 5, 2025

But that is only half the truth.
As soon as I exit the YAML editor after saving and call up the card once again, it is the old value again. . . runnung in cyrcles.

@Calzor-Suzay
Copy link

I'm new to Auto entities and I have this exact same problem link from HA forum

The dropdown entries 'vanish'.
Tried with Edge and Chrome.

@Mariusthvdb
Copy link

Mariusthvdb commented Jan 8, 2025

is this only happening with labels?
asking because also in yaml mode, auto-entities chokes on using label as filter, breaking the frontend to a halt

if you want to use labels, create a template filter using filter, the works fine. At least in yaml mode.

@Calzor-Suzay
Copy link

It happens with anything, you basically "Select property" from the drop down, you get the full list and no matter what you pick it does nothing. I'm assuming you pick something then the value field appears but it never does and the select property reverts to blank.

@Mariusthvdb
Copy link

in that case ignore my post above.

and yes I can confirm the UI to be borked, I don't even get past this creating a new card:

Scherm­afbeelding 2025-01-08 om 14 31 15

@der-seemann
Copy link

same here I guess...
Error log:

Logger: frontend.js.modern.202501090
Quelle: components/system_log/init.py:331
Erstmals aufgetreten: 14:14:34 (2 Vorkommnisse)
Zuletzt protokolliert: 14:14:44

Uncaught error from Firefox 134.0 on Ubuntu TypeError: "filter" is read-only _changeFilter (/hacsfiles/lovelace-auto-entities/auto-entities.js:1:33021) _renderFilterEditor/</< (/hacsfiles/lovelace-auto-entities/auto-entities.js:69:46) handleEvent (/hacsfiles/lovelace-auto-entities/auto-entities.js:1:14430) dispatchEvent (src/common/dom/fire_event.ts:75:7) addValueChangedListener (src/components/ha-form/ha-form.ts:210:16) dispatchEvent (src/common/dom/fire_event.ts:75:7) ev.stopPropagation (src/components/ha-form/ha-form-select.ts:68:14) call (src/lit-html.ts:2018:28) dispatchEvent (src/common/dom/fire_event.ts:75:7) fireEvent (src/components/ha-selector/ha-selector-select.ts:293:14)

@iamandymcinnes
Copy link

The issue is with it trying to load the entities constantly, it automatically tries to render them and I think as you start with everything, it just borks everything as it crashes. When you select a filter property it wipes it out as it starts trying to refresh the entity list. My suggestion would be stop refreshing the entity list all the time when using the editor, either wait for a save or have a manual refresh button so you can update the preview when you are ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants