Updating a Template Sensor value every 24rs Using Automation to retrieve a Switch Attribute Value

I was just reading:

And it sounds exactly the kind of outcome I’m looking for, awesome.

Cheers for the direction!!!