I'd like to access history data in Automations. I often come across this and use additional helpers which are switched at certain times.
How could I for example see if the device
device_tracker.schlussel
Was between 8:00 and 15:00:00 at some time at Work? I just want to turn on my heater early and the accuracy is not good enough for Google find my devices to keep it inside the area for the whole time.