Sonoff POW Counter
Moderator: leecollings
-
- Posts: 42
- Joined: Wednesday 01 April 2015 11:52
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Sonoff POW Counter
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".
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".
-
- Posts: 42
- Joined: Wednesday 01 April 2015 11:52
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Sonoff POW Counter
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
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).
-
- Posts: 42
- Joined: Wednesday 01 April 2015 11:52
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Sonoff POW Counter
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/Domoticzpatzzz 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).
Re: Sonoff POW Counter
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
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

-
- Posts: 25
- Joined: Thursday 30 November 2017 22:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Sonoff POW Counter
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...?
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 (106.23 KiB) Viewed 9405 times
-
- Posts: 92
- Joined: Monday 18 June 2018 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Germany / Netherlands
- Contact:
Re: Sonoff POW Counter
I dont think the S26 can do power metering ........
https://www.itead.cc/sonoff-s26-wifi-smart-plug.html
https://www.itead.cc/sonoff-s26-wifi-smart-plug.html
-
- Posts: 25
- Joined: Thursday 30 November 2017 22:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Sonoff POW Counter
Hi,
it looks like the S26 use an power management chip.
See:
https://www.cnx-software.com/2018/06/03 ... -teardown/
Maybe not supported???
it looks like the S26 use an power management chip.
See:
https://www.cnx-software.com/2018/06/03 ... -teardown/
Maybe not supported???
-
- Posts: 92
- Joined: Monday 18 June 2018 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Germany / Netherlands
- Contact:
Re: Sonoff POW Counter
Thats internal power management for the 3.3v supply and not for measurement of the 220v line.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???
-
- Posts: 25
- Joined: Thursday 30 November 2017 22:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Sonoff POW Counter
Hi,
maybe my mistake.
The board includes an regulator for 3,3V and also an HALL-Sensor for current measurement.
See this picture:
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 (384.14 KiB) Viewed 9366 times
-
- Posts: 92
- Joined: Monday 18 June 2018 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Germany / Netherlands
- Contact:
Re: Sonoff POW Counter
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.
-
- Posts: 11
- Joined: Friday 04 May 2018 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Sonoff POW Counter
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.
-
- Posts: 11
- Joined: Friday 04 May 2018 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Sonoff POW Counter
but I found thi command to be used in console:
TelePeriod <secs> Set telemetry period between 10 and 3600 seconds
and it works
TelePeriod <secs> Set telemetry period between 10 and 3600 seconds
and it works
Who is online
Users browsing this forum: No registered users and 1 guest