Alert not firing after power usage drops (Washing Machine finished usecase)

I have a ‘dumb’ clothes dryer connected via a smart power monitoring socket that I’d like to get a Pushover notification for when it has finished it’s cycle. I can read power ok, and I know my pushover integration is working, the automation isn’t firing though. What am I missing here?

alias: Pushover - Info - Clothes Dryer has Finished
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.tasmota_energy_power_2
    for:
      hours: 0
      minutes: 5
      seconds: 0
    above: '100'
condition: []
action:
  - wait_for_trigger:
      - platform: numeric_state
        entity_id: sensor.tasmota_energy_power_2
        below: '10'
        for:
          hours: 0
          minutes: 5
          seconds: 0
    continue_on_timeout: true
  - service: notify.pushover
    data:
      message: ' Your clothes are dry!'
      title: 'INFO: Clothes Dryer has finished'
mode: single

Maybe you miss nothing :wink:

Have you restarted your HA instance or reloaded the “automations” platform after the numeric_state state trigger was fired?
If thats the case your automation will stop and with it your “wait_for_trigger” loop.

A better option would possiblity be to define two triggers and get rid of the “wait_for_trigger” - one which just triggers on your “above 100” and then based on a chosse with “trigger id” condition, sets a input_boolean marker that the machine is running.
The second trigger which fires on your “below 10” with condition of “input_boolean” state true and based on the choose “trigger id” again sends your notification & resets the input_boolean.

THis way your “automation” does not stop/ crush on restart / automation platform reload.

I found the perfect working solution here: Washing machine power consumption trigger

Thats what I suggested as code (untested - so please verify yourself, not just copy & pase) :wink:

alias: Pushover - Info - Clothes Dryer has Finished
description: ''
trigger:
  - id: 'started'
    platform: numeric_state
    entity_id: sensor.tasmota_energy_power_2
    for:
      hours: 0
      minutes: 5
      seconds: 0
    above: '100'
  - id: 'stopped'
    platform: numeric_state
    entity_id: sensor.tasmota_energy_power_2
    for:
      hours: 0
      minutes: 5
      seconds: 0
    below: '50'
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: 'started'
        sequence:
          - service: input_boolean.turn_on
            data:
              entity_id: input_boolean.washing_started
      - conditions:
          - condition: state
            entity_id: input_boolean.started
            state: 'on'
          - condition: trigger
            id: 'stopped'
        sequence:
          - service: input_boolean.turn_off
            data:
              entity_id: input_boolean.started
          - service: notify.pushover
            data:
              message: ' Your clothes are dry!'
              title: 'INFO: Clothes Dryer has finished'
mode: single

Hi, thanks for this, I think you were right, I restarted HA earlier and this evening it fired - I didn’t realise I had to reload Automations for ones that were created in the UI.
Anyway, I like the elegance of your suggestion below so will have a play with this tomorrow - thanks for taking the time to help me with it!