Easy long term graphing help needed. : r/homeassistant Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/homeassistant icon
r/homeassistant icon
Go to homeassistant
r/homeassistant
A banner for the subreddit

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io.


Members Online

Easy long term graphing help needed.

I've got a temperature sensor in my attic. I've got a Tempest weather station that reports outdoor temperature.

In HA I get a day or two of temperatures, but I want non-stop for the next several months. Both report every 5 or 10 minutes, which is probably more often than I need, unless it's just as simple as half hourly or hourly.

I just want to look at a single, two-line graph.

Thinking about it - I may need to break it into weekly? Or that's going to be a very long graph.

Is there an easy way to accomplish this? Preferably with some easy to follow, step by step directions?

Thanks!

Share
Sort by:
Best
Open comment sort options
Comment Image

Here's mine.
Sounds like you need ApexCharts

You can replace the entity's below with your two temperature sensor entities.

graph_span == how far back you want to see

offset == how often you want it to update

type: custom:apexcharts-card
header:
  show: true
  title: Attic
  show_states: true
  colorize_states: true
graph_span: 1w
span:
  offset: '-10m'
series:
  - entity: sensor.attic_temp_humidity
    name: humidity
    type: line
    data_generator: ''
  - entity: sensor.attic_temp_temperature
    name: temperature
    type: line
    data_generator: ''

Oh great, thank you! I'll give that a shot!

Nice! How long can it record? I have it set to 2 weeks, Ideally I'd like to go for a year.

More replies
More replies