Sonoff POW random power spikes?

I just installed some sonoff POWs, and it’s causing a privoem with my washing machine automation. I have a template that shows “true” if the wattage is below 3. And an automation that says if it’s above 3, thendrios below 3, then send me an alert that the washing machine is done. This worked fine with any HS110 but I’ve transitioned to the POW. Looks like random power spikes are throwing false positives, causing my automation to kick in.

Any ideas?

The POW is picking up standby power used by your washing machine.

Add a time to your trigger. E.g. above 3W for 30 sec. = running.

Thanks that makes sense. I have a template that shows true or false if the watts are under or over 3 Watts. The automation trigger then says to trigger if does sensor goes from false to true, meaning that it was over three watts and then it finally went under 3 Watts, meaning that it’s done. any ideas on what I should change? Should I change the sensor or how it’s triggered?

You could change the trigger point to 8W.

I actually use the POW to turn off my washing machine when it is finished so it does not draw standby power. This may not be an option if you don’t have easy acces to the POW button near the washing machine when you want to turn it on.

- platform: template
  sensors:
    washing_machine_running:
      friendly_name: Washing Machine Running
      entity_id: sensor.washing_machine_power
      value_template: "{{ states('sensor.washing_machine_power') | float > 2.5 }}"
      device_class: moving


- id: washing_machine_finished
  alias: 'Washing Machine Finished'
  trigger:
    platform: state
    entity_id: binary_sensor.washing_machine_running
    to: 'off'
    for:
      seconds: 30
  action:
  - service: notify.all_ios_devices
    data_template:
      message: 'The washing machine has finished'
      data:
        push:
          sound: "WashingFinished.wav"
  - service: switch.turn_off
    entity_id: switch.washing_machine

This is the binary_sensor template I’m using for detecting when the washing machine and dryer is running or finished:

- platform: template
  sensors:
    washer_status:
      friendly_name: "Washing Machine Status"
      delay_on:
        minutes: 10
      delay_off:
        minutes: 3
      value_template: >-
        {{ states('sensor.Washer_power')|float > 10 }}
      entity_id: sensor.Washer_power
    dryer_status:
      friendly_name: "Dryer Status"
      delay_on:
        minutes: 10
      delay_off:
        minutes: 3
      value_template: >-
        {{ states('sensor.dryer_power')|float > 10 }}
      entity_id: sensor.dryer_power