If I try this in the template development tab, HA tells me that this template is being updated once every minute.
However, if I check the sensor states development tab, it appears that the template sensor using this template is updated once per hour (which would be the desired behaviour).
So what’s correct?
How can I find out myself how often a template sensor’s template is actually being rendered to a value? Is there a log entry or some other information on this?
Please note that the code above is just an example for one template sensor I’m using. I have other template sensors with more complex behaviour.
To avoid unnecessary CPU cycles, I want to make sure these are only updated once per hour or once per day and now want to find out if I can rely on HA’s automatic detection of input state changes. Or if I need to use a time_pattern trigger to force the update on specific times of the day.