Problem with dryer monitoring

Hello,
i have problems monitoring the laundry dryer and send a notification when drying stops.
this is the power consumption of one drying process:
dryer

the problem is here the short (2-3min.) spikes at the end. here the dryer is waiting and slowly turning the laundry to loosen up. but i get a notification at the end of every spike.

hope that you can give me a good tip (e.g. when the power is going down from above 400 watts to ca. 5 and it’is not rising for at least 5 mins to above 400 again or similar)

thank you very much in advance

Stephan

i use the following codes for my washing machine and my dryer:
configuration.yaml:

input_boolean:
  washer_switch:
    name: Waschmaschine an
    initial: off

  dryer_switch:
    name: Trockner an
    initial: off

sensors.yaml:

- platform: template
  sensors:
#    True when washer power level is below 2.0 Watts, high threshold of resting state Default state is true
    washer_pwrdn:
      value_template: "{{ states('sensor.steckdosenschalter_1_leistungsmessung_power') | int < 2.0 }}"
#    True when Dryer power level is below 2.0 watts, showing dryer is in operation (as opposed to just having the door open) 
#    Default state is false
    dryer_pwrdn:
      value_template: "{{ states('sensor.power_2') | int < 2.0 }}"

automations.yaml:

- alias: Trockner Start
  hide_entity: true
  trigger:
    platform: state
    entity_id: sensor.dryer_pwrdn
    from: 'True'
    to: 'False'
  action:
    service: input_boolean.turn_on
    entity_id: input_boolean.dryer_switch

- alias: Trockner Done1
  hide_entity: true
  trigger:
    platform: state
    entity_id: sensor.dryer_pwrdn
    from: 'False'
    to: 'True'
    for:
      minutes: '1'
  condition:
    condition: state
    entity_id: input_boolean.dryer_switch
    state: 'on'
  action:
  - data:
      data:
        title: Der Wäschetrockner informiert!
      message: Der Trockenvorgang ist beendet!
    service: notify.pushover

- alias: Trockner Done2
  hide_entity: true
  trigger:
    platform: state
    entity_id: sensor.dryer_pwrdn
    from: 'False'
    to: 'True'
    for:
      minutes: '1'
  condition:
    condition: state
    entity_id: input_boolean.dryer_switch
    state: 'on'
  action:
  - service: input_boolean.turn_off
    entity_id: input_boolean.dryer_switch

Why don’t you just increase the time before you get the message to above 5 minutes?

you mean the:

    for:
      minutes: '1'

in the automations.yaml?

will i get the message then only once or every 5 minutes?
I’ll try!

thank you very much for your answer!

I have something similar for my dishwasher:

#######################################################################
# Dishwasher Notification
######################################################################
# 1) On HomeAss startup set DW_Run boolean to off (part of boolean config)

# 2) When power higher than 50W then set DW_Run boolean to on
- alias: 'Dishwasher Set On'
  trigger:
    platform: numeric_state
    entity_id: sensor.s31_01_power
    above: 50
    for:
      minutes: 1
  condition:
    condition: state
    entity_id: input_boolean.dishwasher_run
    state: 'off'
  action:
    - service: notify.mypushbullet
      data_template:
        title: "Dishwasher Started"
        message: 'Dishwasher Started @ {{now().strftime("%H:%M")}}h'
    - service: input_boolean.turn_on
      entity_id: input_boolean.dishwasher_run

# 3) When power is below 5W for 10min and DW_Run is on set DW_run to off & notify
- alias: 'Dishwasher Notification'
  trigger:
    platform: numeric_state
    entity_id: sensor.s31_01_power
    below: 5
    for:
      minutes: 10
  condition:
    condition: state
    entity_id: input_boolean.dishwasher_run
    state: 'on'
  action:
    - service: notify.mypushbullet
      data_template:
        title: "Dishwasher Finished"
        message: 'Dishwasher Finished @ {{now().strftime("%H:%M")}}h'
1 Like

On my side I use node-red and the state-machine node to stop the dryer and send a notification when it detects the loose up cycle.

Yes. Then the dryer needs to be off for 5 minutes before you get the message

1 Like

Just make a switch that hold the notification state.
This switch can you restart when the dryer is restarted (using power again)

Then in you notification automation, you can check if this switch already is on (then you got a notification already)

thank you very much guys for your help!
i like the djeclemens idea a lot. i think i will give it a try.

I do basically the same thing, but I use the ‘run status’, not a ‘notification status’, for it.
Forgot to show the reset action at the end of my code sample, though:

    - service: input_boolean.turn_off
      entity_id: input_boolean.dishwasher_run