Notification regarding commute

Hi All,
I’d like to be notified if my commute to a destination is gonna take longer than expected. In the following example I’d like to be notified that if my commute takes longer than 25 mins to work I’d be notified after 8am and before 8:30am. I’ve tried the following, but it doesnt seem to work. Any ideas? I’m using the Google_travel_times component as a sensor for home to work and it does give a value.

# Commute #
- alias: "Morning Commute"
  condition:
    - condition: time
      after: '08:00:00'
      before: '08:30:00'
  trigger:
    platform: numeric_state
    entity_id: sensor.home_to_work
    above: 25
  action:
    service: notify.gmail
    data:
      message: 'You will be late for work'

So, I’ve managed to come right with the automation. If anyone wants to know, below is the automation I used:

# Commute #
  - alias: "Morning Commute"
    trigger:
      - platform: time
        after: '08:00:00'
    condition:
      condition: and
      conditions:
        - condition: time
          after: '08:00:00'
          before: '08:20:00'
        - condition: numeric_state
          entity_id: sensor.home_to_work
          above: 20
    action:
        service: notify.gmail
        data_template:
          title: "Traffic to Work is busy"
          message: "Your commute will currently take {{ states('sensor.home_to_work') }} minutes"