question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(state_map): support for ranges

See original GitHub issue

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!

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
ildar170975commented, Dec 11, 2022

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.

1reaction
ildar170975commented, Jul 26, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a Map chart in Excel - Microsoft Support
Create a Map chart in Excel to display geographic data by value or category. Map charts are compatible with Geography data types to...
Read more >
USGS Maps Booklet
The area portrayed on each sheet ranges from 207 to 280 square miles, depending on the latitude. The features shown on 15-minute maps...
Read more >
Range Control - U.S. Army Garrisons
Schedule a Range. To schedule a range for Fort Stewart or Hunter Army Airfield, please access the Range Facility Management Support System ( ......
Read more >
Geo chart reference - Looker Studio Help - Google Support
How to use and configure Geo charts.A Geo chart provides an easy way to visualize how a measurement varies across a geographic area....
Read more >
Summary Report for the 2001-2002 STATEMAP Project: Geological ...
Geological Mapping to Support Improved Database Development ... range goal of compiling a digital database and published map of the Pedernales River 30...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found