ESPhome Min Max

how do i get the min or max value of a sensor in ESPHome (eg last 12h?

Do you need to do it in ESPHOME?

You tend to be better off doing longer term statistics in Home Assistant as ESPHome isn’t really set up as well to store history.

If you do need to do it on the ESPHOME side you can look at max filter.