My rules:
Code: Select all
On System#Wake do //When the ESP wake up, do
timerSet,1,60 //Set Timer 1 for the next event in 60 seconds
endon
On Rules#Timer=1 do //When Timer1 expires, do
deepsleep,600 //Deepsleep for the next 600 seconds
endon
Why?
Edit:
The problem is solved.
I have created a circuit that takes the anemometer (Wind speed) into account. See attachement.
Today i have removed the Anemometer. Now is the signal wire open (0.4-2V)
GPIO13 is 0, if the ESP is running.
R7 is a potentiometer (500 - 1000 Ohm) for setting the switching threshold.