Is it just me, or are ESPHome template sensors just time-based? I was looking for a template sensor with a lambda that runs whenever the source sensor updates (like how Home Assistant does it). The ESPHome template sensor seems to just run its lambda every x seconds and will grab the source sensor’s value, even if it hasn’t been updated since the last time its lambda ran.
Any way to make the template sensor update only when its source sensor updates?