Replies: 4 comments
-
|
You could create a helper date entity and use that to change the global offset or range of the x axis |
Beta Was this translation helpful? Give feedback.
-
|
ok, thank you. The mentioned pull request is now in the dev Version. If i find time i will take a look at it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @LiBe-net I implemented what was requested in this post, namely:
Prerequisites:
I created the following input_datetime helper (to manage the date selector): The UI code for the date selector (tile card) is very simple and looks like this: I then created the following input_select helper (to manage the zoom selector): The UI code for the zoom selector (tile card) is also very simple and looks like this: Finally, I created the following graph using config-template-card + Plotly: The main characteristics of the graph are:
If anyone is trying to build something similar, I hope this post can be helpful. Cheers! |
Beta Was this translation helpful? Give feedback.
-
|
thank you, i will try it. Maybe in future we find a way to use energy-cards collection_key? to sync plottly to other default cards and use the integrated timepicker. |
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.
-
I am monitoring the development of Home Assistant and saw that the developers are currently working on a way to use the energy date picker for the history graph card.
Plotly-Graph is worlds ahead of the integrated HA cards. But one thing is still missing: a date picker. Would it be technically possible to use the existing energy date picker to select the time range, similar to the history graph approach?
home-assistant/frontend#23478
Supporting the existing date picker would have the advantage that Plotly-Graph could be integrated seamlessly and could synchronize the time status with other cards in the future.
Beta Was this translation helpful? Give feedback.
All reactions