Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 117756

Dynamic days_to_show on a statistics-graph?

$
0
0

Is there a way to make the days_to_show dynamic on a statistics-graph?
I’ve tried this:

  - type: statistics-graph
    title: 'Lolo Weight'
    days_to_show: '{{states("input_number.lolo_weight_chart_days_to_show") | int}}'
    stat_types: mean
    entities:
      - entity: sensor.lolo_weight
        name: Weight

But all I get is loading statistics
Am I missing something?
It would be nice to be able to change the time scale with an input_number or input_text

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 117756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>