Custom step function in zoom dependant statistics period
Step function auto period
- Support for step functions for the periods of statistics entities
- Lower limit of auto period is inclusive
Example:
type: custom:plotly-graph
entities:
- entity: sensor.temperature
statistic: mean
period:
0: 5minute
24h: hour # when the visible range is ≥ 1 day, use the `hour` period
7d: day # from 7 days on, use `day`
# 6M: week # not yet supported in HA
1y: month # from 1 year on, use `month