FR: Dynamic (template) graph_span #948
Replies: 3 comments 2 replies
-
|
FWIW, I suppose if my approach to #463 is going to get merged, this should be checked as one of the use cases ('tis been a while since I looked at that code, but I think it should Just Work, provided you figure out the JS/TS side of whatever you want to use to control it). |
Beta Was this translation helpful? Give feedback.
-
|
This can currently be achieved using config-template-card, no need for multiple conditions. |
Beta Was this translation helpful? Give feedback.
-
|
I would like to have the graph_span adapt dynamically to the length of daylight. I'm comparing actual solar production with forecast data and I don't need the graph_span to extend into the night before and after sunrise/sunset. I already have a sensor and number for the daytime length in hours. It would be great if that can be utilised to set the graph_span dynamically. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
originally posted FR here #344 (comment) but it was closed, and Repo seemed quiet.
Now we have active support again, please let me re-FR here
we can currently only hard_code the graph span.
In configs like below, it would be awesome if we could do that with an input_select, and have the chart re-rendered.
Currently we can only do that with a set of conditional cards repeating the same card (yaml anchor), or add extra custom with config-temlpate-card.
Neither are optimal.
Pleas consider doing
and be done with it.
Beta Was this translation helpful? Give feedback.
All reactions