Templates
A board template sets a board up in one go: its LED, button and sensor pins and, on Ethernet boards, its Ethernet type. Each board page has one to copy.
Importing templates needs firmware v5.0.0b1 or later, a pre-release from the releases page. Board templates use the v5 hardware settings (ESPresense#2530), so a node on v4 can’t import them.
Applying a template
Section titled “Applying a template”- Open the node’s web UI and choose Templates in the sidebar (under Hardware).
- Paste the template into the Board Template box.
- Click Preview. It lists every setting that will change.
- Click Apply.
Format
Section titled “Format”{"name": "M5Stack NanoC6", "chip": "esp32c6", "settings": {"leds": [{"type": "grb", "pin": 20, "count": 1, "control": "status"}], "outputs": [{"name": "LED power", "pin": 19, "type": "high"}], "...": "..."}}nameis the board the template is for.chipis required, written as the lowercase chip target:esp32,esp32c3,esp32c6oresp32s3(notESP32-C6, and not a firmware flavor likeesp32c3-cdc). The node rejects a template made for a different chip, because the wrong pin numbers can land on flash GPIOs.settingsholds setting names from any page of the web UI: Network (for exampleeth, the Ethernet type), Settings or Hardware. Only the keys listed are changed.leds,inputs,outputsandpowerare JSON values that replace the whole list. Board pages always include the three lists, empty if the board has none, so applying one gives the same result whatever was set before.- Passwords (
wifi-password,ap-password,mqtt_user,mqtt_pass) and saved LED state can’t be set from a template. - The node rejects the whole template if a key isn’t a setting it knows, or a value is the wrong type or out of range. Dropdowns are option numbers (for
eth, 1 is WT32-ETH01 and 14 is Waveshare ESP32-S3-ETH), pins are -1 to 48, booleans aretrue/false, and I2C addresses are strings ("0x38").
Sharing your board
Section titled “Sharing your board”Export as template on the Templates page saves espresense-template.json. It holds the Hardware page settings and Ethernet type, and only values that differ from the defaults. Room, WiFi, MQTT and scanning settings are never exported, so the file is safe to share. It leaves out name, so add the board’s name before you share it.