Trying to use date/time for longer waits in an automation

I have some automations that have waits that are in my opinion too long to use a typical wait service and I have not been succesful in setting up date/time to do something similar. Any help would be appreciated.

description: "test"
  - platform: state
      - input_boolean.sunroomlights_2
    to: "on"
condition: []
  - service: light.turn_on
      entity_id: light.sun_room
      brightness_pct: 100
      kelvin: 6500
  - wait_template: "{{ states('sensor.date_time') >= states('input_datetime.den_override_end_time') }}"
  - service: light.turn_off
        - light.sun_room
    data: {}
mode: single

this is a test to make sure it the date/time template would work with the date/time helper doing its thing for 10-15 seconds or so and then turn the lights off after it completed that condition. I would then move the working date/time template to the actual automation that I need date/time to add 2 hours to ‘now’ time. I hope this is worded correctly. Many thanks for any help!