I set up ESP01S with relays to manage my pilot wire for my heating. As you know the problems of unexpected restarting "Hardware watchdog".
I wanted to set up a rule of return in the state for the GPIO0. To do this on restarting by using a variable with a "Generic - Dummy Device".
Except that my rule is applied even if the condition is false.
Here is the rule:
Code: Select all
On System#Boot do
timerSet,1,10 //Set Timer 1 for the next event in 10 seconds
endon
On Rules#Timer=1 do
if [switch#Switch]=1 and [dummy#value]=0 // Test condition
gpio,0,0 // Power ON on GPIO 0
endif
endon
Code: Select all
on radia1_on do //Jeedom request to Power ON
gpio,0,0 //Power ON GPIO0
TaskValueSet 2,1,0 // Set Dummy/Value to 0
endon
on radia1_off do //Jeedom request to Power OFF
gpio,0,1 //Power OFF GPIO0
TaskValueSet 2,1,1 // Set Dummy/Value to 1
endon
FYI weirdly the states are reversed on ESP01S (0 to ON and 1 to OFF)
Tested with ESP_Easy_mega-20191113_normal_ESP8266_1M and ESP_Easy_mega-20180914_normal_ESP8266_1024 (the last is more stable on unexpected restarting)
Would anyone have an idea