mini-graph-card
mini-graph-card copied to clipboard
feat(state_map): support for ranges
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!
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!
Hi!
Sorry to ask, but are there any chance of the feature in the future?
Still an active issue, got it! Removing stale label.
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.
Thanks @ildar170975 !
I just 'pinged' the issue to avoid the auto close of it after its 'stale' state flagging by the bot.
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!
I just 'pinged' the issue to avoid the auto close of it after its 'stale' state flagging by the bot.
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!
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...
Still an active issue, got it! Removing stale label.
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.
oh im interested too
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 :(
Upvoting