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

Overcurrent protection #29

Open
edge90 opened this issue Mar 28, 2022 · 3 comments
Open

Overcurrent protection #29

edge90 opened this issue Mar 28, 2022 · 3 comments

Comments

@edge90
Copy link

edge90 commented Mar 28, 2022

Would be cool if the firmware shut the output off if overcurrent is detected, like the standard shelly does.

@jamesturton
Copy link
Owner

Should be possible! Do you have any suggests on how it could be implemented?
I was thinking: if the unit detects the over-current it turns off the output and then the unit must be restarted (disconnected and connected to mains voltage) to get it working again. That way it forces the user to do something and hopefully they will check the unit is ok before it can be used again.
Do you know if ESPHome/Tasmota support notifications for over-current events? It would be nice if an error message could be displayed in the UI, rather than just not being able to turn on the output again.
The STM also has an in-built temperature sensor so over-temperature events could also be detected too.

@edge90
Copy link
Author

edge90 commented Mar 28, 2022

Not sure about tasmota but esphome could just expose a sensor or so (that would be visibile in home assistant for those running that). I guess the protocol between esp and stm would have to change though.

Exactly what I was thinking, disable the interups and then call mosfet_off(). As of now, the current is measured after receiving the poll command from the esp. This is bad from a safety pov as it requires the esp to initiate the process.

@tobby88
Copy link

tobby88 commented Apr 13, 2022

...then the unit must be restarted (disconnected and connected to mains voltage) to get it working again.

A reboot would be a good idea - but to reconnect would be bad, since most of these devices are mounted into the wall.

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

No branches or pull requests

3 participants