Replies: 1 comment 3 replies
-
Even if you had the value of the date selector, how would you get the value of the meter at those timestamps? Historical values are not available in templates either. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we have a pretty awesome date-time range selector in form of the energy-date-selection card.
The values of this card (start date, end date,...) can currently be used by three types of cards using the "energy_date_selection" variable:
When trying to build custom dashboards, for example to manually visualize and calculate meter readings of a specific timeframe and to use that data in for example Jinja templates for visualizing anything, you'll quickly discover that you cannot use any variables from the energy-date-selection, because it won't expose anything.
I've created a dashboard that shows what this could be used for:

In my opinion this is missing core functionality that currently needs very wonky workarounds or the use of datetime helpers collecting unnecessary data or custom scripting that just builds around existing - but not-exposed data for this kind of front-end visualization.
I've found some related discussions, posts and feature requests that show the need of exposing these data points to avoid more custom trickery for seemingly existing functionality and showing what could be done if this wasn't an issue:
Beta Was this translation helpful? Give feedback.
All reactions