Time range condition template

ok, so are you trying to ensure that current time (e.g. now()) is between these timestamps?
If so that’s what you need:

  - condition: or
    conditions:
    - condition: template
      value_template: '{{ (as_timestamp(now()) -(states.input_datetime.lounge_ac_am_on_time.attributes.timestamp | default(0)) | int > 0) and ((states.input_datetime.lounge_ac_am_off_time.attributes.timestamp  - as_timestamp(now()) | default(0)) | int > 0)}}'
    - condition: template
      value_template: '{{ (as_timestamp(now()) -(states.input_datetime.lounge_ac_pm_on_time.attributes.timestamp | default(0)) | int > 0) and ((states.input_datetime.lounge_ac_pm_off_time.attributes.timestamp  - as_timestamp(now()) | default(0)) | int > 0)}}'