Daily average temperature of a sensor

have a look at this custom component