letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.28k stars 2.22k forks source link

recent FW for 8266 save setup for all devices MQTT Broker Hostname... #4453

Open rudiratlos opened 1 year ago

rudiratlos commented 1 year ago

Hello, I'm missing a way to fully setup a virgin ESP8266 (only latest FW uploaded) with a config file. I mean that the following values will be setup: all values for openHAB NTP server ...

If that is not possible, I'm missing that by a more complex rule file, where I can set alle values at boot time at once like:

On System#Boot do NAME,ESP UNIT,%lastMACbyte% NTP,ptbtime1.ptb.de MQTT_broker,opneHAB MQTT_LWT,connected ... I2C_SDA,GPIO-4 I2C_SCL,GPIO-5 ... timerSet,1,60 endon

TD-er commented 1 year ago

Right now, this can only be done by either imaging the full flash of an already configured node and then flashing that full flash image to a new node. Or you have to make a custom build, where all these values are already set in the Custom.h file for the DEFAULT_xxx defines.

rudiratlos commented 1 year ago

What is are the functions Load and Save in Tools Menue for, if they don't save/load every config value?

tonhuisman commented 1 year ago

the functions Load and Save in Tools Menue

To Save and Load the configuration to and from a file. Saving will include a date/time stamp. For loading to work the file should be named config.dat.

rudiratlos commented 1 year ago

"Save and Load the configuration to and from a file". That is what 've expected. But saveing to a file from a completely setup esp8266 #1 and load the same file on a virgin (same FW) 8266 #2. I'm missing OpenHAB setting and other stuff. e.g. generic device with .e.g RSSI value

tonhuisman commented 1 year ago

You might want to have a look at the Provision* commands: https://espeasy.readthedocs.io/en/latest/Reference/Command.html?highlight=provisioning#internal-commands

TD-er commented 1 year ago

Of the Settings Archive feature. This one can fetch files from another ESPEasy host.

My initial reply was more like you create a pre-configured config out of the box, when you initially flash the device, or call a factory reset.