Trig if condition is met for 10 minutes

Hi!

I’m trying to make this automation:
If sensor.house_power_usage is <= 0 for 10 minutes Then send Notification (Also called: If no data is received, then warn)

This is what my noobish automation skills made, but it doesn’t work :stuck_out_tongue:

  trigger:
  - minutes: '10'
    platform: time_pattern
  condition:
  - below: '0'
    condition: numeric_state
    entity_id: sensor.house_power_usage
  action:
    ....

Any ideas? :slight_smile:

Try something like this.

automation:
  trigger:
    - platform: numeric_state
      entity_id: sensor.house_power_usage
      below: 0
      for:
        minutes: 10

In this case the power usage must be negative. So perhaps it would be better when you use “below: 1”.

1 Like

Thank you! I think it does what I want… Now it triggers one (1) time only… How can I make it so it “restarts” after each time it runs?