Washing Machine Power Consumption Automation

I know this probably a really easy fix, but I am knew to this and need some assistance.

I have a meross smart plug with power consumption attached to my washing machine, and I want to set up a automation that push messages me when the wash is finished. The problem I am having is the consumption sits at 1.6W when its finished and it regularly drops to 0W during the cycle (if only for a few minutes).

Please help …

Something like this ? You may need to play around with the values

- alias: Notify when Laundry is complete
  trigger:
    platform: state
    entity_id: sensor.washer_power
    below: 5
    for:
      minutes: 3
  action:
    - service: notify.notify
      data:
        message: The laundry is complete
1 Like

Sorry my mistake, have cracked the washing machine finished automation its the washing machine on one i need help with, i find if i just set it to above 5 then because it keeps dropping to zero during the wash cycle i get loads of notifications. Hope this makes sense.

Could try a template sensor

It will turn on and off during a cycle if the value drops below 5, so have an automation look for the change to off for 3 mins as above

Change entity_id to your sensor

sensor:
  - platform: template
    sensors:
      washer_status:
        friendly_name: "Washer Status"
        value_template: >-
          {% if (state_attr('sensor.popp_123658_plug_in_switch_plus_power_meter_power', 'power_consumption')|float <= 5) %}
            Off
          {% else %}
            On
          {% endif %}
1 Like

I did it with this, https://philhawthorne.com/making-dumb-dishwashers-and-washing-machines-smart-alerts-when-the-dishes-and-clothes-are-cleaned/

So it now looks like this;

sensor:
  - platform: template
    sensors:
      washer_status:
        friendly_name: "Washer Status"
        value_template: >-
          {% if (state_attr('sensor.meross_1806229817937125133234298f1368eb_power', 'power_consumption')|float <= 5) %}
            Off
          {% else %}
            On
          {% endif %}

So stick all the above in my configuration.yaml then create a new automation that looks at ?

If your smart plug supports ESPHome, you should try that. It will let you offload this logic to the plug and just allow HA to act based on its operating state.

I use the statistics sensor to level out the watts that my washer is using … you may have to play with the sample size etc to make sure it doesn’t get too low but I can see when the single green “Done” led is on… so we know when it’s done but the clothes haven’t been removed…

I´ve tried to adopt this code but had the problem that the On / Off state switches while the washing machine isn´t working. The problem I´m don´t realy familar with templating.

I use an innr Smartplug over ConBee II for that.

sensor:
  - platform: template
    sensors:
      washer_status:
        friendly_name: "Status Waschmaschine"
        value_template: >-
          {% if (state_attr('sensor.waschmaschine_leistung', 'current') <= 5) %}
            Off
          {% else %}
            On
          {% endif %}

Entity States:

'on': true
current: 0
voltage: 234
unit_of_measurement: W
friendly_name: Waschmaschine Leistung
device_class: power
icon: 'mdi:washing-machine'

Bildschirmfoto 2020-07-17 um 10.59.33