I am using a smart plug to monitor power to my dumb dishwasher and want to receive a notification when the wash cycle is complete, as close as possible, to the time it actually finished.
I was going to use the logic, “If the power is < 2.6 watts for three minutes” and “dishwasher_running (boolean helper set by another automation) == ON”, then assume the cycle is finished and send me a notification.
The problem is that the cycle dips to 2w for 25 minutes (08:05:08 - 08:30:09), then jumps to 4-10w (when the washer is draining) before being done, where it sits at about 2w until I come by and press then OFF button.
What is the best way handle this pattern?
For reference, here is my automation YAML:
alias: Dishwasher complete notification
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.dishwasher_plug_power
for:
hours: 0
minutes: 3
seconds: 0
below: 2.6
conditions:
- condition: state
entity_id: input_boolean.dishwasher_running
state: "on"
- condition: numeric_state
entity_id: sensor.dishwasher_plug_power
below: 2
actions:
- action: persistent_notification.create
metadata: {}
data:
message: The dishwasher is done, please open the door.
title: Dishwasher Complete!
notification_id: dishwasher_done_initial
- action: notify.mobile_app_pixel_8
metadata: {}
data:
message: Open the dishwasher door
title: Dishwasher Complete!
data:
ttl: 0
priority: high
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- repeat:
sequence:
- action: persistent_notification.create
metadata: {}
data:
message: "Reminder: Open the dishwasher door!"
title: Dishwasher Reminder
notification_id: dishwasher_done_repeat
- action: notify.mobile_app_pixel_8
metadata: {}
data:
message: Open the dishwasher door
title: Dishwasher Reminder
data:
ttl: 0
priority: high
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
until:
- condition: state
entity_id: binary_sensor.aqara_dishwasher_door_sensor_contact
state: "on"
- action: input_boolean.toggle
metadata: {}
data: {}
target:
entity_id: input_boolean.dishwasher_running
mode: single