mini-graph-card icon indicating copy to clipboard operation
mini-graph-card copied to clipboard

extrema config per entity

Open SeLLeRoNe opened this issue 6 years ago • 23 comments

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

SeLLeRoNe avatar Feb 14 '19 15:02 SeLLeRoNe

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

kalkih avatar Feb 14 '19 15:02 kalkih

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

SeLLeRoNe avatar Feb 14 '19 15:02 SeLLeRoNe

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)

ahd71 avatar Mar 09 '19 09:03 ahd71

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

kalkih avatar Mar 13 '19 15:03 kalkih

Excellent, thanks!

ahd71 avatar Mar 13 '19 15:03 ahd71

Is it possible to display the weekdays in a local HA language?

hekm77 avatar Mar 20 '19 06:03 hekm77

@hekm77

Sure, coming next update https://github.com/kalkih/mini-graph-card/commit/6d542863695e62a3d44dc089cc8ab82f3472a085

kalkih avatar Mar 24 '19 13:03 kalkih

@hekm77 This is now available in the latest release v0.3.2, no config needed, utalize the language set in HA.

kalkih avatar Mar 24 '19 13:03 kalkih

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.

mihalski avatar Nov 21 '19 11:11 mihalski

No, this issue is still open.

kalkih avatar Nov 21 '19 11:11 kalkih

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.

mihalski avatar Nov 21 '19 11:11 mihalski

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: image

Extreme79 avatar Nov 24 '20 21:11 Extreme79

I'd also love a more compact view - and also one that only triggers on hover

So my graph might normally look like: image

But when I hover, it might look like: image

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.

peter-dolkens avatar Feb 17 '21 01:02 peter-dolkens

I would find this an extremely useful feature right now, to have an option for which entity I can see the extrema.

Manlycookiebear avatar Feb 02 '22 09:02 Manlycookiebear

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

jlsjonas avatar Feb 02 '22 11:02 jlsjonas

Let me conclude:

  1. For each entity we may define show_extrema & show_average options (false/true).
  2. 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).
  1. If no graph is selected:
  • if entity No1 has show_extrema=true or show_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.

ildar170975 avatar Apr 09 '22 19:04 ildar170975

Any plans to implement this?

ncd7 avatar Sep 03 '23 23:09 ncd7

Would be nice if this was implemented.... 🎅 🎁

BuurmanG avatar Dec 01 '23 09:12 BuurmanG