Automation: periodically check if switch has been on for more than 90minutes and humidity above threshold, then trigger action

Trying to figure out how to implement the following use case for my humidifier:

Check periodically (say every 15 minutes) if a) the humidifier is running and has been on for at least 90minutes AND b) the humidity sensor is currently reporting more than 49%; then if BOTH conditions are TRUE then switch the humidifier off.
(I have another rule that turns on the humidifier when it goes below a threshold)

I could implement the periodic checks using the Time platform

  trigger:
    platform: time
    minutes: '/15'

I could also easily add the condition for the “humidity above threshold check”. No issues there.
However I could not figure out how to create the condition: “humidifier switch on for more than 90minutes” (at the time the trigger fired)

Is there support for this use case in HA?

Something like

condition:
  condition: and
  conditions:
    - condition: numeric_state
      entity_id: sensor.humidity
      above: '49'
    - condition: state
      entity_id: switch.humidifier
      state: 'on'
      for:
        minutes: 90

Thanks @PeteCondliffe ! I thought the “for: xx minutes” was only applicable for the trigger - will test this out

No conditions too.