xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
2.99k stars 637 forks source link

Settings changes are not persisted in electrodragon #252

Closed xoseperez closed 6 years ago

xoseperez commented 6 years ago

Originally reported by: dstudinskiy (Bitbucket: dstudinskiy, GitHub: Unknown)


Steps:

I also tried to configure MQTT without disconnecting power. MQTT and relays work well. So looks like problem not in hardware. I use espurna with 2 sonoff basic and slampher and had no such issue.

Can you advise what how i can help with debugging issue?

xoseperez commented 6 years ago

Check that you have flashed it with the correct memory size. If you have flashed it with a 4Mb memory layout, since the Basic only has 1Mb it will not be able to persist the configuration. It will work as long as it is plugged, but once rebooted settings will have gone away...

xoseperez commented 6 years ago

Original comment by blandi (Bitbucket: blandi, GitHub: blandi):


Same here with an "Sonoff Basic". Settings get lost when the sonoff looses power

xoseperez commented 6 years ago

Original comment by dstudinskiy (Bitbucket: dstudinskiy, GitHub: Unknown):


I use nodemcu-flasher with parameters:

As blank i use 0x00000 blank1m.bin from https://wifi-iot.com/?m=main&download=3

image for electrodragon that expects a 4Mb "filesystem"

Ouch, i didn't realize that it has 4Mb. All my other sonoff devices have 1Mb. Let me try to reproduce it tonight.

xoseperez commented 6 years ago

Sorry, I have not been able to reproduce it. My Electrodragon board was flashed with ESPurna 1.2.0, upgraded to 1.9.5 and changed some settings, unplugged it and plugged it again and the changes where there... I understand your board was virgin, without any other firmware, when you flashed the blank 1Mb image. What is that? Then you flashed ESPurna image for electrodragon that expects a 4Mb "filesystem", that could be the problem. How did you flash ESPurna?

xoseperez commented 6 years ago

Original comment by dstudinskiy (Bitbucket: dstudinskiy, GitHub: Unknown):


Just tested with Sonoff-Tasmota, works as expected. So need to figure out why it doesn't save settings. Also forgot to say that i used precompiled espurna-1.9.5-electrodragon-wifi-iot.bin.