Nous A1 tasmota generates an update when reconnecting after lost wifi

Hi there,

I got some automation working with my tasmota powerd nous a1 (former Gosund SP111).

It basically monitors the energy consumption of our washingmashine and dryer and reports in the HA-App when almost finished and finished.

Today i had to switch some wifi hardware, and when the nous a1 came online again, it reported the machine to be finished… LOL. I guess it switched from “unknown” to 0 Watts and therefore dropped below my treshhold for finished and reported accordingly.

How could I fix this?

this is the automation code I use

alias: Dryer
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.socket_dryer_energy_power
    below: '275'
    for:
      hours: 0
      minutes: 3
      seconds: 0
  - platform: numeric_state
    entity_id: sensor.socket_dryer_energy_power
    below: '215'
    for:
      hours: 0
      minutes: 0
      seconds: 30
  - platform: numeric_state
    entity_id: sensor.socket_dryer_energy_power
    below: '5'
    for:
      hours: 0
      minutes: 1
      seconds: 0
condition: []
action:
  - choose:
      - conditions:
          - condition: numeric_state
            entity_id: sensor.socket_dryer_energy_power
            below: '215'
        sequence:
          - service: notify.mobile_app_iphone_1
            data:
              message: tumbling
              title: Dryer
      - conditions:
          - condition: numeric_state
            entity_id: sensor.socket_dryer_energy_power
            above: '215'
        sequence:
          - service: notify.mobile_app_iphone_1
            data:
              message: cooling down, almost finished
              title: Dryer
      - conditions:
          - condition: numeric_state
            entity_id: sensor.socket_dryer_energy_power
            below: '5'
        sequence:
          - service: notify.mobile_app_iphone_1
            data:
              message: finished, no more tumbling
              title: Dryer
    default: []
mode: single

any suggestions to fix the issue?

My previous understanding was that the trigger defined by “below” would happen when the value passes the threshold. Obviously thats wrong.

I have also an issue with the accumulated energy consumption, tasmota firmware 11, after restart, the accumulated consumption is back to the value I flashed the device with from my initial config file (you know, the settings that are identical to all units, aside from fixed IP, MQTT topics and the Name and Friendly Name.) Is that a known issue? Could not find anything on the tasmota side to indicate its a known issue with tasmota or the nous A1