Bathroom - Extend the light time controlled with motion sensor via humidity

Have a simple automation for the lights on/lights off

Not even sure it’s feasable to post such stuff but here we go

- id: light_bath_off
  alias: Bath off on motion
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.move_bath_occupancy
    from: 'on'
    to: 'off'
    for:
      minutes: 6
  condition: []
  action:
  - service: light.turn_off
    entity_id: light.zwave_2_bath
  mode: single

What i want to achieve is to have the lights off delay to say for say 15 minutes if humidity trend goes above average. The only thing which comes to mind is to disable the lights off automation for this period. But this will not switch the lights off if the motion sensor goes to off in this period. With recent automation progress guess it can be solved much easier.