I woke up my HAOS dev stuff and updated it to belwo (same)…and also there…no issues …so let’s hope discord brings help
Home Assistant 2023.2.5
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest
That's indeed a python datetime tuple. You can use .isoformat() to convert it to a string. Then you need to use as_datetime to use it as a datetime again
I believe you can streamline the template that gets the current time in ISO format. You should also append a default filter, in the rare case there’s no match found.
So you did look at it … now… why oh why does my template work with the same (old/original) code and James’ not? Is it possibly a formatting within the sensor when I copied the data into it?
EDIT: not asking more time …just if-you-know (have an idea)
FWIW, I saw the Issue that jamesking posted in the Core repository. I thought the Issue’s example wasn’t optimal so I revised it, tested it on the sample of data posted in the Issue and confirmed it worked.
I was going to post my working example in the Issue but then noticed it contained a link to this topic (which I never read). Anyway, as far as I’m concerned, the Issue is reporting a non-existent bug.