Export and import a panel configuration
The configuration of a panel can be saved to a file in the admin and read back in. Two buttons on the panel card under NSPanel settings are all it takes: one writes a JSON file, the other reads it back โ with a review first, in which every page is listed on its own and conflicts are decided by hand.
Two use cases:
- A backup before larger changes. If something goes wrong, the same file goes back into the same panel.
- Transfer to another panel, for instance when a second panel is to look exactly like the first one or a panel is replaced โ into another ioBroker installation as well.
Contents:
- What is in the file
- Exporting
- PINs and Wi-Fi passwords
- Importing: choosing the parts
- The import mode
- The review
- Name conflicts
- Pages that also exist in a script
- The confirmation for "Overwrite completely"
- The result
- When the changes take effect
- Error cases
- Pitfalls
1. What is in the file
The file is a JSON file. Its head holds a format marker, the format version, the adapter version, the time of the export and the source panel with name, topic and model. Below that lie three parts, which are selected individually on import:
| Part | Content |
|---|---|
| Pages | All admin pages the panel shows, each with the navigation that applies on this panel (previous, next, up, home). In addition the target pages of page links, even when they are not assigned to the panel itself โ otherwise the link would be empty after the import; this reaches one level deep only (the target of a target does not travel along) and covers real page links only, not pages that a mere item points to. Plus the "all panels" pages this panel excludes. |
| Screensaver | The screensaver of the panel with the notifications it uses. The panel assignment of the screensaver does not travel along โ on import it gets the target panel. |
| Other | The two hardware buttons and the panel settings, that is the datapoints under panels.<id>.cmd.: panel active, screensaver timeout, layout, rotation time, double click, info icon, its text and the font size of the text, brightness (day, night, standby, schedule), temperature offset, buzzer, hide pages, detaching the buttons and the navigation point of the home page. Plus panel uses no script and the changed navigation of script pages (navigation overrides) โ both only take effect when importing with Overwrite completely. |
Panel activetravels along. If the file comes from a disabled panel, the import disables the target panel โ immediately, because panel settings are datapoints. After importing a foreign backup, check that tick.
The dialog texts of the three parts read Pages assigned to the panel with their navigation, Screensaver of the panel with its notifications and Hardware buttons and panel settings (datapoints cmd.*); with "Overwrite completely" also the navigation overrides.
Not in the file: the command datapoints of the panel (buzzer, relays, popups, page jumps), the texts of the screensaver notifications taken from datapoints and โ importantly โ everything that comes from a script. Export and import only cover the pages from the PageConfig tab and the screensaver from the Screensaver tab. Pages of the panel script and of the global script are left untouched; on import they only matter as neighbours by name (see section 8).
2. Exporting
- Switch to the NSPanel settings tab.
- In the card of the panel, click the button with the downwards arrow at the top right โ tooltip Export panel configuration. Next to it sits its counterpart Import panel configuration with the upwards arrow.
- If a page of the panel holds a PIN or a Wi-Fi password, the question from section 3 comes up. Otherwise the admin writes the file right away.
- The browser downloads the file. The name follows the scheme
nspanel-<panel name>-<yyyy-mm-dd>.json, for examplenspanel-Livingroom-2026-11-11.json; characters other thanAโZ,aโz,0โ9,_and-become_in the panel name. If the panel has no name, the topic takes its place; without one the file is callednspanel-panel-<yyyy-mm-dd>.json.
Both buttons are locked as soon as either one is missing โ id or topic. The export does not need a running instance โ with one exception: the panel settings are datapoints, and whatever the admin cannot read is left out of the file.
Afterwards a message appears above the cards:
| Message | Situation |
|---|---|
Panel configuration exported to <file> (pages, screensaver, buttons and panel settings). |
All fine, no secrets involved. |
PINs and passwords were not exported, they have to be entered again after an import on these pages: <pages> |
Export without secrets. |
| The file contains PINs and passwords in plain text - keep it safe. | Export with secrets. |
Export of the panel configuration failed: <reason> |
Nothing was written. |
3. PINs and Wi-Fi passwords
The question only appears when the panel really shows pages with secrets: an alarm or unlock page with a PIN of its own or a QR page with a filled Wi-Fi password.
The dialog is called Export panel <name>: PINs and passwords and says: These pages of the panel contain PINs or passwords. Should they be included in the export? Below it the pages concerned are listed with the respective field (PIN or Wi-Fi password) and the note With passwords, the file contains them in plain text. Without them, they have to be entered again after an import.
| Button | Effect |
|---|---|
| Export without passwords (default) | The fields are missing from the file โ they are left out, not emptied. |
| Export with passwords | PIN and Wi-Fi password are in the file in plain text. |
| Cancel | Nothing is written. |
A PIN that uses the global password of the instance is no secret: the page then holds no value of its own, only the reference to it. Such a PIN always travels along, and it does not trigger the question either. The same goes for an empty Wi-Fi password.
"Without passwords" does not mean "without details". Exactly two fields are left out: the own PIN of an alarm/unlock page and the Wi-Fi password of a QR page. The file still holds the SSID, URL or phone number of the QR page, the id of centrally stored credentials and every state id and alias path of your installation. Take a look inside before handing it to a stranger.
When a file without secrets is imported, newly created or renamed pages get a safe substitute: alarm and unlock pages the global password of the instance, QR pages an empty Wi-Fi password. Existing pages keep their secrets โ even when the rest of the page is replaced by the content of the file. Which pages need attention is shown in the review (The import contains no PINs or passwords. After the import, please enter the passwords again on these pages: โฆ) and again in the result.
4. Importing: choosing the parts
The import button opens the dialog Import into panel <name>. The first step asks: Which parts of the file should be imported? All three parts are preselected.
Choose file opens the file dialog (filter .json); as long as no part is ticked, the button stays locked. The admin then checks the file:
- If it is damaged, not JSON or not a panel configuration of this adapter, the error message appears in the same step and nothing goes further โ see section 12.
- If a selected part is missing from the file, it is skipped; at the top Not in the file, skipped:
<parts>appears, and the result names it once more. - If the file holds nothing for the selected parts, the message The file holds no pages and no screensaver for the selected parts. appears โ unlike the errors above it only shows up in the review, so the dialog does continue.
If the file is fine, the review opens. Up to here and in the review as well, nothing is changed.
5. The import mode
The review starts with the origin of the file, and directly below it sits the switch Import mode with two positions.
| Mode | What it does |
|---|---|
| Merge (default) | Adds the admin pages of the file. Pages of the panel script, navigation overrides and "panel uses no script" stay unchanged. |
| Overwrite completely | Replaces everything specific to this panel with the file: own page assignments with their navigation, exclusions, navigation overrides; the panel script is switched off. Pages for "all panels" and pages of the global script stay. |
Both modes have two things in common. First, the admin pages assigned to this panel so far are detached from the panel. The pages themselves are kept and stay in the page list; they are only no longer assigned to this panel. Afterwards the pages of the file go onto the panel. Second, the exclusions of the source apply: "all panels" pages the source panel excluded are excluded on the target as well โ and an exclusion that only existed on the target is lifted. This happens in both modes, not only when overwriting.
Overwrite completely goes further:
| Affected | What happens |
|---|---|
| Own pages of the panel | All old assignments are gone; afterwards the panel holds exactly what the file brings. |
| (Hidden "all panels" pages) | No difference between the modes โ see the paragraph above. |
| Pages for "all panels" and pages of the global script | Stay on the panel with their navigation. The review lists them under Also stays on the panel; if there is nothing, it reads nothing โ the panel shows only the imported pages. |
| The panel script | Is switched off: the checkbox Panel uses no script is set, the pages of the panel script disappear from the panel. The script configuration is not deleted. |
| Navigation overrides of the panel | Are deleted and replaced by those of the file. |
| Other panels | Do not change. |
The mode can only be chosen together with the part "Pages" โ and only if the file actually brings pages along. If either is missing, the button is locked and the note "Overwrite completely" is only possible together with the group Pages. stands next to it. In the mode Overwrite completely the Import button is red as well.
6. The review
Above the switch stands the origin of the file (File of panel <name> (<model>), exported <time>), below it the notes that apply to this import:
| Note | When |
|---|---|
The panel already has its own configuration that the import replaces: <parts>. |
Only in Merge mode, and only for the parts that really are configured on the target and that the import actually changes. An unchanged backup going back into the same panel does not trigger the note. With Overwrite completely the safety prompt takes over that job. |
| The file comes from a panel of another model (โฆ, this panel: โฆ). Pages and screensaver may show fewer or more elements. | The model of the source does not match the target. The import is not blocked. |
| The import contains no PINs or passwords. โฆ | There are pages that would need a secret and do not get one โ newly created or renamed pages, and replaced pages without an existing value. A secret-free backup going back into the same panel does not show the note, because every page there keeps its value. |
The panel settings (datapoints cmd.*) are written immediately when importing, the rest only takes effect after saving. |
The part Other is included. |
These pages have the names of pages of the panel script. The script takes precedence, the imported pages do not appear on this panel: <pages> |
See section 8. |
Below that every page of the file โ and, if imported as well, the screensaver โ is listed with its status. Pages without a conflict are collapsed (n without conflict, with the counts underneath, for instance 20 unchanged, 3 add assignment); a click shows them.
| Status | Meaning |
|---|---|
| unchanged | The page lies on the panel exactly like this already โ nothing happens. |
| add assignment | The page exists already with the same content, it is additionally assigned to this panel. |
| change navigation | The page is on the panel already, but gets the navigation from the file. |
| remove assignment | In the file the page was only the target of a page link, not a page of the source panel. It is not assigned on the target either. |
| create new | The page does not exist yet. If it only came along as the target of a page link, it is created but assigned to no panel โ it then sits in the page list and is reached through the link. |
| different | A page with this name exists already, but with different content โ see section 7. |
| skip | This page of the file is not taken over (only as the chosen resolution of a conflict). |
In the most common case โ a backup going back into the same panel or an import into an empty panel โ there is nothing to decide: pressing Import is enough.
7. Name conflicts
A conflict arises when the instance already holds a page of the same name whose content differs from the file. The status then reads different and the column Action offers three resolutions:
| Resolution | Effect |
|---|---|
| rename (default) | The page from the file is created under a new name; the existing page keeps its content. One exception: if the existing page is an "all panels" page, it is excluded on this panel โ otherwise both would show up after the import. The summary then lists it under "all panels" pages excluded on this panel. |
| replace existing | The existing page gets the content from the file. |
| skip | The page from the file is not taken over. |
The proposed name
The proposed name is <original name>_<topic>, where only the last section of the target topic is taken and reduced to AโZ, aโz, 0โ9, _ and - โ so e2eLong becomes e2eLong_webtest on the panel with the topic nspanel/webtest. If that one is taken too, the admin appends _2, _3 โฆ The field New name can be overwritten freely, but is checked:
| Message | Reason |
|---|---|
| Enter a name without leading or trailing spaces | Empty or spaces at the edges. |
| "main" is reserved for the start page | main is the fixed name of the start page. |
| Names starting with /// are reserved | Internal targets start with ///. |
| This name is used twice in this import | Two rows of the same import carry the same name. |
| A page or screensaver with this name exists already | The name is already taken in the instance. |
As long as a name is invalid, Import stays locked.
A look at the differences
A click on the status different opens the dialog Differences: <page> with three columns โ What, Existing, In the file. Fields are named as in the editor (Headline, Navigation: previous), list items appear as Item #3 with the item name in brackets when it is set. An empty field value shows as โ. The words missing, present and added apply to whole items instead: missing when the file lacks an existing item, present for the other way round, added for an item only the file brings. Fields of a list are compared by position โ an item inserted at the front therefore makes every following one look changed.
Renaming ripples
When a page is renamed, the admin carries the new name through all references of the imported data: navigation (previous, next, up, home), target pages of page links and of items, the page after unlocking, screensaver actions, the targets of the hardware buttons and the navigation point of the start page. Pages that refer to a renamed page therefore become different themselves โ in that case the difference dialog says Only references to renamed pages differ. This repeats until nothing changes any more; a name typed by hand is passed on in the same way.
Replacing asks back
If other panels use the existing page as well, the admin asks again with Replace <page>?: The existing <page> is overwritten with the content of the file. Below that stands These panels use it as well and change too: with the list (a page for "all panels" appears in it as all panels) or No other panel uses it. Cancel is preselected.
The screensaver plays the same game
It sits in the same table as the pages and offers the same three resolutions, including the name field, the prompt and the difference dialog (title Screensaver: <name>). Four deviations are worth knowing:
- Equal is equal, even under a different name. If the admin finds an existing screensaver with the same content but a different name, the import counts as unchanged and the panel gets the existing entry โ the review then shows that name, not the one from the file.
- The comparison ignores name and panel assignment, but resolves the notifications.
- "replace existing" keeps the existing name, not the one from the file.
- The name check is shorter: for the screensaver only empty and already exists are checked; the other three rules from the table above do not apply here.
8. Pages that also exist in a script
If a page of the file carries the name of a page from a script, a second note stands next to the status. This is not a conflict in the sense above โ script pages and admin pages live in different places โ but a question of which of the two the panel shows.
| Note | Meaning |
|---|---|
| replaces global script page | The global script has a page of this name. On this panel the imported admin page is shown; other panels keep seeing the script page. |
| replaces page of the panel script | The admin page takes the place of the page of the same name in the panel script. This always applies to the start page; for all other pages only when the instance option adminOverridesScriptPages is set (default: off, with no field of its own in the admin). |
| page of the panel script takes precedence | The panel script has a page of this name and keeps it; the imported page does not appear on this panel. Remedy: rename it or use Overwrite completely. |
The notes only exist in the mode Merge and only as long as the panel uses a script at all. After Overwrite completely the panel script is off, so only replaces global script page remains.
If the admin cannot read the script configuration, the sentence Script pages unknown (script configuration not readable). appears โ but only in the block Also stays on the panel and in the safety prompt, that is, exclusively with Overwrite completely. In Merge mode the script notes are then missing entirely; there is no placeholder. Only the summary mentions it again, with the addition Script pages unknown โ targets may be script pages too. next to the dangling navigation links.
9. The confirmation for "Overwrite completely"
Before overwriting, the question Overwrite <panel> completely? appears with the sentence The current configuration of this panel is replaced by the file. and four blocks:
| Block | Content |
|---|---|
| Pages | n own pages are removed from this panel (the pages themselves are kept) โ the list can be unfolded. Otherwise: No own pages are removed from this panel. |
| Script | The panel script is switched off ("panel uses no script"). These n script pages disappear from the panel: with their names. If the panel has no script already: The panel already uses no script. |
| Navigation overrides | n navigation overrides of this panel are deleted: โฆ and The file brings n navigation overrides: โฆ, otherwise The panel has no navigation overrides. |
| Also stays on the panel | Pages for all panels (n) and Pages of the global script (n). |
Plus the sentence Pages for "all panels" and pages of the global script stay unchanged on this panel, with their navigation. Other panels are not affected. Cancel is preselected; the red button reads Overwrite completely.
10. The result
After the import the dialog shows Import into panel <name>: result. Every section only appears when it has something to report:
| Section | Content |
|---|---|
| The panel script was switched off ("panel uses no script"). | Only after Overwrite completely. |
Navigation points to pages that are not on this panel (n) |
Per hit <page> โ <direction> โ <target>, entries from an override with the addition (override). Plus Not corrected automatically โ please check the navigation of these pages. If the script configuration was unreadable, it is followed by Script pages unknown โ targets may be script pages too. |
| Please enter PIN / password again on these pages: | Pages with a substitute value, see section 3. |
New pages ยท Renamed (old โ new) ยท Replaced ยท Skipped ยท Unchanged ยท Assignment or navigation changed on existing pages |
The balance of the pages. |
| New start page of the panel ยท No longer the start page of this panel, other panels keep it | Start page. |
| Pages for all panels hidden on this panel | Exclusions. |
| Screensaver | Name and action. If the file brings no screensaver from the admin, it says none (the source panel has no screensaver of the admin) โ which is more than a piece of information, see the note below the table. |
| Notifications added under a new id | Notifications of the screensaver whose id was taken already. |
| Navigation overrides deleted ยท Navigation overrides taken over | Only after Overwrite completely. |
| Panel settings written ยท Panel settings not written, the datapoint does not exist yet | The part Other. Only settings that really changed are counted โ if the target value is already in place, nothing is written and nothing is reported. |
| Not in the file | Parts that were selected but missing. |
A file without an admin screensaver removes the one on the target. If the part Screensaver is selected and the file brings none, the target panel is removed from all screensaver entries โ it has none afterwards. The review shows no row for this; it only becomes visible here in the summary. To avoid it, untick Screensaver. This applies in both import modes.
The section Navigation points to pages that are not on this panel deserves a second look: the admin does not correct such references, so the panel runs into an empty direction. More about how the references work together is under navigation flow.
11. When the changes take effect
| What | When |
|---|---|
Pages, screensaver, notifications, hardware buttons, navigation, Panel uses no script, navigation overrides |
Only with saving the instance settings. Until then everything only lives in the admin. |
Panel settings (datapoints cmd.*) |
Immediately when importing. They are datapoints, not part of the instance configuration. |
The dialog says so beforehand (The panel settings (datapoints cmd.*) are written immediately when importing, the rest only takes effect after saving.) and again at the end: The configuration is changed in the admin only: press Save to apply it.
Two panel settings are deliberately left out when the target has a screensaver from the admin: layout and rotation time of the screensaver. The adapter writes both from the screensaver entry anyway. Settings whose datapoint does not exist yet โ for instance on a panel that has never run โ are skipped and named in the result.
12. Error cases
| Message | Situation |
|---|---|
The file is no valid JSON: <reason> |
The file could not be read. |
| The file is no panel configuration export of this adapter. | The format marker is missing โ for instance in an adapter backup or a foreign file. |
The file is damaged or incomplete (at <place>). |
The structure is wrong; the place names the path at which the check failed. |
The file was written by a newer adapter (format version n), please update the adapter. |
The file is younger than the adapter that is to read it. |
The file is damaged or incomplete (at version). |
The format version is missing, not a whole number or smaller than 1. A version that is too new gets its own message above. |
The place in brackets is the path where the check failed โ (at source), (at groups) or, when two pages of the file share a name, (at groups.pages.pages[3].page.uniqueName).
The adapter version in the file is not checked. It sits in the header for traceability only: there is neither a warning nor a conversion when the file comes from an older or newer adapter version. Only the format version (currently 1) is checked.
Not an error, only a warning is the model mismatch: if the file comes from a panel of another model โ EU landscape against a smartphone in portrait, say โ not always the same number of elements fits onto a page or into the screensaver. The import runs anyway; the pages should be reviewed afterwards. Nothing is trimmed or converted โ surplus items stay in the configuration and are simply absent on the panel. Only the model is compared: whether the file comes from a real device or a web panel is not checked.
Pitfalls
- The export takes the state currently shown in the admin โ including unsaved changes. Whoever wants to back up the saved state saves first or reloads the page.
- Save after the import. Apart from the panel settings nothing takes effect on its own. Leaving the admin without saving means nothing was imported โ but the panel settings have been written all the same.
- Detached is not deleted. Pages of the target panel that are not in the file only lose their assignment to this panel. They stay in the page list and keep their name taken โ so a later import of the same names leads to conflicts.
- "replace existing" reaches beyond the panel. All other resolutions only concern the target panel; replacing changes the page itself and with it every panel that shows it. Hence the confirmation with the list.
- A replaced entry keeps its PIN. If the file held no secrets, the PIN of the existing page stays โ even though the rest of the page comes from the file. Newly created pages, in contrast, get the global password of the instance.
- Overwrite completely deletes the navigation overrides even without the part "Other". If the part is deselected, the overrides of the target are removed and no new ones come in.
- After "Overwrite completely" the checkbox
Panel uses no scriptis set. Whoever wants the panel script back removes the checkbox in the panel card and saves; the script configuration is not deleted (see migration). - "Merge" ignores
Panel uses no scriptand the overrides from the file. Both are part of Other, but are not applied in this mode โ the target keeps its own state. - Dangling navigation references stay. The result lists them, but does not correct them.
- Renaming creates follow-up conflicts. A renamed page changes all pages that refer to it; those then appear as different as well. That is normal โ the difference dialog says so.
- Another model is no obstacle, but a request to check. The import runs through; whether all elements fit onto the page is decided on the panel.
- There is no undo. The result step only offers Close. The only way back is not to save the instance settings โ but the panel settings (
cmd.*) have been written by then. - Individual pages cannot be deselected. Conflict-free rows are display only. To take over just a part, there are two levers: the three parts in the first step and skip on conflict rows.
- "All panels" does not survive the trip to another installation. The export only records that a page applied to all panels; the import always assigns it to the target panel. Within the same installation this goes unnoticed, because the page already exists there โ in a foreign installation an "all panels" page becomes a page of this one panel.
- The hardware buttons change silently. They travel along and are deleted on the target when the file holds no button assignment. The summary says nothing about it โ so check the tile after an import.
- Dangling links are only looked for in the navigation. Checked are previous, next, up and home of the pages and the overrides. Target pages of items, the page after unlocking, screensaver actions and button targets are not counted, although they can point nowhere just as well.
- Whether the states of a page exist on this system is not checked. When transferring to another installation the admin imports pages with unknown object ids without complaint; it only shows when the adapter builds the page.