[Under New Management] Interactive history explorer custom card

V1.0.31 can now export long term statistics as a CSV, can zoom out way more (up to 6 months and you can scroll through almost a year worth of history) and has more performance improvements !

2 Likes

Hi,

I have loaded your awesome looking graphing tool into hacs:

I can’t see the card appear in the Dashboard editor. Do I need to add something to my config yaml file to allow this please?

Thanks

If it’s loaded ok, it should automatically add a resource record. You can check that in edit dashboard mode by clicking on the three dots top right and choosing manage resources.

If it’s there, you probably just need to refresh your browser a few times, or clear the cache.

Clearing the cash solved the problem thank you.

that would really be awesome yes!

Had been thinking of a generic browser-mod popup (would have been my first need for that…)

what you show is even better. much better.
So yes please, happy to test run if you need volunteers :wink:

Alright, first test version for the entity info panel override is up ! You will need to install it manually for now, it’s not (yet) on HACS.

New: V1.0.32 with the new info panels is now up on HACS ! See my post below for more info.

You don’t need the latest version of HA installed, it also works fine on older versions.

image

image

3 Likes

How is it activated?

is there a config option to set or will it automatically start working just by installing the new card?

There’s no switch, it will automatically work as soon as you install the dev version of the card. You don’t need to have an actual history explorer custom card on your dashboard either (but I’d suggest trying it out nonetheless :slight_smile:). Make sure to install the dev version though, the one on HACS (V1.0.31) is the normal, stable release and will not activate the experimental override feature. If unsure, check the browser console, it should say Version 1.0.32-dev. If you had the normal version of the history explorer card installed previously, you need to uninstall it first.

1 Like

Just got it installed and restarted HA (added another custom integration at the same time).

I’ll let you know how it works. :slightly_smiling_face:

Looks good so far.

thanks for the update.

It’s sad we keep needing to rely more and more on custom stuff to fix issues that are introduced by poor architectural/design decisions for built-in stuff.

1 Like

Hi.

I have a very “strange” error and my Y minimal value would be zero (because it’s an electric consumption) but in the “history explorer graph” is -1000. Why?

My card configuration is:
type: custom:history-explorer-card
cardName: historycard-67119468
header: hide
uiLayout:
  toolbar: top
  selector: bottom
combineSameUnits: true
showUnavailable: false


but in HA the same chart is:

Apologies if it had mentioned above, but I’m on my mobile and can’t read the full thread… the history explorer card is great, but when using the HA app the card is blank (android). I’m guessing in not the only one with this problem?

The card adds a margin to the yaxis (both upwards and downwards) to give the visualization some headroom in case it over or undershoots. You can turn it off using the axisAddMarginMin and axisAddMarginMax settings. See here.

Alternatively you can also force ymin to 0 for energy sensors. See here.

I’m not aware of any issues with the companion app, it works fine on my test setup. Make sure your Android and Webview version is not too much out of date.

I just tried to add a new entity on the phone and that worked, it just does not bring across the entities I have added on my HA dashboard on my other computer. Its like it is 2 different views.

That’s expected behavior. Entities you add dynamically over the UI are stored in your browser. The same card can display different entities on different browsers, depending on where you add it. If you want to have your card show the exact same graphs on all browsers at any time, then you will have to specify them by hand in the YAML.

Gotcha. Makes sense. Thanks

upon updating…

forget about that, I installed in a backup!.. got to remember not saving those last opened folders…

all working nicely now:

one question (and I know history-explorer card should be able to know, because I FR this in the regular card too…): please check if it would be possible to Not show the history graph, when the entity is not in recorder?

The regular dropdown box only shows available entities. It would be awesome and reason to never even contemplate the core more info, if History-explorer card would filter out those here too!

Good to know it works.

Well yeah, that’s planned. I wrote this override thing in a couple of hours, so it’s far from being a finished and polished feature yet :wink:

1 Like

and yet it already looks so beautiful! as if it has always been like that. magic. thx a lot, and, as always, happy to test run what you throw at us

1 really important thing though: the graph now interpolates, instead of showing absolute state changes?

extremely zoomed in to reveal minute view: