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

feat(state_map): support for ranges

Open Tamas-Toth-ebola opened this issue 3 years ago • 14 comments

Hi!

I would like to drop a 'small' feature request if possible.

Could you please allow intervals in state_map value definitions? In this case we could transform our numeric values to some talkative alternates like:

type: custom:mini-graph-card
entities:
  - entity: sensor.u_s_air_quality_index
    name: Air quality
font_size_header: 10
font_size: 66
hour24: true
height: 50
line_width: 1
hours_to_show: 168
align_state: center
show:
  labels: false
color_thresholds:
  - value: 0
    color: '#64dd17'
  - value: 51
    color: '#ffff00'
  - value: 101
    color: '#ffff00'
  - value: 151
    color: '#ffff00'
  - value: 201
    color: '#ffff00'
  - value: 301
    color: '#ff3d00'
state_map:
  - value: 301-
    label: Hazardous
  - value: 201-300
    label: Very unhealthy
  - value: 151-200
    label: Unhealthy
  - value: 101-150
    label: Unhealthy for sensitive groups
  - value: 51-100
    label: Moderate
  - value: 0-50
    label: Good

This would give us lot more of flexibility.

(The example above is just an example for illustration the request. Of course we already have such 'text like' results from air quality sensors...)

Thanks for your time!

Tamas-Toth-ebola avatar Apr 28 '22 08:04 Tamas-Toth-ebola

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] avatar Jul 26 '22 00:07 stale[bot]

Hi!

Sorry to ask, but are there any chance of the feature in the future?

Tamas-Toth-ebola avatar Jul 26 '22 08:07 Tamas-Toth-ebola

Still an active issue, got it! Removing stale label.

stale[bot] avatar Jul 26 '22 08:07 stale[bot]

any chance of the feature in the future?

There are not many competing developers here, this is a voluntary job. So, we all must be patient.

ildar170975 avatar Jul 26 '22 09:07 ildar170975

Thanks @ildar170975 !

I just 'pinged' the issue to avoid the auto close of it after its 'stale' state flagging by the bot.

Tamas-Toth-ebola avatar Jul 26 '22 14:07 Tamas-Toth-ebola

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] avatar Sep 24 '22 23:09 stale[bot]

I just 'pinged' the issue to avoid the auto close of it after its 'stale' state flagging by the bot.

Tamas-Toth-ebola avatar Sep 25 '22 15:09 Tamas-Toth-ebola

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] avatar Dec 10 '22 09:12 stale[bot]

I just 'pinged' again the issue to avoid the auto close of it after its 'stale' state flagging by the bot.

Please do not feel any type of 'forcing' in it, just want to let it be alive...

Tamas-Toth-ebola avatar Dec 11 '22 22:12 Tamas-Toth-ebola

Still an active issue, got it! Removing stale label.

stale[bot] avatar Dec 11 '22 22:12 stale[bot]

Please do not feel any type of 'forcing' in it, just want to let it be alive...

Sure! Just do not forget to un-stale issues which you find important.

ildar170975 avatar Dec 11 '22 23:12 ildar170975

oh im interested too

DeFlanko avatar Feb 21 '23 22:02 DeFlanko

yes, this is literally the last thing I need from this mod for it to be perfect. Or just give us an option to show string value :(

laapsaap avatar Apr 20 '24 00:04 laapsaap

Upvoting

TMarzullo avatar Apr 21 '24 23:04 TMarzullo