Long term statistics support #81
Replies: 9 comments 34 replies
-
thanks @FrnchFrgg and @dbuezas ! How do I install this beta version next to the normal version? |
Beta Was this translation helpful? Give feedback.
-
Out of beta in the next 5 minutes |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the good work. I wanted this feature since the first version. |
Beta Was this translation helpful? Give feedback.
-
Here is a gorgeous example from @r-jean-pierre |
Beta Was this translation helpful? Give feedback.
-
Here is where I am so far cards:
- type: custom:plotly-graph # Kid's room
defaults: &mon_defaults
entity:
texttemplate: "%{y:.1f}"
connectgaps: false
hovertemplate: ''
line:
shape: spline
width: 2
entities:
- entity: sensor.ths_kids_temperature
name: T[°C] (max)
line:
color: rgba(81, 117, 159, 0.4)
width: 1
statistic: max
period: 1day
showlegend: false
show_value: false
- entity: sensor.ths_kids_temperature
name: T[°C] (min)
fill: tonexty
fillcolor : rgba(81, 117, 159, 0.2)
line:
color: rgba(81, 117, 159, 0.4)
width: 1
statistic: min
period: 1day
showlegend: false
show_value: false
- entity: sensor.ths_kids_temperature
texttemplate: "%{y:.1f}°C"
name: T[°C] (mean)
line:
color: rgba(81, 117, 159, 1.0)
statistic: mean
period: 4hour
show_value: true
- entity: sensor.ths_kids_humidity
name: φ[%] (max)
line:
color: rgba(143, 86, 164, 0.4)
width: 1
statistic: max
period: 1day
showlegend: false
show_value: false
- entity: sensor.ths_kids_humidity
name: φ[%] (min)
fill: tonexty
fillcolor : rgba(143, 86, 164, 0.2)
line:
color: rgba(143, 86, 164, 0.4)
width: 1
statistic: min
period: 1day
showlegend: false
show_value: false
- entity: sensor.ths_kids_humidity
texttemplate: "%{y:.1f}%"
name: φ[%] (mean)
line:
color: rgba(143, 86, 164, 1.0)
statistic: mean
period: 4hour
show_value: true
layout: &mon_layout
hovermode: "x unified"
yaxis:
range:
- 10
- 40
gridcolor: rgba(233, 233, 233, 0.4)
zeroline: false
showticklabels: true
tickfont:
color: rgba(81, 117, 159, 1.0)
title: false
yaxis2:
range:
- 40
- 90
gridcolor: rgba(233, 233, 233, 0.4)
zeroline: false
tickfont:
color: rgba(143, 86, 164, 1.0)
title: false
margin:
"l": 32
"r": 32
"t": 64
"b": 40
xaxis:
gridcolor: rgba(233, 233, 233, 0.4)
rangeselector:
"y": 1.12
"x": 0.72
buttons:
- count: 12
step: hour
- count: 5
step: day
- count: 30
step: day
hours_to_show: 72
refresh_interval: 30
title: Kid's room |
Beta Was this translation helpful? Give feedback.
-
I saw it too, I'm on an early beta, since I saw the water usage metering and the LTS/week support. Both are something I wanted. |
Beta Was this translation helpful? Give feedback.
-
@r-jean-pierre , I am unable to use
Do I need to define custom periods somewhere else? |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm posting here cause the title makes sense ("Long term statistics support") I have a simple and easy graph with 5mins average
If you look on bottom left corner (red), I tried to display 2 weeks, but data history length seems to stop ~10 days ago I just noticed "recently", when I was forced to restore a backup to restart my HA setup and therefore lost some of my history (it was two months ago) It seems to have the same behaviour without Is there something I missed (or misuse) ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks to @FrnchFrgg , this version brings support for statistics!
This means that multi day plots can now be very snappy, and you can look way back in the past too.
After we added statistics support, I decided to make a fairly big refactor to improve the API of both statistics and attributes.
Because of that, this one is marked as beta version. Please feel encouraged to report any bugs as issues, or drop a thanks to @FrnchFrgg in the discussions section if you were missing the feature!
This discussion was created from the release Long term statistics support.
Beta Was this translation helpful? Give feedback.
All reactions