Firstly, This is excellent. I have used 2 graphs previously to track short term and long term CPU usage and this provides exactly what I was trying to achieve. Thank you.
I had a problem this morning, I am seeing this error when I edit the card:-
**Configuration errors detected:**
*** document.createElement(...).constructor.getConfigElement is not a function**
The card config which was working last night is as follows -
Oh, thanks for the report @beaj ! I’ll fix this right away. I am reusing the card editor from the history chart, which is a bit of a hack so I’ll disable that when it fails.
Reinstall it and this should not happen anymore. The visual editor won’t be available but it will at least not crash. fixed
Hi. I just tried this and I really love it! It has everything that history chart was missing.
Unfortunately it worked for half an hour and now nothis is displayed anymore, both on PC and Mobile app.
Mmm… I’m trying to set it up again, it look like it doesn’t like to be put in a vertical stack card.
I created 2 charts and they are ok, if I put them in a avertical stack, no graph is displayed anymore.
By the way… great work!
Thank you very much, I just tried to put back my graph in the vertical stack and they are working now!
I will try range selectors as soon as possible.
Thanks again.
Edit: I tried, it was a 10 seconds job
It’s working really well, it just goes over the title if it’s too long and I use too many buttons, but that’s not an issue, I reduced the title lenght.
It looks really nice!
Hi.
I just saw the reply in issues section.
There you proposed something little different from what you realized here, buttons for shifting back he view, not just for changing hours to view.
On the screen they look the same, so probably using both at the same time could be a little confusing.
What about left and right buttons for shifting the view back or forward for the amount of hours selected?
I don’t know if this would be something that would require too much work or not, I’m just asking from the user point of view
Really good idea! I’ll try it out when I have a free day soon
BTW, do you mind sharing your screenshots and yaml examples here?
I’m hoping in time we’ll accumulate a collection of cool plots and inspirations for yaml configs. I’ll really appreciate it if you drop a message there (the plots you posted here for example)
Hi.
Ok, no problem, but yaml is really just the default history graph mask with my entities selected, and then edited to paste the custom code took from your examples.
You made everything so easy
entities:
- entity: sensor.temperature_in_celsius
name: living temperature in Farenheit # Overrides the entity name
lambda: |- # Transforms the data
(ys) => ys.map(y => (y × 9/5) + 32)
unit_of_measurement: °F # Overrides the unit