WLED change preset when raining between AM hours

Need help with the following, I can manually run, but this morning as it was raining it did not run.


alias: WLED RAIN
description: ""
trigger:
  - platform: template
    value_template: |-
      {% if 'rain' in states('weather.khsv') %}
      {{ true }}
      {% endif %}
    id: Raining
condition:
  - condition: time
    after: "05:00:00"
    before: "08:00:00"
    weekday:
      - sun
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
action:
  - condition: trigger
    id:
      - Raining
  - device_id: 910502dcb40a94e20d1644fa1827d5d4
    domain: select
    entity_id: 4859c44599d6a126dfdb7408f49c8d04
    type: select_option
    option: Rain
mode: single