I always used below to check when the last motion in the house was. Always worked fine until I upgraded from 86.4 to 89.1. I searched for breaking changes regarding this but could not find anything. Any suggestions?
No, nothing in logs related (even remotely) to this. It’s just not updating the sensor anymore ( (sensor.date_time is updating correctly). Maybe there always has been a mistake in this sensor but was <86.4 more forgiving?
One of the recent releases changed the way template_sensors are updating (can’t find which version though)
The template engine will attempt to work out what entities should trigger an update of the sensor. This can fail, for example, if your template loops over the contents of a group. In this case, you can use entity_id to provide a list of entity IDs that will cause the sensor to update or you can run the service homeassistant.update_entity to update the sensor at will.
Update: Stupid me; there was a motion sensor stuck on triggered so no state change was happening… After resetting the sensor all back to normal @petro; No idea why this is still working. Think this one from +3 years back.