Page 1 of 1
Sonoff POW Counter
Posted: Tuesday 01 May 2018 23:07
by l00pz
Hi Guys,
Today I received my first Sonoff POW Module, and flashed it with the Tasmota Firmware. I then added it to Domoticz, and using the builtin Domoticz options of the Firmware the current Power of the Sonoff is nicely reported to Domoticz. However I have an issue with the "Today" Counter of my virtual Switch. The Sonoff reports the "Total" value of the Device as "Total":0.238,"with MQTT, but when I look at the counter I get a completely different value. I guess Domoticz expects this value to be multiplied by 1000 or something, but I don't have an option to set this in the Tasmota Firmware or in Domoticz. Am I doing something wrong here? Or are the settings of my "Counter Divider" wrong in the Settings of Domoticz? I have my Virtual Switch set to "Energy Read: From Device".
Re: Sonoff POW Counter
Posted: Friday 04 May 2018 9:46
by l00pz
Nevermind.. I was being impatient and stupid

. I was expecting that the "Daily Meter" would be filled with the value "Energy Today" from the Sonoff from the start, but Domoticz uses this as starting point and starts counting from that point onwards..
Re: Sonoff POW Counter
Posted: Monday 30 July 2018 9:57
by patzzz
Could you please share how you configured both domoticz and the pow for displaying the current usage? I am able to toggle the switch using Domoticz, but I cannot succeed in configuring to properly display the power usage (the main reason I bought the pow, offcourse).
Re: Sonoff POW Counter
Posted: Monday 30 July 2018 12:00
by l00pz
patzzz wrote: ↑Monday 30 July 2018 9:57
Could you please share how you configured both domoticz and the pow for displaying the current usage? I am able to toggle the switch using Domoticz, but I cannot succeed in configuring to properly display the power usage (the main reason I bought the pow, offcourse).
I created a virtual switch (Electric Instant + Counter) in Domoticz, and on the Webinterface of the Sonoff I entered the IDX from this virtual switch under MQTT Settings. More info can be found on the Sonoff Tasmota Wiki
https://github.com/arendst/Sonoff-Tasmota/wiki/Domoticz
Re: Sonoff POW Counter
Posted: Monday 30 July 2018 13:22
by patzzz
The description in the wiki is not helpful for the power measurement as available in the POW unit. I only found a description how to connect the virtual switch in Domoticz. I'm not trying to hijack the topic by the way.
In configuration/Domoticz configuration I have:
Idx 1 <virtual switch idx id>
Sensor idx 4 Power,Energy <Electric Instant + Counter idx id>
Update timer 0
It somewhat works now; I can switch the output on and off and I sometimes have a measurement on the power usage. But it looks like it is not being updated. I tried to set the update timer to 5 for instance but then I get "2018-07-30 13:14:56.003 MQTT: Topic: domoticz/in, Message: {"idx":<virtual switch idx id>,"nvalue":1,"svalue":"","Battery":59,"RSSI":8}" every 5 minutes. Don't know why the heck this ac powered device is sending a battery status

Re: Sonoff POW Counter
Posted: Wednesday 12 September 2018 9:42
by Schorschi
Hi,
i add new devices. I use sonoff S26 modules with Tasmota Version 6.2.1.3.
I get the switch running. But i can't get running the power-, voltage-, current counter.
I configured virtual devicec etc. like described here:
https://github.com/arendst/Sonoff-Tasmota/issues/1285
I attached my tasmota domoticz configuration.
I see no updates on domoticz.
Maybe someone can help...?
Re: Sonoff POW Counter
Posted: Wednesday 12 September 2018 10:41
by Prutsium
I dont think the S26 can do power metering ........
https://www.itead.cc/sonoff-s26-wifi-smart-plug.html
Re: Sonoff POW Counter
Posted: Wednesday 12 September 2018 11:22
by Schorschi
Hi,
it looks like the S26 use an power management chip.
See:
https://www.cnx-software.com/2018/06/03 ... -teardown/
Maybe not supported???
Re: Sonoff POW Counter
Posted: Wednesday 12 September 2018 11:42
by Prutsium
Thats internal power management for the 3.3v supply and not for measurement of the 220v line.
Re: Sonoff POW Counter
Posted: Wednesday 12 September 2018 14:26
by Schorschi
Hi,
maybe my mistake.
The board includes an regulator for 3,3V and also an HALL-Sensor for current measurement.
See this picture:
Re: Sonoff POW Counter
Posted: Wednesday 12 September 2018 15:33
by Prutsium
Schorschi wrote: ↑Wednesday 12 September 2018 14:26
Hi,
maybe my mistake.
The board includes an regulator for 3,3V and also an HALL-Sensor for current measurement.
See this picture:
Again the S26 doesnt have a power sensor.
The chip you refer to is not a HAL sensor as it's nowhere near the line that draws current but it's in the line of the 220V > 5/3.3V conversion.
Its actually an MDU1511 here are the specs:
Code: Select all
The MDU1511 uses advanced MagnaChip’s MOSFET
Technology, which provides high performance in on-state
resistance, fast switching performance and excellent
quality. MDU1511 is suitable device for DC/DC Converter
and general purpose applications.
Re: Sonoff POW Counter
Posted: Saturday 16 February 2019 13:22
by ilfavi
I realized that "update timer" affects main idx only. The other sensors idx are updated every 5 minutes. So it's impossible to know instant consumption of the device. You only have a measurement that can be till 5 minutes old.
Re: Sonoff POW Counter
Posted: Saturday 16 February 2019 13:50
by ilfavi
but I found thi command to be used in console:
TelePeriod <secs> Set telemetry period between 10 and 3600 seconds
and it works