Help with history-graph

Hey,
is it possible to make a straight line wit x=start->end y=last sensor value?
As it is 24hour graph i can instantly compare usage on the same time a day before, if its higher or lower.
Thank you for any help.
P.S. i want ot use history graph as it is showing 24hours timeline

  - type: history-graph
    entities:
      - entity: sensor.spotreba_denni_celkem
    hours_to_show: 24
    refresh_interval: 600
    title: Dnes spotreba celkem

Screenshot_23

I suggest using the utility meter to track consumption of devices.

The point is it is tracking and working as i wanted, that is not an issue.
But i want a line on the graph so ican can visualy instantly compare previous day in the exact time that im in now

I donā€™t think you can do this with the history graph, maybe with Grafana charts but Iā€™m not so experienced when it cones to charting.

Thx, it seems harder than it needed to be for me :grimacing:
If somebody will want here link:

i will keep as i t is thenā€¦ :slight_smile:

Itā€™s not that difficult and setting up influxdb is anyway something Iā€™d recommend for everyone planning to keep long-term data of Home Assistant. Hereā€™s an easy guide to set both up.

You can do it with an SQL sensor:

Wow this is even better that i wanted. Will give it a shot !!!

Like a charm, thx
Screenshot_25

Oh, Iā€™m sorry, I somehow understood it differently, didnā€™t understand that you want it like this. Anyway, glad you got it solved :slight_smile:

1 Like

:stuck_out_tongue: My english not good