missing events after some days of runtime

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
dirk_k
Normal user
Posts: 12
Joined: 19 Aug 2017, 22:41

missing events after some days of runtime

#1 Post by dirk_k » 10 Aug 2018, 22:56

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?

TD-er
Normal user
Posts: 1158
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: missing events after some days of runtime

#2 Post by TD-er » 11 Aug 2018, 00:56

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.

oisisi
Normal user
Posts: 38
Joined: 06 Jul 2016, 13:47

Re: missing events after some days of runtime

#3 Post by oisisi » 14 Aug 2018, 07:04

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).

oisisi
Normal user
Posts: 38
Joined: 06 Jul 2016, 13:47

Re: missing events after some days of runtime

#4 Post by oisisi » 15 Aug 2018, 21:40

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.

TD-er
Normal user
Posts: 1158
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: missing events after some days of runtime

#5 Post by TD-er » 15 Aug 2018, 22:33

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?

oisisi
Normal user
Posts: 38
Joined: 06 Jul 2016, 13:47

Re: missing events after some days of runtime

#6 Post by oisisi » 16 Aug 2018, 20:28

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest