I am trying to prepare similiar “project”. But sometimes I received fake signals Can you share your code and wiring pls? Thanks
@Erik_Z sure, when I get home. it works well but eats battery like crazy.
you have to make if statement in the loop to make it activate only once.
I think it would be better to show the code.
Thx
Have you tried putting the ESP into ‘deep sleep’ to improve battery life?
According to my understanding, there are no actual hardware interrupts available on the ESP8266 (I’d love to be wrong about that) and the only way appears to sleep it after it’s performed an action and then wake it with a low pulse on the Reset line.
That could be achieved by having the reed switch (assuming it’s N/O) pull the Reset line high when the door is closed and having a pull-down resistor to gain the low state when the door opens - but it requires the door being closed again, as it needs to be a low pulse…
Hi Duncan, I was thinking about connecting it the way you described but when the door would be closed very fast there’s a possibility that it may not be enough time to connect to IFTTT. and it will shut down before completing the loop.