History Graph card: Is it possible to limit the Y-axis range?

Currently, my luminance sensor sometimes has some ridiculous peaks (when there’s direct sunlight); which completely messes up the history graph scale (see below). Can anyone think of a way to set a maximum value to display in the graph?

I have an Aeon Labs Multisensor 6. I tried looking for setting that might help me do this, but couldn’t find one.

Screenshot

Use a logarithmic plot:

- platform: template
  sensors:
    log_light_brightness:
      friendly_name: 'Log Light Brightness'
      entity_id:
        - sensor.outside_light_level
      value_template: "{{ log( [states('sensor.outside_light_level') | float, 1 ] | max, 10) | round(3) }}"
      unit_of_measurement: "log(lx)"
1 Like

Thank you!