on some of my Sonoff S20 (not original Sonoff, PCB is from DLX using ESP8285)
I am seeing the issue that the Relay GPIO is changing from high to low without
any rule action nor any http-request.
The communication to Thingspeak continues, there is no reboot nor a WiFi-reconnect.
Environment:
- S20 copy model "AOGETYO", PCB labeled "DLX", using ESP8285
- 2200uF Cap directly at the 3.3V of ESP8285 installed inside the S20
- ESPEasy mega-2018-09-27
- publish of uptime, FreeRAM and relay#state to Thingspeak
- notify to eMail to see if there was a reboot,
a WiFi reconnect, an action from a rule or a http-get
- S20 bushbutton configured as "switch input",
Switch type "normal", switch button type "normal switch", interval 0 sec.
The reason that I am using ESPEasy-20180927 is that this one seems to be
more stable than all the newer ESPEasy releases from October onwards.
With all the newer releases I see more issues in reboots or sudden lost
of HTTP-Webserver access while ESPEasy still seems to be running on the device.
Well, that's another issue that if such a reboot happens, the relay does not return
to its original state and stays at the default state (in my case that's 0).
Coming back to the above "GPIO toggle issue":
At below Thingspeak charts you can see more details on the above described issue:
"Screenshot_2018-10-30-09-42-05.png":
S20 still running reporting the FreeRAM to Thingspeak but not the uptime anymore after ~06:20 (?!)
At around 6:20 AM the FreeRAM increases from 20kb to 25kb and then returning
back to 20kB.
Exactly at this timepoint, the relay at the GPIO switches from 1 to 0.
(see "Screenshot_2018-10-30-09-43-35.png")
Attached you will also find the simple rules running on the S20.
Code: Select all
on time#initialized do
Notify,1,"%ip% S20 plug booted and NTP initialized"
endon
on wifi#connected do
notify,1,"%ip% S20 plug connected to WiFi %ssid%"
endon
on Button#state=1 do
if [Relay#state]=0
gpio,12,1
notify,2,"relay ON due to key pressed"
else
gpio,12,0
notify,2,"relay OFF due to key pressed"
endif
endon
on Relay_ON do
gpio,12,1
notify,2,"relay ON due to HTTP-Get"
endon
on Relay_OFF do
gpio,12,0
notify,2,"relay OFF due to HTTP-get"
endon
If I set the interval within Devices of the S20 pushbutton to a value >0,
then the relay GPIO switches from 1 to 0 at the time the elapesed intervall time
if the GPIO was 1 before. If the GPIO was 0, there is no toggling to 1.
Setting the intervall of the pushbutton to 0 solves above strange behaviour.
Any idea what could be the root cause of above random issue?
best regards,
ao16
P.S.: Strange, I cannot submit the 2nd PNG altough it shows up in preview of this msg. As soon as this post is submitted, the 2nd snapshots disappears..?!