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

Feature: More than 2 individual devices #453

Closed
wants to merge 7 commits into from

Conversation

MelchMwoan
Copy link

Good afternoon, i have been using this card for a couple of weeks now and i really missed the feature to show more than 2 individual devices inside the card.
So I spent the last couple of nights to implement this feature myself and I am really glad with how it turned out.

When you only implement 2 individual devices, it will just show the card in the old way:
image

But when you configure 3 or more it will automatically add an extra column on the right with the extra individual devices:
image

Minor issues:

  • Animations of the 3 extra devices are a bit jumpy when it goes back to the begin but because they are overlays i currently cant use overflow hidden. (dont mind the total home Wattage, that is due to using the same sensor for the indivs)
    chrome-capture-2024-0-5.webm
  • This code might make the card even heavier than it currently is. I don't know for sure since I never had any issues with either the old or the new variant.

Related issues:
#443 #54

@matze19999
Copy link

Can you please provide the compiled .js file? i tried to compile it with npm, but had no success. :/

@MelchMwoan
Copy link
Author

Sure thing,
power-flow-card-plus.zip
Unzip that folder and the compiled file is in there, cant directly upload a .js file

@matze19999
Copy link

Thank you! 😊

@Kloana001
Copy link

Hello,
Is there a guide on how to install it?
The normal map is displayed.
Only the other entries are missing.
I'm a complete newbie when it comes to HA...
Thank you

@MelchMwoan
Copy link
Author

The best way to install it is by using the manual install https://hacs.xyz/docs/faq/custom_repositories/
But instead of using the .js from the releases you need to use the .js that I sent earlier.

If you installed this card via HACS, you need to remove it from HACS. Otherwise the manual installed one will be overridden with the old one.

You probably need to refresh your cache after the installment.
Other than that the new card should just work.

The configuration of the extra individuals is as easy as using the same configurations you would use for individual1 and individual2, but now you can also use individual3, individual4 and individual5.

Hope this explains it :)

@Kloana001
Copy link

Thank you.
now it worked.
vielen dank.
jetzt hat es geklappt.

@fnxpt
Copy link
Contributor

fnxpt commented Jan 10, 2024

it would be nice to have this even if its not 100% dynamic.. ideally individual services should be an array

@MelchMwoan
Copy link
Author

Closed since the new version of the card already supports multiple individuals

@MelchMwoan MelchMwoan closed this Jan 25, 2024
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

Successfully merging this pull request may close these issues.

4 participants