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).
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.
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'