2.0.0dev7 mqtt status not set

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
starfish
Normal user
Posts: 38
Joined: 16 Feb 2017, 23:46

2.0.0dev7 mqtt status not set

#1 Post by starfish » 20 Apr 2017, 07:11

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?

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: 2.0.0dev7 mqtt status not set

#2 Post by toffel969 » 22 Apr 2017, 13:02

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.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

starfish
Normal user
Posts: 38
Joined: 16 Feb 2017, 23:46

Re: 2.0.0dev7 mqtt status not set

#3 Post by starfish » 27 Apr 2017, 00:50

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.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: 2.0.0dev7 mqtt status not set

#4 Post by psy0rz » 02 May 2017, 00:48

fixed in 5c9d00c0a978d4d3137b90842f092dccd7391c85

if it doesnt work or you have problems, reopen this issue: https://github.com/letscontrolit/ESPEasy/issues/246
Please support ESPEasy development via Patreon or buy us a coffee.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests