Not sure if this has already been suggested around here, so sorry if it has.
I’ve flashed the Espurna firmware (https://bitbucket.org/xoseperez/espurna/) on my Sonoffs and I’ve found that:
a) It has an option to toggle the previous state after a power cut;
b) It turns the light (or whatever is connected) pretty fast (less than a second).
So, given that, one can toggle the light state by simply powering off and back on the Sonoff using the wall switch! To make it work better, just put a spring on the switch to make it automatically get back to the On position, or use one of those spring/click wall switches.
I hope this is useful for anyone!
2 Likes
Espurna has an option that, when the Sonoff gets power, it will invert the last state. For example, if the Sonoff state was Off, you cut its power and the restore power, it will turn the light On. If the light was On it will keep it Off after restoring power.
One downside I’ve found is that the Sonoff doesn’t shutdown instantly when I cut its power so I have to press the wall switch about half a second (this is more noticeable on a Sonoff TH10 than the normal Sonoff).
So how to implement this with a wall switch? Do you have to solder or any modification?
No need to solder or modify the Sonoff. Have you read the first post?
I did read the first post
But I thought what you meant by ‘sonoff along with normal switch’ is the sonoff built into the wall.
Sorry if that sounded rude, I didn’t mean to!
Well, you just need to connect it in series between the wall switch and the light. Then just make the switch “toggle-able” by adding a spring (so that it always returns to ON). With a firmware that has a “toggle on boot”, it will toggle the light state every time you press the wall switch.