Page 1 of 1

2.0.0dev7 mqtt status not set

Posted: 20 Apr 2017, 07:11
by starfish
installed 2.0.0dev7 on a sonoff device. The device is connected to iobroker via a cloud mqtt-broker on a vps. Switching on/off setting LED on/off and attaching the original button using a rule works fine.
I noticed that a mqtt-topic devicename/status is created but it always shows "not connected" which cannot be true as the device connects to the broker and everything works as expected. Do I have to set this status manually or is it supposed to be generated by ESPEasy?

Re: 2.0.0dev7 mqtt status not set

Posted: 22 Apr 2017, 13:02
by toffel969
i assume you had espeasy installed in a previous version. this is a bit of an educated guess.

there is indication, that some info from the old version in the flash, leading to unexpected behaviour (in my case http connection to domoticz). the controller tab became unavailable and log showed connection errors. this only happened on a wemos that had 147 installed previously. the other "virgin" wemos that was flashed from the beginning with dev7 does not show the same behaviour =(works well)


the other indicator, that the is to do with residual info in flash is that when flashing back to 147, all my tasks and rules from the previous setup (147) came back.

try to erase flash with one of the "0" bin files (confirmed to work by user Shardan) . doing a hard reset (power off --> connect gpio 1 with 3 (rx and tx) then power up --> wait 3min) could also work, not sure though.

Re: 2.0.0dev7 mqtt status not set

Posted: 27 Apr 2017, 00:50
by starfish
thanks toffel969 - well I didnt have a previous ESPEasy version on it, but the original Sonoff software. But there must be another error - ESPEasy could not send disconnected while being disconnected ... that does not make sense.

Re: 2.0.0dev7 mqtt status not set

Posted: 02 May 2017, 00:48
by psy0rz
fixed in 5c9d00c0a978d4d3137b90842f092dccd7391c85

if it doesnt work or you have problems, reopen this issue: https://github.com/letscontrolit/ESPEasy/issues/246