Default Sensor card limits

Dear all,

As I understand this should already been implemented but I have not been able to get it working. How can we add the limits to the default sensor card? It says from the documentation

I tried
limits:
min: 20
max:30

The variables are not found

Did you indent it correctly?

It is not possible to tell from your post.

It should be like this:

type: sensor
entity: sensor.illumination
name: Illumination
limits:
  min: 20
  max: 30

did you indent the min max ??
show you code please

type: sensor
entity: sensor.rm4mini_temperature_round
detail: 2
graph: line
name: ' '
unit: ' '
hours_to_show: 48
icon: mdi:temperature-celsius
limits:
  min: 20
  max: 30

Error as below:

Visual editor is not supported for this configuration:

* Key 'limits' is not expected or not supported by the visual editor.

You can still edit your config in YAML.

Oh I think I understand it correctly now. It affects the card view but not when I click into the card to view the graph. That would show the full range of the sensor instead of the limits is that correct?

It means those options are not supported by the UI editor. It is perfectly valid config, you just have to use the code editor.