Sonoff POW rule trigger for Current / Power

Moderators: Voyager, BertB, rtenklooster, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
Sandominion
Normal user
Posts: 10
Joined: 02 Aug 2018, 12:36

Sonoff POW rule trigger for Current / Power

#1 Post by Sandominion » 23 Dec 2018, 01:06

I try to use a Sonoff POW (R2 v1.0 with mega-20180826) for failure monitoring of a drainage pump. The pump is allways voltage supplied and switches itself on/off dependend on the water level. If the pump is working the Sonoff recognize the used current and even calculates the energy but I don't manage to use this for triggering a command like:
On Pumpe#Current>0 do ...

If I use an other device from my list everything works fine e.g.:
On Button#pressed>0 do ...

My settings for devices are:
Task: 1
Enabled: ✔
Device: Energy (AC) - CSE7766 [TESTING]
Name: Pumpe
GPIO:
Values: Voltage: 239.15 Power: 36.90 Current: 0.16 Pulses: 12577.00

Task: 2
Enabled: ✔
Device: Switch input - Switch
Name: Button
GPIO: GPIO-0
Values: pressed: 1


Might this be somehow connected to the selected device type for current measurement 'Energy (AC) - CSE7766 [TESTING]'?

Any suggestions?

User avatar
grovkillen
Normal user
Posts: 3034
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff POW rule trigger for Current / Power

#2 Post by grovkillen » 23 Dec 2018, 08:33

If you look in the log, what do you see?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Sandominion
Normal user
Posts: 10
Joined: 02 Aug 2018, 12:36

Re: Sonoff POW rule trigger for Current / Power

#3 Post by Sandominion » 23 Dec 2018, 14:36

grovkillen wrote:
23 Dec 2018, 08:33
If you look in the log, what do you see?
When I connect a device to drain power there is no trigger reaction. It seemed that the log is frozen. After refresh for the log I can see other trigger events (e.g. for pressing a Button) but never for the change of Power / Current.

Sandominion
Normal user
Posts: 10
Joined: 02 Aug 2018, 12:36

Re: Sonoff POW rule trigger for Current / Power

#4 Post by Sandominion » 19 Jun 2019, 11:36

I just found out that I'm not the only one with this problem:
https://letscontrolit.com/forum/viewtop ... 6&start=53

I have solved my problem by following the advice to change the default value '0' for 'Interval' of the 'Data Acquisition' in the 'Task Settings' for device 'Energy (AC) - CSE7766 (POW r2) [TESTING]'.

At an interval of 6s the trigger works fine and there is no frozen LOG anymore.

What can I do to prevent the next user from stepping into the same trap?

Is it worth it to write a wiki article (for example, behind the question mark on the configuration page) or should it be reported in Github as an error / false default (and will hopefully be changed in the near future)?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest