Trouble with input_datetime as automation trigger

@boyakasha1 I was able to get your automation to work using :

value_template: '{{ states.sensor.time.state == (states.input_datetime.weekday_time.attributes.timestamp | int | timestamp_custom("%H:%M", False)) }}'

which I found here: