I am trying to use the Statistics sensor to give the Min and Max values of another sensor for the current day (from midnight). However I can only manage to get it to give me the values for the last 24 hours.
Is there a way of being able to do what I require.
Thanks for the quick response. I am not sure either will work. The source sensor is a temperature sensor and all I want to do is display the Min/Max temperature for the day.
In that case you probably need to make something on your own.
If you have a input number that you set to some very high number each night and then only change the state when the sensor you record is lower than what your input number is then you will get the min value.
And then do the opposite for max value.
It shouldn’t be to hard to make those automations. I believe you need three automations, one for each input number (min/max) and one to “reset” them both at night.
The values get updated every 5 minutes so I will write an automation that gets triggered by the update and then updates both the Max and Min values if necessary and then save them to MQTT sensors.
I will have another automation that runs at midnight which resets these values to the current temperature.