Closed Patrick762 closed 1 year ago
If someone wants to test, here's the js file:
Hi Patrick.
Thanks for this improvement. I tried it out and it works.
I also thought about such extension. Another variant would be to not directly show the history but allow to configure a navigation. Similar like dashboard_link:
. Maybe the logic could be, that if e.g. battery_link
is configured this should be used. And if no link is configured we show the history.
Stupid question time.. how can i access this code in HA?
I have tested this by copying and replacing the .js file inside the www/community folder. Not sure what to do with the .js.gz file, so I just deleted this?! It works very well. Just a small issue: the mouse pointer does not change on hover so it does not appear as clickable.
And for me unfortunately it does not work in the HA app on Android. But maybe that is an issue with the cache?
i must be super thick i cant work out where the code is to copy .. in git hub.
New version with pointer @mb-software :
I had to try another filename for every new version (to prevent caching). Maybe that's the problem on your Android app @mb-software
The PR after this will be a CSS cleanup
Great, the mouse cursor works. I could solve the problem in the app by clearing the app cache. Just one more thing: For grid I have separate entities configured for consumption and production. When clicking the grid circle, it always open the details view of the production entity. I dont know if and how it would be possible to differentiate both?
Did you get any response from @ulic75 ? Can the PR be merged so we can update via HACS? Or should we rather switch to your fork for any further improvements?
I have tried to post elsewhere, but currently I don't plan to offer additional features with this card. I hope to be able to maintain feature parity with the official Energy Distribution card, and to maintain any existing features that are above on beyond. But I simply lack the time (and currently the desire) necessary to ensure additional features such as this PR are functional and maintained. I know this may disappoint many, but it's just the where things are are right now.
That said I have no problem if someone wants to fork the project and create their own card based on my work (which is mostly based on the work of the HA team :))
I alredy started with a similar card (without the water circle) with the components splitted (easier to maintain than one file). I'll link it here once it's stable if it's ok for you @ulic75
@Patrick762 I don't mind you sharing a link to your fork if that is what you're talking about. I'd prefer not just linking zip files as this isn't the appropriate place to carry on conversations about you changes. I didn't say so early, but I do appreciate your wanting to chip in.
Any beta version of this, rather than manual zip installs?
I'll create a new fork with the changes. All changes from now on are only in the fork. I'll also close this PR
This PR opens the typical Home Assistant Entity Details Popup if any of the circles is clicked (except the Home circle)