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

[New feature]: implement self protection for sonoff-pow #218

Closed
lionhe1966 opened this issue Mar 17, 2017 · 12 comments
Closed

[New feature]: implement self protection for sonoff-pow #218

lionhe1966 opened this issue Mar 17, 2017 · 12 comments
Labels
help needed Action - Asking for help from the community

Comments

@lionhe1966
Copy link

A batch of Sonoff-Pow switches produced in December 2016 and January 2017 is defective. ITEAD published a recall on their website
(https://www.itead.cc/blog/sonoff-th16-and-pow-recall-notice)
Wouldn't it be possible to implement a simple self-protection rule that switches the relay off if the power exceeds some user defined threshold?

@arendst
Copy link
Owner

arendst commented Mar 17, 2017

Take a look at commands PowerHigh, MaxPower, MaxPowerHold and MaxPowerWindow. PowerHigh needs a server to act on it's result (power down Pow). The other three inbuilt commands may be what you need. Experiment with it (no documentation yet).

@arendst arendst added the help needed Action - Asking for help from the community label Mar 17, 2017
@davidelang
Copy link
Collaborator

davidelang commented Mar 17, 2017 via email

@lionhe1966
Copy link
Author

lionhe1966 commented Mar 17, 2017

@arendst. Thank you for answering: I will try to figure out what these three parameters exactly mean and let you know.

@davidelang: The only clue that we have is the picture on the ITEAD website. Unfortunately they only write that the switch on the picture was exposed to an unspecified high load for an unspecified long time.
My two switches (with a seal date 12-12-2017) amount of tin looks identical to the pictures.
Under the assumption that, by mistake, they used in production the settings for 10A switches, I think to use the switches with maximum 10A therefore setting a powerlimit of 2.5kW.

It may be interesting to compare pictures of the PCBs for "good" and "bad" switches.

In any case, I think that these devices are not well designed for 16A. The case is too small. In fact I had some trouble connecting two 16A rated cables to the switches: the holes for holding the two cables are simply too small unless you remove the outside insulator.

@lionhe1966
Copy link
Author

lionhe1966 commented Mar 18, 2017

The command MaxPower sets the power threshold for switching off. If I understand correctly, after MaxPowerHold seconds, the power is switched off, and a warning signal is issued. I think that this is exactly what I was asking for. It would be worth adding the description for that command to the Wiki documentation.
I do not understand what the PowerHigh threshold does. I've tried to set it , but nothing happened.
What is the effect of the MaxPowerWindow command?

@arendst
Copy link
Owner

arendst commented Mar 18, 2017

PowerHigh should send a (telemetry) message when power is above set level like stat/sonoff/MARGINS {"PowerHigh","ON"}.

@lionhe1966
Copy link
Author

lionhe1966 commented Mar 18, 2017

Ok, I noticed that message, and now I understand its meaning. It is very convenient functionality for load shredding. What's the meaning of MaxPowerWindow?

@arendst
Copy link
Owner

arendst commented Mar 18, 2017

It's been a while since I wrote it but I think it works as follows:

Once you set MaxPowerWindow to > 0 seconds it will turn on power after MaxPowerWindow seconds and see if the power overload is solved. If not, the sequence of overpower starts again up to MAX_POWER_RETRY (as defined in sonoff.ino line 122) = 5 times.

@davidelang
Copy link
Collaborator

It sounds as if this is solved (other than possibly needing to have someone update the wiki :-)

can this ticket be closed now?

@lionhe1966
Copy link
Author

lionhe1966 commented Mar 19, 2017

@davidelang I would say that the ticket can be closed. I'll try to update the wiki with the info contained here.
Let me add that I measured the temperature of PCB under a 10A load. The temperature reading was about 120 degree in the same place shown in ITEAD pictures of the defective PCB. Other parts of the PCB were at 80 degrees.

arendst added a commit that referenced this issue Jul 11, 2021
* Update manifest links

* Update index.html

* Update manifests

* Fix manifest names

* Update release.tasmota-sensors.manifest.json

* Add more manifests

* Add favicon

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
@rmoosa
Copy link

rmoosa commented Apr 3, 2023

Apologies to hijack this thread; is there any way to set PowerHigh, MaxPower, MaxPowerHold and MaxPowerWindow in user_config_override?

@sfromis
Copy link
Contributor

sfromis commented Apr 3, 2023

Only as commands in USER_BACKLOG

(Beware that changes do not apply when upgrading a binary, unless you do a full reset to the defaults you have there)

@rmoosa
Copy link

rmoosa commented Apr 4, 2023

Only as commands in USER_BACKLOG

(Beware that changes do not apply when upgrading a binary, unless you do a full reset to the defaults you have there)

Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help needed Action - Asking for help from the community
Projects
None yet
Development

No branches or pull requests

5 participants