Does your input_datetime contain just a time or a date and time?
Time only:
{{ now() > today_at(states('input_datetime.alarm')) - timedelta(minutes = 30) }}
Time and Date:
{{ now() > state_attr('input_datetime.alarm','timestamp')|as_datetime|as_local - timedelta(minutes = 30) }}