-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature Proposal: Detect short interruption of mains #25
Comments
I do something similar but have replaced the rocker switches with momentary, normally closed switches. PowerOnState 2 is probably what you are looking for. It's a core Tasmota feature, not specific to the dimmer firmware. You'll need to be sure power is removed for long enough for the device to power down of course. Booting is quite fast so that's good. Also look out for SetOption36 and SetOption65. |
And that is exactly the problem, as I want to use the very brief interruption that occurs when switching a toggle switch. As I wrote earlier, it does not reset/reboot the ESP. |
This is an interesting proposal and I can see the benefit it would have to your setup.
|
If the ESP reboots it will take a few seconds until it is online again. |
The delay to get online typically doesn’t matter much. Toggling the light on/off is sub-second fast. A problem with a very short interruption is that it could easily be falsely triggered by switching in the supply network. If you can replace your switch with a momentary push button, normally closed switch mechanism then poweronstate toggle works brilliantly and also has the advantage that the switch doesn’t sometimes appear to be ‘on’ when the light is actually switched off due to automation/ remote control. Did you try this or is it not possible to replace your switch? |
Yes, but I hope that is rare enough to be tolerated.
My particular switches can not be modified that easy. |
Hi @jamesturton,
I like to retrofit some mechanical switches to become "smart" with the Shelly Dimmer 2. However, as I cannot fit them inside the switch box, I came up with this idea:
The retrofit adds the Shelly to the lamp (where there is ample space in the lampshade). In the switch box, a simple wire bridge is added. This means, that the Shelly is powered all the time, except for a brief period during switching.
I like to ask, if you could add a mechanism for detecting these brief interruptions to the firmware? I have not investigated their precise length, but they seem quite short, as they do not reset Shelly's ESP.
Detecting the interruptions would allow to infer the state of the mechanical switch and use it for controlling the light.
What do you think?
Best,
Richard
The text was updated successfully, but these errors were encountered: