-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change WIFI access-> Store Ymal to node #217
Comments
esphomelib won't support having the WiFi configuration in the EEPROM, as using the Flash/EEPROM directly causes all sorts of issues with ESPs (esphomelib had something like this before, but there were so many edge cases with different boards). But, you can set up esphomelib to create an AP if the WiFi network disappears: https://esphomelib.com/esphomeyaml/components/wifi.html#access-point-mode I think the best way for you would be:
|
Yes, That is a better way. the drawback is I have to get the original yaml file. So I hope another feature that the node can save/backup the yaml file of its code. Currently my idea is not clearly, it should be like:
I don't know how difficult of implementation, seems esphomelib has no reference to SPIFFS right now. |
I don't know whether Platformio support SPIFFS or not. if yes, then it should be easy to store yaml file to SPIFFS inside the node. In setup() of Esphomelib main.cpp, can read configuration from SPIFFS. The result in esphomeyaml is like: |
As I said, I don't like storing things in flash (+ you can search the esphomelib repo for other long explanations for this). But primarily, I'd like to question your use-case. The thing you want to do is called "creating backups". Just open the file, copy the contents into a new file on your computer and restore if needed. Why should esphomelib implement this just for this small use-case which can easily be achieved otherwise through backups. Also, SPIFFS just takes up more flash space, which the ESPs already lack a lot. Yes, changing the WiFi network for esphomelib nodes is difficult, but esphomelib is stateless and the only way this process will improve is when esphomelib gets the option to define an alternative WiFi network to connect to when the primary one is down. |
I got many esp nodes working in my home. now I want to change my password of my router.I mean the Wifi password, not the admin password. But problem came, All the password in the nodes are hard coded. If I use OTA to update the Wifi connection,
This essentially is a repeating from step 2.
Anybody got better idea? Is possible to archive it like below?
3) Esp node becomes an AP, and web server is enabled.
-- Esp node write this configuration to somewhere,EEPROM?
-- Esp node connect Wifi-AP with the configuration, it's not hard coded.
The text was updated successfully, but these errors were encountered: