Notify or do something when an appliance like a dishwasher or washing machine finishes

May I ask with which device you monitor the dishwasher?

Hi @fastender. yes sure, I use a Gosund SP111 flashed with ESPhome. But I think e.gā€¦ a shelly plug s must also be sufficientā€¦ basically any plug or device that can near-realtime (~3s what I use) measure power consumption will do.

Can we please have hysteresis down to zero as well? Makes the usage more flexible (add a recommendation not to go lower than 0,25min). In my case, I have a pump in the basement that runs 10s than turns off. Thanks, Stefan.

I must be missing something I think.

I thought I could use this blueprint to alert me when my kettle has finished boiling. Iā€™ve got a flashed Gosund UP111. All added into HA etc.
Iā€™ve set the automation up to use the Gosunds ā€œPowerā€ sensor (giving W output)
set the starting power threshold to 100W (it is a kettle afterall!)
Starting hysteresis - 0.5m
Finishing power threshold - 2W
Finishing hysteresis - 0.25m ( it draws nothing when the switch has clicked - so sooner the better on notification)

Iā€™ve then set it to notify.notify so I get a message on my phone.

However, when I run the kettle, which has the smart socket set in always on mode, nothing happens.

Anyone got any clue as to why thatā€™d be the case? I canā€™t see why it wouldnā€™t work from those criteria.

Have you checked the flashed UP111 to make sure its calibrated? I had similar issue with washing machine but found out my calibration was way out of whack. It was only reporting 7W output on ~500W. My blueprint wouldnā€™t trigger obviously.

I have checked the calibration. It is correct and reports accordingly.
I have now managed to get some response from the alert. However it takes 5-6 minutes to actually send the alert to let me know the appliance has turned off. There arenā€™t any other delays on the alerts on the system and the system isnā€™t under any particular load. I have the blueprint automation set to 0.25 minutesā€¦

to work with a Aqara lumi.vibration.aq1
by LUMI vibration sensor using deconz I changed the lines below to device class of vibration.

    vibration_sensor:
      name: Vibration Sensor
      description: 'Vibration sensor entity ( Aqara  lumi.vibration.aq1 sensor). Needs to have device_class:
        vibration'
      selector:
        entity:
          domain: binary_sensor
          device_class: vibration

Hi. Thanks for the blueprint :slight_smile:
One wish, is that u can configure the sound to be played if the time is between 8 - 23.

1 Like

I have this simple configuration

alias: La lavatrice ha finito
description: ''
use_blueprint:
  path: >-
    sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
  input:
    power_sensor: sensor.lavatrice_energy_power
    actions:
      - service: notify.telegram
        data:
          message: La lavatrice ha finito

But action donā€™t trigger even if I press ā€œrun actionsā€. Any idea ?

3 Likes

For some reason is anyone else having an issue running TTS I have tried all of them but for some reason under this blue print TTS is not working. It works on other automations and it works as a script but as soon as I put it in this automation it doesnā€™t work.

1 Like

I am having the same issue the actions are not working. I thought it was just TTS but itā€™s everything

1 Like

I absolutely love this blueprint! Even the wife likes this feature.
I sometimes forget to start the dishwasher (waiting for that one glass before starting the dishwasher)
Has anyone made an automation based on this blueprint by if the dishwasher has not finished before 10:00pm you get a message reminding you that you forgot to turn it on?

My actions also donā€™t trigger. Couldnā€™t see anything wrong in the code though.

2 Likes

So I use this blueprint for a few months and it always worked great - even when HA has been restarted meanwhile, the automation got triggered and performed the desired actions properly.

BUT for some while (noticed it first about a week ago around March 21st) all automations based on this blueprint donĀ“t work sporadically. Today there even was NO restart of HA, only thing done was working on (other!) automations which reloaded all automations of course.

I have no idea why it doesnĀ“t work stable anymore. Maybe a recent HA Core update changed something fundamental?

@Sbyx what would you need to debug / track down this major issue? Any ideas what to test?

Update:
After doing some tests I suspect that when automations being reloaded (either manually or by simply editing ANY automation - does not need to be one based on this blueprint!) during the appliance currently running, the action will never trigger because the automation doesnā€™t know (anymore) the appliance is already running. So it seems like this blueprint is not automation reloading bulletproof (anymore).

Can someone confirm this behavior? Itā€™s very strange cause some time ago this automation/blueprint was even HA restart resistant and now it breaks as soon as you touch any automationā€¦ annoying and not very reliable! :frowning:

Any idea how to fix thatā€¦?

Iā€˜m thinking bout a ā€žfailsafeā€œ workaround: a second automation which checks if the appliance is below XX watts for more than XX minutes and triggers the action of this automation. Really ugly and not that smart.ā€œ to be honest.

Amazing work.
I use this and an imput_select to notify my 2 kids to take turns automaticaly to empty the dishwasher . When they mark it as complete we all get a phone notif, they get $$ and the ā€œturnā€ goes to the other one.

3 Likes

Care to share this? Have two kids that fight over the dishwasher job.

Great blueprint. Thank you for sharing!

Before I share my automation Iā€™ve one question:
In ā€œEdit in visual editorā€ I can see ā€œFinishing power thresholdā€ but switching to ā€œEdit in YAMLā€ it is nowhere to be seen. As the automation is working properly I donā€™t think thereā€™s a problem but you might want to look at it.

