Need help with trigger and condition (time and temp)

basically i want my fan to turn on every hour when its 90 degree outside

- alias: 'Turn on exhaust fan every hour when its 90 degree hot outside'
  trigger:
    platform: time
    #hours: '/1'
    minutes: '/5'
    seconds: 00
  condition:
    condition: numeric_state
    entity_id: sensor.pws_temperature_string
    above: 89.0
  action:
    service: homeassistant.turn_on
    entity_id: switch.switch_3

for some reason this automation does not trigger… it would be nice to get the hep today since its above 90 degree outsite

thanks you guys J

Why is ‘hours’ commented?

i tried to run it every 5 minutes sorry forgot to change it back so that i can see it work

minutes: ‘/5’

edit i commented out my condition… now the trigger works this exact copy works triggering it by time intervel

- alias: 'Turn on exhaust fan every hour when its 90 degree hot outside'
  trigger:
    platform: time
    #hours: '/1'
    minutes: '/5'
    seconds: 00
#  condition:
#    condition: numeric_state
#    entity_id: 'sensor.pws_temperature_string'
#    above: '89'
  action:
    service: homeassistant.turn_on
    entity_id: switch.switch_3

The entity_id should be ‘states.sensor.pws_temperature_string.state’
Also it seems like your sensor returns a string?
Maybe use the template condition

condition:
  condition: template
  value_template: '{{ states.sensor.pws_temperature_string.state | int > 89 }}'

You can test your template in Developer Tools/Templates.

Edit:

Sorry, forget it, not enough coffee this morning.