Time condition is NOT?

Had a look through docs and did a bit of Googling…but what would be the simplest way to say:

don’t trigger the automation if the time is (for example) 15:00 ?

I could write time is before 15:00 OR time is after 15:00 but is there a way to simply exclude 15:00 ?

thanks!!

That will only work if its exactly at 15:00:00. Typically you’d need to template this. Or if you don’t want to template it, these conditions technically match what you want:

  condition:
  - condition: or
    conditions:
    - condition: time
      before: "15:00:00"
    - condition: time
      after: "15:01:00"

This is identical to saying “time does not equal 15:00:00”, assuming you want it to span the entire minute. If you want it to span only that second:

  condition:
  - condition: or
    conditions:
    - condition: time
      before: "15:00:00"
    - condition: time
      after: "15:00:01"