Automation ignoring Input Datetime trigger

Show us the “pyscript” code and the automation code, properly-formatted for the forum; and the state of the input_datetime that is being ignored.

I assume you’re aware that others have worked on this topic before, myself included? Monster thread here: