Allow numeric state to have "for: <time>" in conditions, not just triggers

This is Ok in a config:

 trigger:
    platform: numeric_state
    entity_id: sensor.temperature
    below: 25
    for:
      seconds: 5

This however is not

conditions:
  - condition: numeric_state
    entity_id: sensor.temperature
    below: 25
    for:
      seconds: 5

I think the second variant should also work, and i don’t really see why it doesn’t, I assume it is an oversight?

9 posts were merged into an existing topic: For-statement for automation with numeric state

5 votes have been moved.