Send notification when washinmachine is ready

Hi.
I have an old non smart washing machine that i want to get notifications from when it´s ready.
I have an IKEA inspelning to work with.
My first attempt is this.

alias: Tvatt Klar
description: “”
triggers:

  • type: power
    device_id: 96aa655023ad39xxxxxxxxxxxxxxxxx4
    entity_id: f103d257108a1xxxxxxxxxxxxxxxxxx7
    domain: sensor
    trigger: device
    below: 10
    for:
    hours: 0
    minutes: 5
    seconds: 0
    conditions:
    actions:
  • action: notify.mobile_app_sm_a528b
    metadata: {}
    data:
    message: Tvatt klar
    title: Tvatt klar
    mode: single

But this generated a lot of false notifications.
So i created this instead but this one does not generate any notifications.

alias: Tvatt_test
description: “”
triggers:

  • type: power
    device_id: 96aa655023axxxxxxxxxxxxxxxxxxxx4
    entity_id: f103d25710xxxxxxxxxxxxxxxxxxxx07
    domain: sensor
    trigger: device
    above: 10
    for:
    hours: 0
    minutes: 20
    seconds: 0
    conditions:
    actions:
  • wait_for_trigger:
    • type: power
      device_id: 6aa655023axxxxxxxxxxxxxxxxxxxx4
      entity_id: f103d25710xxxxxxxxxxxxxxxxxxxx07
      domain: sensor
      trigger: device
      below: 5
      for:
      hours: 0
      minutes: 5
      seconds: 0
      continue_on_timeout: false
  • action: notify.mobile_app_sm_a528b
    metadata: {}
    data:
    message: Tvatt Klar
    mode: single

Any suggestions or ideas?

Hi,

I am basically taking the same approach for my dish washer. Except i also created a template binary sensor that turns on & off based on the smart plug power consumption.

Automation snip:

triggers:
  - entity_id:
      - binary_sensor.dishwasher_state
    from: "on"
    to: "off"
    for:
      hours: 0
      minutes: 20
      seconds: 0
    trigger: state
conditions: []

Binary Sensor:

    - name: "Dishwasher State"
      unique_id: kogan_plug_11_state
      device_class: running
      state: |
        {{ states('sensor.kogan_plug_11_energy_power') | float(0) > 3 }}

I do remember it did take a bit of testing to arrive at the right values for what my smart plug was reporting when the machine was actually running through it’s various states. Also, the interval between status updates from the plug can have a bearing on the timings you use in the automation. In my case the smart plug is running Tasmota firmware & it that dates comes via MQTT so i could manipulate (reduce) the time between status updates. By default, in my case, it was reporting state changes every 5 or so minutes.

In case you didn’t already, I would start by just observing the power consumption numbers from the plug to see if you can identify why so many false notifications.

Cheers
Nick

For this kind of thing I highly recomend Blacky’s “Appliance Notifications & Actions - Washing Machine - Clothes Dryer - Dish Washer - ETC” blueprint. It works a charm and is very flexible.

I got it to working with below code:

alias: Notify_Tvatt_Klar
description: “”
triggers:

  • type: power
    device_id: 96aa655023a4
    entity_id: f103d257108a1417
    domain: sensor
    trigger: device
    above: 20
    for:
    hours: 0
    minutes: 20
    seconds: 0
    conditions:
    actions:
  • wait_for_trigger:
    • type: power
      device_id: 96aa655023a4
      entity_id: f103d257108a1417
      domain: sensor
      trigger: device
      below: 10
      for:
      hours: 0
      minutes: 5
      seconds: 0
      continue_on_timeout: false
  • action: notify.mobile_app_sm_a528b
    metadata: {}
    data:
    message: Tvattmaskinen är Klar
    title: Tvattmaskinen är Klar
  • action: notify.mobile_app_iphone
    metadata: {}
    data:
    message: Tvattmaskinen är klar
    title: Tvattmaskinen är Klar
    mode: single