Okayā€¦as the blueprint is working great and my washing machine automations needed an upgrade I configured the following:

  1. My wife and me get a notification with actionable buttons when the washing machine has finished.
  2. My buttons are ā€œI will do itā€ (hanging the washing up) and ā€œCan you pleaseā€; hers are the same.
  3. If I click ā€œI will do itā€ she get.s a new notification that I will do hang up the washing and her first notification is being deleted. If she clicks the ā€œI will do itā€ itā€™s convinient the other way round.
  4. If I click ā€œPlease do itā€ sheā€™ll be asked in a new notfication to do it because Iā€™m in a meeting in HO. If she clicks her ā€œCan you please?ā€ I get a new notfication to ask me to do it.

Easy way to notify both of us and share the house work.

Youā€™ll need the base automations and another one for every answer to the second notification.

2 Likes

Sure!
I used this as a great inspiration for the overall setup (points & cash).

For the diswasher specificaly:

  1. I have a input_select
  dishingmachine_turn:
    name: Dishing Machine 
    options:
      - MySonName
      - MyDoughterName
    initial: MySonName
  1. A input_boolean
  dishwasher_is_empty:
    name: DishwasherIsEmpty
    icon: mdi:dishwasher
  1. The automation from this template
alias: Dishwasher has finished
description: ''
use_blueprint:
  path: >-
    sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
  input:
    power_sensor: sensor.kitchen_dishwasher_plug_power
    actions:
      - service: input_boolean.turn_off
        data: {}
        entity_id: input_boolean.dishwasher_is_empty
      - service: notify.mobile_app_my_iphone
        data:
          message: >-
            The dishwasher has finished!
            {{states('input_select.dishingmachine_turn')}} has to empty today!
          data:
            persistent: true
            tag: persistent
      - service: notify.mobile_app_wife_iphone
        data:
          message: >-
            The dishwasher has finished!
            {{states('input_select.dishingmachine_turn')}} has to empty today!
          data:
            persistent: true
            tag: persistent
      - service: notify.mobile_app_doughter_iphone
        data:
          message: >-
            The dishwasher has finished!
            {{states('input_select.dishingmachine_turn')}} has to empty today!
          data:
            persistent: true
            tag: persistent
      - service: notify.mobile_app_son_iphone
        data:
          message: >-
            The dishwasher has finished!
            {{states('input_select.dishingmachine_turn')}} has to empty today!
          data:
            persistent: true
            tag: persistent
      - data:
          volume_level: 0.1
        entity_id: media_player.living_echo
        service: media_player.volume_set
      - service: notify.alexa_media
        data:
          data:
            type: tts
          message: >-
            The dishwasher has finished!
            {{states('input_select.dishingmachine_turn')}} has to emtpy today!
          target:
            - media_player.living_echo
      - service: media_player.volume_set
        data:
          volume_level: 0.4
        entity_id: media_player.living_echo
    starting_hysteresis: '5'
    starting_threshold: '2'
    finishing_threshold: '2'
    finishing_hysteresis: '5'
  1. Each kid has his own dashboard with a conditional card (only show him the button is is his/her turn and if the dishwhasher is not empty) ā€¦ here is my sonā€™s ā€¦ similar fo rmy doughter
type: conditional
conditions:
  - entity: input_select.dishingmachine_turn
    state: MySonName
  - entity: input_boolean.dishwasher_is_empty
    state: 'off'
  - entity: sensor.daytime
    state: 'True'
card:
  type: entities
  entities:
    - entity: input_boolean.dishwasher_is_empty
      name: Empty Dishwasher
  1. When they ā€œcheckā€ it on their dahsboard (changing the input boolean to true) I have another automation (for each) that is:
  • giving them 10 points (each point is 5 euro cents)
  • sned notification to me and my wife
  • changing the input select to the other kid
  • in this way the button disapeares as well from their dashboard (see conditional card above)
alias: MySon Points Management ADD - Dishwasher
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.dishwasher_is_empty
    to: 'on'
    from: 'off'
condition:
  - condition: state
    entity_id: input_select.dishingmachine_turn
    state: MySonName
action:
  - service: input_number.set_value
    data:
      value: '{{ states(''input_number.points_MySonName'') | int + 10 | int }}'
    entity_id: input_number.points_david
  - service: notify.mobile_app_wife_iphone
    data:
      message: '{{states(''input_select.dishingmachine_turn'')}} emptied the dishwasher!'
      data:
        persistent: true
        tag: persistent
  - service: notify.mobile_app_my_iphone
    data:
      message: '{{states(''input_select.dishingmachine_turn'')}} emptied the dishwasher!'
      data:
        persistent: true
        tag: persistent
  - service: input_select.select_next
    data: {}
    entity_id: input_select.dishingmachine_turn
  - service: input_datetime.set_datetime
    data:
      datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'
    entity_id: input_datetime.dishwasher_last_empty
mode: single
max: 10

PS:

  • I could probably avoid 2 automations on point 5 with 1 script, but I did not have time to make it ā€¦ maybe later on
  • When HA restarts my son gets the turn ā€¦ I need to see if the ā€œrecorderā€ HA integration makes this persistent
  • A script will be as weel great to make sure Alexa does not announce the dishwasher finished during the night ( I could not make a condition into the blueprint for that ā€¦)
4 Likes

Iā€™m having the same issue. Anyone solved it yet?