alcar21 / WemosEM

Cheap power monitor (STC013) with Home Assistant Discover and Wemos D1 Mini / PRO (esp8266)
114 stars 24 forks source link

MQTT gets disabled after a reboot #7

Closed amoros1 closed 4 years ago

amoros1 commented 4 years ago

Congrats for the nice piece of work!

I found that after enabling MQTT and saving in the MQTT parameters, when the Wemos restarts, the MQTT gets disabled so you need to enter again in the UI to enable it. I wonder if there is some issue with the enable flag that after a reboot it is set again to disable?. Could be this behavoir the way this function was designed to work?,

Many thanks Luis

alcar21 commented 4 years ago

:smirk: yes, this error has been reported by other people in private. I'm working in it.

if yoy want try, in the previous version if it works correctly, I am checking it.

Thanks, regards.

amoros1 commented 4 years ago

Thanks. Yes, I will make the test Regards

plutec commented 4 years ago

Are working in the previous version? Did you fix it in the new one?

Thanks!

alcar21 commented 4 years ago

Sorry, I have yet to release the patch. This week i try it.

PaulHam211 commented 4 years ago

Hey, Any chance of releasing the patch for this? I have set up my device today and have noticed that MQTT disables after a reset. I considered trying to build a version with MQTT enabled in code however I struggled to build in Atom (mac equivalent of Platform IO) and now I assume this is a bug and enabling MQTT automatically wont actually fix it?

nandosof commented 4 years ago

have fix?? thank you!

alcar21 commented 4 years ago

Sorry, I will release a version this weekend.

I don't have much time to dedicate to the project.

Thanks you

PaulHam211 commented 4 years ago

Sorry @alcar21 I know your busy but any luck with this MQTT enable on boot fix?

plutec commented 4 years ago

Fixed in code, I just compile for Core 2.4. I didn't check yet in my hardware.

https://mega.nz/file/eRknmQKQ#T9rFCZ6qjTx1qB8fpxCNPB3yId9L3Dg5LpY-535Yt5k

plutec commented 4 years ago

I just checked in my wemos and at least it saves the MQTT after restart. So this flaw can be considered as solved.

nandosof commented 4 years ago

Work fine. Thanks for your work!

rechena commented 4 years ago

I can confirm that on the latest version this issue still happens :(

plutec commented 4 years ago

@rechena is your issue related with MQTT or with WiFi connection? Please, take a look to this PR: https://github.com/alcar21/WemosEM/pull/16

rechena commented 4 years ago

@rechena is your issue related with MQTT or with WiFi connection? Please, take a look to this PR: #16

My issue is with MQTT, when I restart the device MQTT goes back to disabled :(

plutec commented 4 years ago

Did you try with the version I shared un this issue?

El dom., 1 nov. 2020 15:52, Joao Rechena notifications@github.com escribió:

@rechena https://github.com/rechena is your issue related with MQTT or with WiFi connection? Please, take a look to this PR: #16 https://github.com/alcar21/WemosEM/pull/16

My issue is with MQTT, when I restart the device MQTT goes back to disabled :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alcar21/WemosEM/issues/7#issuecomment-720100466, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADMRTEVG5ULZY67BFGC52DSNVY23ANCNFSM4KKNRXWQ .

plutec commented 4 years ago

@rechena please, update with this version: https://mega.nz/file/eRknmQKQ#T9rFCZ6qjTx1qB8fpxCNPB3yId9L3Dg5LpY-535Yt5k And then, configure the MQTT again. For me it's working perfectly.

rechena commented 4 years ago

@rechena please, update with this version: https://mega.nz/file/eRknmQKQ#T9rFCZ6qjTx1qB8fpxCNPB3yId9L3Dg5LpY-535Yt5k

And then, configure the MQTT again. For me it's working perfectly.

Oh will give it a try. Can I use the OTA feature? Or do I need to plug cable? Thanks

plutec commented 4 years ago

With OTA is ok

El mar., 3 nov. 2020 7:29, Joao Rechena notifications@github.com escribió:

@rechena https://github.com/rechena please, update with this version: https://mega.nz/file/eRknmQKQ#T9rFCZ6qjTx1qB8fpxCNPB3yId9L3Dg5LpY-535Yt5k

And then, configure the MQTT again. For me it's working perfectly.

Oh will give it a try. Can I use the OTA feature? Or do I need to plug cable? Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alcar21/WemosEM/issues/7#issuecomment-720930374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADMRTHR6HXBDIUFICUTDD3SN6PLNANCNFSM4KKNRXWQ .

rechena commented 4 years ago

Yay, just updated using OTA and its working just fine, didn't even have to reconfigure MQTT :) Thanks

plutec commented 4 years ago

@alcar21 you can close this issue. Thanks!

alcar21 commented 4 years ago

Thank you. Fix in version 1.3.2