The entities are stored in your browsers local storage. Make sure the browser doesn’t clear this data when you close it. If you use multiple different browsers (or profiles) to visit the page, each will have their own independent entity list.
Alternatively you can preconfigure a fixed entity list manually in the YAML that will stay consistent between browsers.
While it looks like the Option “defaultTimeRange” is rather a UI Setting (you can e.g. set 3d, but still scroll back more in Time), noticed that LTS are always cut after the last 365 Days independently from that Setting.
It isn’t possible to extend that max. Timespan, is it?
It is no real big Thing - my Usecase would have been to compare Temperature/Power consumption of the last Month with that one (or maybe two) years ago.
PS: Thanks for that nice Update recently! While keeping my fingers crossed for the statistics settings, the Wildcard Feature e.g. is a pretty cool new Option!
Yeah the client side cache size is 365 days, so you can’t really see anything prior to that time frame. To be honest, in the dev version of the card I use on my system, I set the cache size to 3 years, because I have exactly the same use case as you. That comes with a number of problems, mostly around memory use on the client browser (mobile !). The cache uses quite some memory and the access patterns are not very CPU cache friendly. This is mostly problematic on lowend devices, such as cheap tablets. But a lot of people use these for things like wall panels. That’s why I haven’t done this in the release version.
Two possibilities:
Make cache size configurable in YAML. Easy, but requires user intervention for timeframes >1year.
Make the cache auto-grow as needed. That would be my preferred option, but it’s (a little) more work.
It’s not the cache. It’s what is called ‘Local Storage’. Check your browser privacy settings. When surfing in private mode, or with strict privacy presets, local storage may be cleared on close or logout. This is a browser thing, there’s nothing the card can really do about this.
Well, i think the Point regarding Memory/CPU usage on low-end-devices is valid.
Personally, i think lifting the Limit via YAML would preferable.
If using such a low-end Device, it wouldn’t make sense to make it auto-grow, as it would lead to Performance-Issues anyway, wouldn’t it?
Oh my, this is such a great Card! Just love it. And still, there are so many Things more possible to think of Ever thought about Offsetting Date on Entity-Base? This way, one could overlay e.g. last Years Values for easy comparison, or compare Yesterdays Temperature with todays… I wish i could not only suggest Features, but contribute…
Only if you actually went back that far. A hard limit in the YAML would just cut off the graph at the limit (pretty much the same as it currently does after a year). A soft limit would autogrow once you go past the limit and would possibly become a bit less smooth on a low end device once you pass the limit.
That’s actually an existing FR. It’s not that trivial, as it requires multiple disjoint database requests for the offset time parts. But it would be nice to have at some point.
Yeah well, the visual rendering part is trivial to add. Getting the data in entity attributes is a bit more problematic performance wise. Requesting attributes from the DB used to be excruciatingly slow. But there have been lots of performance improvements on the database backend in recent HA versions, so maybe this will need to be reevaluated.
Perhaps could be overcomed by creation of template sensor that would use attribute of other entity as its state? I know, unnecessary multiplication of entities, but if it helps…
I notice that when I open a pop-up window that uses the history explorer card and the default is 1 day everything shows up as expected (which I’m OK with as the default and want to stay) but as soon as I click the drop down to select a shorter time frame (ex 1 hour) the card doesn’t show the last hour from now. It pops back in time to about 12 hours earlier and shows that hour. I then have to scroll all the way to the right to see the data for the current hour.
is that the expected behavior? can that be changed somehow?
the scrolling to get to where I want to see the data gets a bit tedious if I’m looking at several graphs.
thanks. I didn’t know that would do that. It definitely saves some scrolling time.
But why is the default behavior to show a time in the past when changing the time scale to a smaller slice of time? Is there some technical limitation that requires it?
Logically I think making the default to always show the most recent time (now) for the graph when changing the scale would make the most sense.
Hey guys, love this Card!
Is it possible to configure the grid?
For example for my temperature value graph i have specified ymin and ymax from 16 to 28 degrees. Now i get horizontal gridlines on the yaxis at 16,18,20,22,24,26 and 28 degrees. Is it possible to have a grid line at every single degree?
There is no technical limitation, as far as I remember it just uses the center point for zoom in/out operations. I need to check in the source when I get home, I’m at sea right now with limited access to the internet.
Of course this is correct!
If the display has the current time at it’s right hand point (i.e. the end of the available data), then clicking the + button should zoom in and keep the current time at the right hand end.
This is so obvious I can’t see why it isn’t designed to do this.
For example: