Help with bathroom light automation

I am trying to automate my bathroom light depeding on a few conditions.

I have a motion sensor, a humidity sensor and a smart bulb.

I want to;

  • Trigger the bathroom light on, on motion dectection after dark
  • Turn the light off after no motion for 5 min
  • Turn or keep the light on when bathroom humidity rises above 80% for a addtional 15 min at any time of day
  • Turn the light off when humidity falls below 65%

I have had the light on an automation with just the motion sensor and that was easy. Now I want to add in the humidity conditions I am really struggling.

Please show your current code.

I dont really have much. Just the timer automation.

alias: Bathroom Motion On
trigger:
  - entity_id: binary_sensor.bathroom_sensor_motion
    platform: state
    to: 'on'
condition:
  - after: sunset
    after_offset: '-00:30:00'
    condition: sun
action:
  - data:
      entity_id: switch.bathroom
    entity_id: switch.bathroom
    service: switch.turn_on
mode: single
alias: Turn Bathroom Light Off After 5 Min
trigger:
  - event_data:
      entity_id: timer.bathroom_timer
    event_type: timer.finished
    platform: event
action:
  - data:
      entity_id: switch.bathroom
    entity_id: switch.bathroom
    service: switch.turn_off
mode: single

i have no idea where to start with adding in the humidity condition and then extending the timer

Where’s the service call to start the timer?

oops, missed one. Its here, it triggers on no motion.

alias: Bathroom timer Start
description: ''
trigger:
  - type: no_motion
    platform: device
    device_id: bb7e1cab7c514dca9684566b1650ed40
    entity_id: binary_sensor.bathroom_sensor_motion
    domain: binary_sensor
condition: []
action:
  - service: timer.start
    data: {}
    entity_id: timer.bathroom_timer
mode: single