I have recently placed a Sonoff Pow running TASMOTA on my washing machine, and it has been working great with voltage detection to turn it off when it has finished a washing cycle.
The issue is the Sonoff seems to have small voltage spikes randomly throughout the day when it is switched off. Perhaps this is from WiFi, but I wouldn’t have thought it would go as high as 9-10 watts to ping WiFi. It seems odd. It’s almost like it is being turned on momentarily.
You can see the small spikes in the below picture. Is this an issue, is there a solution that someone knows off? Thanks in advance.
namadori
(Namadori)
February 3, 2018, 9:28am
2
During the day the Sonoff is switched ON or OFF?
kanga_who
(Jason)
February 3, 2018, 10:03am
3
Switch on at the wall, the Sonoff itself is switched off.
syssi
February 3, 2018, 10:20am
4
Which version of Tasmota do you use?
namadori
(Namadori)
February 3, 2018, 10:24am
5
Thee observations:
As far as I can understand, the Sonoff power consumption is not measured, see http://tinkerman.cat/hlw8012-ic-new-sonoff-pow/#lightbox-gallery-NPLv/1/
If the Sonoff is off there is no way the appliance can consume power, because the circuit is open
In my Sonoff Pow with Tasmota, when the switch is OFF every indicator (current, voltage, watt, power factor) goes flat zero.
My suspect is of a software glitch. Do you have the latest Tasmota version?
kanga_who
(Jason)
February 4, 2018, 12:50am
6
5.0.7 Tasmota.
I have tried to flash the newest version, but each time have errors when compiling the code - missing files, etc. I have set the same config in the latest version as I have in 5.0.7.
syssi
February 4, 2018, 8:47am
7
You could use the “firmware upload” function and upload a compiled binary:
Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full do...
https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.11.1/sonoff.bin
namadori
(Namadori)
February 4, 2018, 9:41am
8
In tasmota 5.6 and 5.7 there are some fixes related to Sonoff Pow, maybe an update will resolve the glitch.
I’ve have tried this and the Sonoff became unresponsive, couldn’t access it via the webpage, or control it in any way. Even clicking the onboard button did nothing.
I’ve reflashed the old firmware again (5.0.7) to get it working. For some reason, I just can not seem to compile the newer version without getting constant errors.
syssi
February 9, 2018, 6:53am
10
Just post the errors. It will be a missing library usually.
1 Like
scfigg
(Figg)
January 5, 2019, 1:24pm
11
Did you ever solve this? I’m using a POW R2 and have the same issue where the watts will spike, causing false washing machine alerts.
syssi
January 5, 2019, 1:54pm
12
I’m using an average sensor:
switch:
- platform: mqtt
name: "sonoff1663"
state_topic: "stat/sonoff-1663/POWER"
command_topic: "cmnd/sonoff-1663/POWER"
availability_topic: "tele/sonoff-1663/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
optimistic: false
sensor:
- platform: statistics
name: "sonoff1663 power stats"
entity_id: sensor.sonoff1663_power
sampling_size: 8
max_age:
minutes: 4
- platform: template
sensors:
energy_costs_total:
friendly_name: Total costs
value_template: "{{ (states.sensor.sonoff1663_energy_total.state|float * 0.30)|round(2) }}"
unit_of_measurement: €
icon_template: mdi:cash-100
- platform: mqtt
name: "sonoff1663 energy today"
state_topic: "tele/sonoff-1663/SENSOR"
value_template: '{{ value_json.ENERGY.Today }}'
unit_of_measurement: "kWh"
- platform: mqtt
name: "sonoff1663 energy yesterday"
state_topic: "tele/sonoff-1663/SENSOR"
value_template: '{{ value_json.ENERGY.Yesterday }}'
unit_of_measurement: "kWh"
- platform: mqtt
name: "sonoff1663 energy total"
state_topic: "tele/sonoff-1663/SENSOR"
value_template: '{{ value_json.ENERGY.Total }}'
unit_of_measurement: "kWh"
- platform: mqtt
name: "sonoff1663 power"
state_topic: "tele/sonoff-1663/SENSOR"
value_template: '{{ value_json.ENERGY.Power }}'
unit_of_measurement: "W"
- platform: mqtt
name: "sonoff1663 voltage"
state_topic: "tele/sonoff-1663/SENSOR"
value_template: '{{ value_json.ENERGY.Voltage }}'
unit_of_measurement: "V"
- platform: mqtt
name: "sonoff1663 current"
state_topic: "tele/sonoff-1663/SENSOR"
value_template: '{{ value_json.ENERGY.Current }}'
unit_of_measurement: "A"
input_boolean:
laundry_ready:
name: Laundry ready
icon: mdi:tshirt-crew
initial: off
laundry_hurled:
name: Laundry hurled
icon: mdi:gauge-full
initial: off
alert:
laundry_ready:
name: The laundry is ready!
entity_id: input_boolean.laundry_ready
state: 'on'
repeat:
- 15
- 15
- 30
- 60
can_acknowledge: true
skip_first: false
notifiers:
- telegram_mobile
This is my automation:
automation:
- alias: Turn off the laundry ready indicator
initial_state: true
trigger:
- platform: state
entity_id: switch.sonoff1663
from: 'on'
to: 'off'
action:
- service: homeassistant.turn_off
entity_id: input_boolean.laundry_ready
- service: homeassistant.turn_off
entity_id: input_boolean.laundry_hurled
- alias: Turn on the laundry ready indicator
initial_state: true
trigger:
- platform: numeric_state
entity_id: sensor.sonoff1663_power_stats_mean
below: 7
for:
minutes: 2
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.laundry_ready
state: 'off'
- condition: state
entity_id: switch.sonoff1663
state: 'on'
- condition: state
entity_id: input_boolean.laundry_hurled
state: 'on'
action:
- service: homeassistant.turn_on
entity_id: input_boolean.laundry_ready
- alias: Turn on the laundry hurled indicator
initial_state: true
trigger:
- platform: numeric_state
entity_id: sensor.sonoff1663_power_stats_mean
above: 200
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.laundry_hurled
state: 'off'
- condition: state
entity_id: switch.sonoff1663
state: 'on'
action:
- service: homeassistant.turn_on
entity_id: input_boolean.laundry_hurled
# groups.yaml
sonoff1663:
name: Washing machine
control: hidden
entities:
- switch.sonoff1663
- sensor.sonoff1663_voltage
- sensor.sonoff1663_power
- sensor.sonoff1663_current
- sensor.sonoff1663_energy_today
- sensor.sonoff1663_energy_yesterday
- sensor.sonoff1663_energy_total
- sensor.energy_costs_total
- sensor.sonoff1663_power_stats_mean
- input_boolean.laundry_hurled
- input_boolean.laundry_ready