-
Hi all, I've just started to dive into further custimization of plotly. From the repo readme I've found this picture: I would like to include the (what I assume to be confidence intervals / standard deviation), of the trace. However, I cannot find in the documentation how to configure this in the yaml config. I would have expected this to be configurable under statistics. Could anyone point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The Home Assistant API doesn't expose standard deviation, only See here Computing statistics locally (including mean, std deviation, and intervals of confidence) sound like a good use case for filters. Feel free to raise a feature request issue, make sure to include your suggestion for how you imagine the yaml to look like :) |
Beta Was this translation helpful? Give feedback.
-
But the linked image is one that is already created using the plotly custom card right? So apparently what I am looking for already exists (or is that indeed the min/max values that you mentioned)? :) In which case I still cant find how to enable all of those for the same entity like was shown in the figure. |
Beta Was this translation helpful? Give feedback.
-
I'd love to see an updated and complete example of how to render this. Strugglin to get the plot working: type: vertical-stack
cards:
- type: custom:plotly-graph # Kid's room
entities:
- entity: sensor.bedroom_temperature
name: T[°C] (max)
line:
color: rgba(81, 117, 159, 0.4)
width: 1
statistic: max
period: hour
showlegend: false
show_value: false
- entity: sensor.bedroom_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: hour
showlegend: false
show_value: false
- entity: sensor.bedroom_temperature
texttemplate: "%{y:.1f}°C"
name: T[°C] (mean)
line:
color: rgba(81, 117, 159, 1.0)
statistic: mean
period: hour
show_value: true
hours_to_show: 72
refresh_interval: 30
title: Bedroom
Not working :( |
Beta Was this translation helpful? Give feedback.
The Home Assistant API doesn't expose standard deviation, only
min
,mean
andmax
for state_class=measurement andstate
andsum
for state_class=total.See here
Computing statistics locally (including mean, std deviation, and intervals of confidence) sound like a good use case for filters. Feel free to raise a feature request issue, make sure to include your suggestion for how you imagine the yaml to look like :)