Sonoff POW Counter

Everything about esp8266 and more.
Post Reply
l00pz
Posts: 56
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Sonoff POW Counter

Post by l00pz » Tuesday 01 May 2018 23:07

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".

l00pz
Posts: 56
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Sonoff POW Counter

Post by l00pz » Friday 04 May 2018 9:46

Nevermind.. I was being impatient and stupid :oops: . 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..

patzzz
Posts: 4
Joined: Friday 06 April 2018 23:19
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sonoff POW Counter

Post by patzzz » 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).

l00pz
Posts: 56
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Sonoff POW Counter

Post by l00pz » Monday 30 July 2018 12:00

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

patzzz
Posts: 4
Joined: Friday 06 April 2018 23:19
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sonoff POW Counter

Post by patzzz » Monday 30 July 2018 13:22

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 :)

Schorschi
Posts: 30
Joined: Thursday 30 November 2017 23:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff POW Counter

Post by Schorschi » Wednesday 12 September 2018 9:42

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...?
Attachments
Tasmota.jpg
Tasmota.jpg (106.23 KiB) Viewed 985 times

Prutsium
Posts: 70
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Sonoff POW Counter

Post by Prutsium » Wednesday 12 September 2018 10:41

I dont think the S26 can do power metering ........
https://www.itead.cc/sonoff-s26-wifi-smart-plug.html

Schorschi
Posts: 30
Joined: Thursday 30 November 2017 23:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff POW Counter

Post by Schorschi » Wednesday 12 September 2018 11:22

Hi,

it looks like the S26 use an power management chip.

See:
https://www.cnx-software.com/2018/06/03 ... -teardown/

Maybe not supported???

Prutsium
Posts: 70
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Sonoff POW Counter

Post by Prutsium » Wednesday 12 September 2018 11:42

Schorschi wrote:
Wednesday 12 September 2018 11:22
Hi,

it looks like the S26 use an power management chip.

See:
https://www.cnx-software.com/2018/06/03 ... -teardown/

Maybe not supported???
Thats internal power management for the 3.3v supply and not for measurement of the 220v line.

Schorschi
Posts: 30
Joined: Thursday 30 November 2017 23:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff POW Counter

Post by Schorschi » 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:
Attachments
Sonoff-S26-Board-Large.jpg
Sonoff-S26-Board-Large.jpg (384.14 KiB) Viewed 946 times

Prutsium
Posts: 70
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Sonoff POW Counter

Post by Prutsium » Wednesday 12 September 2018 15:33

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. 

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest