Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Sonoff POW api calls and relay state change #176

Closed
xoseperez opened this issue Jul 29, 2017 · 3 comments
Closed

Problems with Sonoff POW api calls and relay state change #176

xoseperez opened this issue Jul 29, 2017 · 3 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: Geert De Pecker (Bitbucket: gedp, GitHub: gedp)


Wondering if somebody else has the same problem: currently testing a couple of sonoffs for automation. They are not yet coupled yet to any mqtt server (waiting to be sure they are stable), but I'm polling the API to get the voltage, power, current with curl to get the measurements to my zabbix server. This is done approx every 5 min.

From time to time, I get a 0 voltage reading (without curl error, so value 0 returned). Also intermittently, the API is not responding.

Already changed the polling interval from 2 to 5 minutes. Helped a bit, but still having those problems.

Worse is that 2 or 3 times a day the relay just switches off by itself. When looking at the logs, this happens at times when I don't get replies from the API. At that time the sonoff seems down during 20 minutes.

I can exclude wifi range as they are just 2 meters away from the router.
Also only 4 wifi clients, so router should not be saturated.

Don't know if this could be a bug (running 1.7.1)? API part maybe not yet stable and causing reboots or alike? Possible external factor?

Would really appreciate hints.

PS: Don't know if this is the right place to put this. Somewhat more forum-like then issue.

Thanks for the good work,
Geert

@xoseperez
Copy link
Owner Author

Original comment by Geert De Pecker (Bitbucket: gedp, GitHub: gedp):


Forgot: I'm also pinging the sonoff's every 30 sec and measuring roundtrip every 60 sec (now changed to respectively 60 and 180 sec). There I see that, during the timeframe I do not obtain a value from the API (and the relay turned off by itself), the connection is still there, no connection loss at all.

@xoseperez
Copy link
Owner Author

With 1.9.0 API calls return preprocessed current, voltage and power values.

@xoseperez
Copy link
Owner Author

Removing milestone: 1.8.4 (automated comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant