Open IamJanS opened 6 years ago
Can you try uploading the config.json via spiffs image flashing
I have the same issue, when I upload tue config via spiffs works ok. But if I delete the config trough Reset Button, then the sonoff enter in config mode, and the issue ocurs again.
Hello, I have a problem that keeps me busy for some days. I have several Homie devices running at version 2.0. Thank you for creating Homie!
I try to setup a Sonoff Basic with Homie, flashing works fine, but I can’t get the device configured with the config.json file.
If I configure the device and it reboots into normal mode I get these errors in exactly these order:
I write the config.json with curl after the first reboot that follows upon a fresh flash (every write described below succeeds with {"success":true} ):
✔ Configured ↻ Rebooting into normal mode... ✖ /homie/config.json doesn't exist
Second try, writing config.json with curl again:
✔ Configured ↻ Rebooting into normal mode… ✖ Config file too big
Third try, writing config.json with curl again:
✔ Configured ↻ Rebooting into normal mode… ✖ Invalid JSON in the config file
Fourth try, writing config.json with curl again:
✔ Configured ↻ Rebooting into normal mode… ✖ Invalid JSON in the config file
Starting from the third write only the message “✖ Invalid JSON in the config file” shows up. This is 100% reproducible for both the Arduino IDE and PlatformIO.
Minimal Homie:
Config.json: