-
Hi there! I've set up a plot with a 15 minute resample and derivate of our water total counter sensor, to provide an average flow readout, rather than guessing from the flow rate when our pump repressure is active. I was wondering if it's possible to load data points from a separate slightly wider range (15 minutes earlier in my case) than what is shown so that the resample has a more accurate plot at the start of the graph, without having to scroll over and load it first. type: custom:plotly-graph
title: 1hr Water flow rate
refresh_interval: 4s
hours_to_show: 1.25
entities:
- entity: sensor.water_flow_rate
fill: tozeroy
line:
width: 2
texttemplate: <b>%{y:.1f}</b>LPM<br>
- entity: sensor.total_water_used
name: 15 Minute Average
showlegend: true
line:
width: 1
shape: spline
show_value: false
texttemplate: <b>%{y:.01f}</b>LPM<br>
filters:
- resample: 15m
- derivate: m
mode: lines+markers+text
textfont:
color: darkorange
size: 8
textposition: left
marker:
size: 6
yaxis:
- visible: false
defaults:
entity:
show_value: true
yaxes:
griddash: dot
range:
- 0
- 26
fixedrange: true
side: left Also here's a 24 hour plot with both sensors shown. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Very cool! Thanks for the kind words, I'm always happy to hear about the interesting things others do with the card :) To fetch more data than what is visible, this trick may work:
|
Beta Was this translation helpful? Give feedback.
-
Hmm, no luck. I tried with the offset entry defined before or after the visible entry (also tried a bit more than just 15 minutes offset). |
Beta Was this translation helpful? Give feedback.
I see, you are right.
Your idea does work: