Sensors For History Graph

How can i modify y specify a sensor so that it shown under history as line graph? Currently it shown as:

Especially the Amps and the Volts graphs are not really helpful. Al line graph whould serve much better, like this one:

Your sensors need a unit_of_measurement to be displayed as a line graph.

After you add the unit to your sensors it will take a day to purge the data from the old bar type chart.

Hey Tom! Thats fantastic! It works immediately. Only the UI card History contains both graphs:

Yep. Give it a day and the bar chart will disappear (the chart only displays the last 24hrs).

1 Like

For other readers: In configuration.yaml under sensor: i added β€œunit_of_measurement:” as follows:

sensor:
- name: "INV1 - Solar/Battery Watts"
  state_topic: "inverter/solar_battery_watts"
  unit_of_measurement: "Watt"

…and than restarted/reloaded YAML

Use the </> formatting button, not the quote button.

Thanks Tom, now fixed.

1 Like