mini-graph-card
mini-graph-card copied to clipboard
extrema config per entity
It would be nice on the Extrema View to be able to see one line per entity so to keep track of all min-max of each entity of the graph.
It would also be nice, when there are multiple entities but you want to see only one min/max, to be able to define which entity provides you the min and which the max.
Hope is clear enough, if not let me know :)
Cheers Andrea
I think we could add this as an optional option in the entity object, similar to show_state
.
Possibly something like this:
entities:
- sensor.temperature
- entity: sensor.pressure
name: Pressure
show_state: true
show_extrema: true #show this entity in the extrema
- sensor.humidity
Yep I think that would make a lot of sense.
It might actually also work in another way:
extrema: true
entities:
- sensor.temperature
- entity: sensor.pressure
name: Pressure
show_state: true
show_extrema: false #don't show this entity in the extrema but show all the rest
- sensor.humidity
When displaying data over more than 24h it shows only TIME of the extreme value, would be good to be able to format the value to show DATE+TIME (in 12/24h, and with different date formats, i.e yyyy-mm-dd, preferably from some system setting)
When displaying data over more than 24h it shows only TIME of the extreme value, would be good to be able to format the value to show DATE+TIME (in 12/24h, and with different date formats, i.e yyyy-mm-dd, preferably from some system setting)
The day / weekday will be displayed by default in the next release if the graph timeframe is longer than 24 hours d1bdfce64a285e9bf9ccb068a668ebef021cb954
The format will be (D ddd, HH:mm - HH:mm ) or corresponding am/pm format
Excellent, thanks!
Is it possible to display the weekdays in a local HA language?
@hekm77
Sure, coming next update https://github.com/kalkih/mini-graph-card/commit/6d542863695e62a3d44dc089cc8ab82f3472a085
@hekm77 This is now available in the latest release v0.3.2, no config needed, utalize the language set in HA.
Did this every get implemented? I was just trying to achieve this for a temp/humidity graph so I could see the min/max for both sensors.
No, this issue is still open.
Was thinking maybe something like:
Min: TempValue / Time Min: HumidityValue / Time
Max: TempValue / Time Max: HumidityValue / Time
Maybe it can be even simpler and more elegant.
How about to have an option to place extrema on the same line of current status? This to have a more compact view.
something like this:
I'd also love a more compact view - and also one that only triggers on hover
So my graph might normally look like:
But when I hover, it might look like:
Additionally, the ability to control show_min
and show_max
separately would be great too.
Let me know if these should be separate tickets - this issue appears to be a bit of a "catch all for extrema improvements" at the moment, which feels weird, but I'd rather not give you duplicate tickets too.
I would find this an extremely useful feature right now, to have an option for which entity I can see the extrema.
I would find this an extremely useful feature right now, to have an option for which entity I can see the extrema.
entity-level configuration is our main goal for the next release, extrema will definitely be included in that.
@Extreme79 & @peter-dolkens : there's a ticket (#699) to tackle a compact view; your input would be welcome there
Let me conclude:
- For each entity we may define
show_extrema
&show_average
options (false/true). - If some graph is selected:
- the extrema data for THIS entity are displayed (if
show_extrema=true
for THIS entity); - the average data for THIS entity are displayed (if
show_average=true
for THIS entity).
- If no graph is selected:
- if entity No1 has
show_extrema=true
orshow_average=true
- the extrema or average data are displayed for this entity; - otherwise - a blank line is displayed.
Additionally - I propose a new extrema_average_adaptive_color
option (per-entity) - similarly to state_adaptive_color
.
As for "show extrema / average" data in a compact manner - let it be a separate issue.
Any plans to implement this?
Would be nice if this was implemented.... 🎅 🎁