Page 1 of 1

missing events after some days of runtime

Posted: 10 Aug 2018, 22:56
by dirk_k
using many ESP8266 with ESP Easy. Works great mostly, many thanks!
Two of them are sonoff devices. (Sonoff S20 & Sonoff basic) mega-20180606
After some days the button stops working. So i am unable to switch on/off with button.

At the device (Switch input - Switch at D3) i see the status toggle between 0 and 1 with each press of the button.
But there is no "button"-event within the log.
Switching from MQTT works. Also MQTT receices changed device-state from botton.

i see events from Clock, mqtt, relay ... but no more "button"-events i need for my rules.

Some ideas?
What can i check/test/try?

Re: missing events after some days of runtime

Posted: 11 Aug 2018, 00:56
by TD-er
Could you first check in the info page what the IP-address is according to ESPeasy?
Also uptime would be nice.
Maybe just grab all of that page if you can.
After that, you could try to do a reboot (software).
Only thing is, your ESP unit should have at least 1 reset or power off/on after the flash, or else the software reboot may just fail.

There have been more reports on MQTT stop working all at once and I have not yet a clue where to look.

Re: missing events after some days of runtime

Posted: 14 Aug 2018, 07:04
by oisisi
I experience something similar and was about to post my own topic when I came across this one.

I tried several recent mega releases and while the module keeps running and is sending MQTT it stops reacting to published commands after a day and half or so. I syslogged vitals but can't see any anomalies.

I compile myself and usually add plugin 144 (433 MHz TX).

Re: missing events after some days of runtime

Posted: 15 Aug 2018, 21:40
by oisisi
I did more research:
  • Commands via web (wget/curl) continue to work (connectivity is therefore not the issue
  • Memory remains stable
  • Publishing from the device (Wemos D1 mini and Wemos D1 mini pro) keep working.
  • Changing the "Controller Subscribe" topic (for OpenHAB MQTT) through the web interface doesn't revive the subscription.
  • Only a hard reset on the module seems to help.
Everything is reproducible. This is not about missing events. The MQTT subscription is dying.

Re: missing events after some days of runtime

Posted: 15 Aug 2018, 22:33
by TD-er
Hmm, that's strange, changing the topic should initiate a new connection.

Do you have any idea if the broker still considers the ESP node to be a connected client?

Re: missing events after some days of runtime

Posted: 16 Aug 2018, 20:28
by oisisi
Currently, after an uptime of almost 23 hours, there are no entries regarding connect or disconnect from the module in mosquitto's current logs (there would be). I checked, the subscription is still alive.