Thank you! That explains everything now.
It all hinges on the inclusion of the entity_id
option in your Template Sensor:
entity_id: sensor.date, sun.sun, switch.irrig_front_side_yard
On startup, the entities listed in entity_id
supersede the ones found within the value_template
.
What that means is Home Assistant will listen for changes to:
sensor.date, sun.sun, switch.irrig_front_side_yard
as opposed to listening to:
input_datetime.irrigation_side_lastwatered
-
sensor.date
only changes once a day, a moment after midnight. Thatās when it will cause thevalue_template
to be evaluated. Itās infrequent so it doesnāt contribute much to this Template Sensorās evaluation frequency. -
switch.irrig_front_side_yard
changes whenever you change it (either manually or perhaps via some automation). In other words, it changes infrequently so it too isnāt a significant contributor to the evaluation frequency. -
sun.sun
haselevation
andazimuth
attributes whose values are updated periodically. The interval is not fixed but varies according to the sunās position (typically every few minutes or less). This is the principal contributor to how often your Template Sensor is evaluated.
This is a strange mix of entities to use as listeners and Iām not sure why you chose them. When thereās a need to evaluate a value_template
every minute, the usual choice is to add sensor.time to
entity_id`.