Another thing I noticed is a delay in certain entity updates. Not sure if my code above limits the update frequency due to the spline calculations but I’ve for example seen one entity that I know have updated itself later than what shows on the graph. Tried removing the spline function and that brings it up to speed.
Hey Swipee, that’s actually quite weird. I don’t think splines anything to do with it to be honest.
Could you try the beta version 1.3.0 and let me know if that fixes it? (go to HACS, frontend, Plotly Graph Card, three dots, redownload, check “show beta versions” and pick 1.3.0)
I fixed how the updated data is merged with the existing one.
Also, please add both charts (with and without spline) at the same time in two different cards to make sure this is related to the splines and not just a sensor that went unavailable for some time.
Hi . I like this card very much. Have used plotly in the past so this is a useful integration to HASS.
I have been looking for an example that uses multiple y axes and how to assign entities to different y axes. Sometmes this happens automatically sometimes it doesnt. I want to force an entity to a particular y axis. Any ideas ?
Yes, the card automatically adds yaxes for each different unit_of_measurement in the entities you pass.
You can override the unit_of_measurement and also the yaxis yourself
Love the card! I’m currently trying to build a plot based on the weather forecast. For this, I need to access a nested attribute like shown below. Is this possible? What can I do to make it work?
This is what the attributes from the weatherflow forecast are looking like:
However, the “forecast” attribute seems to be not available in the plotly graph card.
As the code below shows, it is missing from the attribute’s keys:
First off, thank you, this is exactly what I was looking for! (almost )
Just discovered it this morning when looking to try and get a little more functionality into mini-graph-card, and came across this which would display the plots so much better and closer to what I want.
Ran into a little issue, been searching a couple hours to see if its common or a faq without luck, maybe you can point me in the right direction?
So I have a dashboard with a vertical stack, each stack has horizontal stacks of cards, a fairly typical grid/item layout.
Using mini-graph-cards one of the horizontal stacks has 3 graphs in it which display without issue.
Trying to recreate it with plotly if there’s only one graph in the stack it works fine, but as soon as I add a second it starts resizing constantly.
I can reproduce it also by just adding a new card, then a horizontal stack, then add a custom plotly graph card and its fine (the default with just sun entity), add a second plotly graph to the same horizontal stack and it also starts scaling over and over:
to each but they still start off much taller, then slowly shrink down to the fixed height.
Tried to catch the limits of each, snips taken a couple of seconds apart:
Happy to hear it is of use!
There’s no FAQ, but the discussions section in the repository is fairly rich.
This is probably a bug, I’m doing something a bit dodgy to make the cards responsive and the horizontal card probably hit a corner case I didn’t consider.
Feel free to report an issue in the repository with this, but until I fix this, I recommend you check out grids: