Get Rest-Data (Temperature) as Graph

Hello,
I configured my first rest sensor and it seems to be working fine:

sensor:
  - platform: rest
    resource: http://xxx
    name: Test API
    value_template: '{{ value_json.temperatur }}'
    device_class: temperature

Is it possible to display the data changes in a graph? Currently it is looking like this:
[As i am a new user I can only post one picture but it shows the data in a linear colored line]
but I would like to have it look like this:
image

I was hoping the device class would solve that, but unfortunately it didn’t do anything.

Current state:
image

Try adding a unit of measurement:

sensor:
  - platform: rest
    resource: http://xxx
    name: Test API
    value_template: '{{ value_json.temperatur }}'
    device_class: temperature
    unit_of_measurement: '°C'

Thank you for your answer.
Unfortunately this only adds the unit after the value:
image

Wait for the sensor to update. Also clearing your browser cache may help.

Thank you very much! It’s working now.

1 Like