flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
501 stars 59 forks source link

[BUG] visual editor not supported #556

Closed kimbo1st closed 2 months ago

kimbo1st commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Add Card
  2. Has already some preconfigured entities
  3. It already states the error: _a.entries is not a function. (In '_a.entries()', '_a.entries' is undefined)
  4. Yaml code editor can be done but still the error appears.

Expected behavior Visual editor to be available

Smartphone (please complete the following information):

Additional context Latest HA version 2024.4.3 running in Docker. Also updated to he last version of your app.

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.

flixlix commented 2 months ago

Do you have card mod installed?

kimbo1st commented 2 months ago

Do you have card mod installed?

Yes I have

flixlix commented 2 months ago

What happens if you uninstall it?

(Make sure to clear your browser cache after uninstalling and refreshing the page)

AshaiRey commented 2 months ago

Rename card-mod.js to something else Clear files from browser cache Close browser Reopen brower

This will fix the issue

Chimpepe commented 2 months ago

Same Issue here, no card mod installed

Bildschirmfoto 2024-04-15 um 21 22 38
kimbo1st commented 2 months ago

Rename card-mod.js to something else Clear files from browser cache Close browser Reopen brower

This will fix the issue

Will this stop card-mod to work or it just replaces it to a newer version?

AminShAT commented 2 months ago

Many problems after upgrade from v1.8 to v2.0 here:

Settings of individual entries like changing name or icon via GUI has no effect, only works in yaml.

Can't add the EVCS of Victron anymore. Used the same sensor, that worked in v1.8.

flixlix commented 2 months ago

@AminShAT Check #551

Fixed in v0.2.1

flixlix commented 2 months ago

@Chimpepe this is because your config still contains individual1 and individual2, which are now not supported anymore. Please remove these and add them with the ui editor

Chimpepe commented 2 months ago

Okay, removed these two individual but still no visual editor

image

PottiMc commented 2 months ago

I have no GUI too, uninstalled card-mod completely (including dashboard resources and frontend link in configuration.yaml). The error is the same "s. entries is not a function".

Version 2024.4.3 Power Flow Card Plus on 2.0.1

flixlix commented 2 months ago

You might need to restart HA and clear your cache for the changes to apply

PottiMc commented 2 months ago

Card-Mod was not the problem. Browser mod was also not the problem here. I restarted after every single uninstall and cleared the cache. It could be Kiosk Mode oder UI Lovelace Minimalist. Unfortunately I uninstalled them both in one step.

Now the GUI is working fine for me in a NEW Power Flow Card Plus.

flixlix commented 2 months ago

@PottiMc can you try reinstalling each card one by one and see which one has the conflict?

PottiMc commented 2 months ago

It is "UI Lovelace Minimalist" which is messing up. Installed all one by one and have browser-mod, kiosk-mode and card-mod running again. The error occured when installing UI Lovelace Minimalist.

flixlix commented 2 months ago

@PottiMc thank you very much for the help. I was not very familiar with this custom plugin.

I noticed they placed the card-mod source js inside the repo, although it does seem like bad practice to simply place the js from another card inside your own repo (as you can see in this case, files are not kept up to date, causing bugs and frustration to us all...).

Anyway, I created a PR that aims to fix this by updating the card-mod file to version 3.4.3 (latest)

https://github.com/UI-Lovelace-Minimalist/UI/pull/1489

For now I'm closing this issue, because this is a conflict with a third party card and not related to power-flow-card-plus (any card that has entities as an object will get this error). Plus I don't know how long it would take to merge the PR I created.

Thank you once again for the help and sorry for the inconvenience