I haven't done anything with ESPeasy for a very long time (more than 3 years) and obviously I missed a lot.
Today I flashed a SONOFF S20 with the ESP_Easy_mega_20210223_normal_ESP8266_1M.bin, another identical S20 still has mega-20191108 on it.
That works with the old firmware, not really with the new firmware ^^
Overall I have two problems:
1.: Old rule does not work in the new FW
Code: Select all
on [Taste#BTN] do
if [Taste#BTN]=1
gpio,12,1
else
gpio,12,0
endif
endon
Code: Select all
on System#Boot do
LoopTimerSet,1,2
endon
on Rules#Timer=1 do
if Temperatur#TMP < Dummy#SET -0.5 or Taste#BTN=1
gpio,12,1
elseif Temperatur#TMP>Dummy#SET +0.5 and Taste#BTN=0
gpio,12,0
endif
endon
As I understand it, the ON Timer DO should be triggered every two seconds and the comparisons and tasks contained therein should be carried out... It just doesn't work also, with or without [brackets]...
What I also don't understand is that in some examples the brackets (? this one: []) are in use, on other not...
However, if I set gpio12 directly, then the relay switches.
The Taste#BTN value changes from 0->1 and when you press the button again from 1->0 Works well. But the rule never seems to apply.
2nd: New rules engine
I had switched the rules engine once, but actually didn't understand anything; How do you work with the new rule engine?
Is there anyone here who would like to update me? That would be really nice!
PS: The Devices on both S20