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

Statistics platform value_min sensor seems wrong

$
0
0

So I’m trying to get the min value of of a sensor over 24 hours, so I can build an automation when the current value of the sensor exceeds it for more than a few hours.

I have this in configuration.yaml

sensor:
- platform: statistics
  name: "Min Household Power Over Last 24 hours"
  entity_id: sensor.rainforest_emu_2_power
  state_characteristic: value_min
  max_age:
    hours: 24

But what I end up with is chart that looks like this, which doesn’t seem right at all. I was expecting the min over 24 hours to be the min value over a rolling 24 hour window.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103194

Trending Articles