NSPanel Documentation β—† Icon overview GitHub Deutsch

PageConfig – overview

The PageConfig tab is where the pages of the panels are built: create them, set them up, assign them to a panel and link them to each other. Everything configured here lives in the configuration of the instance β€” no configuration script is needed for it. Coming from a script, the way into the admin is described under Migration.

The PageConfig tab: page list on the left, editor in the middle, navigation/panel on the right

This tab is the common shell for ten page types. What is shown in the middle depends on the type of the selected page; everything around it β€” list, filter, panel assignment, navigation, page details, saving β€” is the same for every type and is described on this page. The settings of the individual cards have pages of their own, see sub-pages per card type.

Contents:

When the tab appears

The tab is hidden as long as one of the two prerequisites is missing:

Only the entries in the form are checked, not a connection that actually stands.

In addition, the instance has to be running. With the instance stopped, Page Type, the New Page field, the + button, the bin icons of the list, the two tabs of the right-hand column and the fields of the editors stay locked; the panel filter and the page list can still be read. The reason: the admin asks the running adapter for the existing page names live (command getAllPages) β€” if the answer stays empty, it tries again every three seconds.

Layout

Area Content
Left Panel filter, page type, the New Page field, the page list and the Documentation button.
Middle The editor of the selected page β€” one per page type. With no page selected it says Select an item.
Right Navigation/Panel with two tabs: panel assignment and navigation targets, and the page details.

The right-hand column can be collapsed with the handle on its left edge (⏷ open, ⏢ closed). As long as no page is selected it is collapsed and the handle does nothing. On a narrow screen (phone, tablet) there is no handle: the column then moves below the editor and carries a bar labelled Navigation/Panel at the top.

Panel filter

Decides which pages the list shows β€” it changes nothing in the configuration.

Choice Shows
All panels Every page, regardless of assignment.
Not assigned Pages without a panel assignment. Those are not present on the panel β€” this is where to find them again.
<panel name> Pages assigned to that panel, plus every page set to (all).

Every panel of the panel table can be chosen, including the web panels. The web panel mirror of a hardware panel is not an entry of its own: it gets the pages of the panel it is made from and therefore does not appear in the list.

Page type

The page type filters the list and determines what a click on + creates. The selection has twelve entries: two pure filters and the ten page types.

The opened Page Type selection with all twelve entries

Entry Meaning Described under
All Filter: shows every page. β€”
Main pages Filter: shows the pages flagged as start page. Page details
Menu page Five variants in one type: Grid (6 slots), Grid2 (8 slots, 9 on us-p), Grid3 (4 slots), Entities (4 rows), Schedule (6 rows). Menu page
Alarm Alarm system; with the unlock mode it becomes the unlock page. Alarm and unlock page
QR Wi-Fi access, phone number or address as a QR code. QR code
Power Energy flow with producers and consumers. Power
Trash Collection dates. Trash
Chart History as a line or as columns. Chart
Thermostat (Thermo2) Heating and climate, up to eight heat circuits. Thermostat
Thermostat (classic) The older thermostat card with eight slots. Thermostat (classic)
Media player Music, speakers, playlists and favourites. Media player
Page link Shows another admin page under its own name and with its own navigation. Page link

In addition:

Creating and deleting pages

Create: pick a page type, enter a name in the New Page field, press +. The name is the unique ID of the page: it is how other pages address it in their navigation targets, and how a page item with a navigation target or a script jumps to it.

Two cases the note does not mention. The start page always replaces a main from the script. And a page of the global script configuration is only replaced when the panel is assigned to the admin page by name β€” an assignment of (all) is not enough. When the admin page loses against the page from the script of this panel, that stands in the log alone: "Page with name … already exists, skipping!". To replace a script page, remove it from the script β€” or take the script over completely, see Migration.

The name is fixed

There is no renaming: the Unique ID field in the editor only shows the name. It is read-only and carries the note "The name is fixed once the page exists - other pages refer to it."; on the start page its own note stands there ("Start page - published under the id "main" …"). The value can still be selected and copied.

Why fixed? The ID is what hangs together: the navigation targets prev, next, parent and home of other pages, navigation targets on page items, page links, the remembered page list of the assigned panels and every reference from a configuration script. Renaming carried only part of that along; the rest led nowhere silently and showed up in the adapter log at best ("Navigation unresolved for …"). If a page is to have a different name, the way is: create a new page with the new name, move the contents over, delete the old page β€” and take the references the confirmation names with you while deleting. There is no page duplicate.

Order and copying

Order: the list is always sorted alphabetically; there is no manual order, and none is needed β€” what the panel shows follows from the navigation, not from the position in the list. In the select lists of the navigation targets main comes first, the rest alphabetically.

Copy: a whole page cannot be duplicated. If the same content is to appear at two places of the navigation, the page link is the way. What can be copied are single page items of a menu page: right-click the slot, Copy item, right-click the target slot, Paste item β€” also from one menu page into another. There is no way by tap or keyboard shortcut, so on tablet and phone the function is out of reach. The details are under Menu page.

Deleting

Via the bin icon in the row β€” on the desktop it appears when hovering the row, on a touch screen it is always there. The confirmation Delete item? with the name of the page follows. It names the pages that point at this one: the navigation targets prev, next, parent and home from all assignment rows, page links with this page as their target and page items navigating here. More than five are counted ("… and n more").

If a prev or next points at the page, the checkbox Connect the previous and the next page appears below. With it set, the neighbours take over the prev or next of the deleted page β€” A β†’ B β†’ C becomes A β†’ C; if the deleted page has no neighbour of its own on that panel, the link is removed instead of moved. The checkbox is not preselected, and every assignment row is handled on its own, so every panel keeps its own chain. Afterwards the list selects the first page of the current filter.

The confirmation before deleting a page

⚠️ Named is not cleaned up. The confirmation lists the references but does not remove them: parent, home, page links and navigation targets on page items stay on the name of the deleted page and lead nowhere (a page link is reported by the adapter and skipped). The list itself is not complete either β€” references from a configuration script are not part of the page configuration and are therefore not named; the dialog says so as well. The checkbox closes the prev/next chain and nothing else. To see everything that points at the page, look into the navigation flow beforehand.

Panel assignment and navigation

The first tab of the right-hand column decides on which panel a page appears and how it is reached.

The Navigation/Panel column with panel assignment, the four targets and the summary

Assigning a panel

Choose a panel in the select field and add it with +. There is also the entry (all) β€” the page then applies to every panel, including ones added later. Panels already assigned disappear from the selection. The bin icon next to an assignment removes it; the first click only marks it (the icon gets a dark red background), the second deletes it, and after three seconds without a second click the marking expires.

A page without a panel assignment is never built and does not exist on the panel. That is the most common reason for "the page is gone" β€” the Not assigned panel filter shows everyone affected.

Excluding a single panel: if the page is set to (all), a panel can be excluded by assigning it in addition and never touching its navigation. The adapter then skips the page for exactly that panel; the summary carries the note Page will not be added.

Once touched, the row stays. The exclusion depends on the panel row carrying no navigation at all. Setting a target there and removing it again leaves an empty but existing navigation β€” the page is built again, and the note Page will not be added disappears accordingly (up to and including 2.2.0 it kept showing because it only looked at the empty prev and next fields). The only safe way out is to remove the panel and assign it again.

There are four fields for the panel clicked in the list. They belong to the two navigation arrows at the top of the panel:

Field Operation on the panel
next short press on the right arrow or swipe right
prev short press on the left arrow or swipe left
home long press on the right arrow (at least 0.5 s)
parent long press on the left arrow (at least 0.5 s)

If only one of the two targets of an arrow is set on a page (e.g. only home), the short press or the swipe leads there as well.

Which icon an arrow carries is decided by its long-press target. If only prev or next is set, the panel shows the plain arrow to the left or right. As soon as parent is set the left button carries an up arrow, and as soon as home is set the right one carries a house β€” even when prev or next is set as well. The short press still leads to prev/next, the icon just does not show it. Both targets on one arrow only come about through the admin; a script configuration always yields just one of the two.

As soon as the long press is reached, the heading and the arrows blink yellow/green: letting go now leads to home or parent (TFT 6.2.0 and newer and in the web panel).

The choices are the pages this panel knows about and the admin pages assigned to it β€” the page itself is excluded. The Show system pages checkbox adds the internal pages (///…) to the list; the unlock page ///unlock is never hidden. A target already entered always stays visible, even when it is a system page.

At the end of every list there is also Screensaver: the gesture then shows the screensaver at once, and the arrow on the panel carries the icon power-sleep for it (see showing the screensaver at once). This target counts as present on every panel and raises no collision notes β€” any number of pages may lead there.

Below the fields there is a summary per assigned panel: a dot (green as soon as any target is set, otherwise red), the panel name and the four values.

Resolved neighbours as a placeholder: a field without a value of its own shows, in grey italics, the neighbour the running adapter resolved for this panel β€” the page whose next points here, for instance. That is not a stored value, and the tooltip says so: "Determined from the navigation of the running adapter, not stored. Choose a value to store it." Only a choice of your own is stored; an empty field stays empty, nothing is written back. Without a running instance the placeholders stay empty, and so they do with the assignment (all) β€” there the neighbours can differ per panel. After a restart of the adapter they fill with a delay: the admin asks for the navigation from the third second on, for up to a minute.

Collision notes: below prev and next a note appears in the warning colour when other pages on the selected panel have stored the same value ("The pages X, Y also point to this prev.", likewise for next) or when other pages point at this page with their prev while its own next leads to none of them ("… they only hang on by their own prev."). The notes are computed from the stored configuration β€” start pages do not count, because their own values are ignored anyway.

Worth knowing:

Page details

The second tab of the right-hand column. It applies to every page type; the three paging settings only appear on the cards that page through a list of page items.

The page details with paging settings and screensaver behaviour

Setting Meaning
Start page (main) The page is published on the assigned panels under the ID main and replaces the start page from the script or the one the adapter generates. Assign first, then flag: without a panel assignment the checkbox stays disabled ("Assign a panel first"), likewise with the instance stopped and when another page is already the start page for one of the panels concerned β€” the note names it. While the marker is set, the panel assignment and the four navigation targets are locked (the name is fixed anyway): the start page has no navigation of its own β€” its neighbours follow from the other pages whose prev or next points at it, and the fields show what the adapter resolved from that. Targets stored earlier are kept but ignored while the marker is set, and apply again as soon as it is removed. A page that is simply named main is treated the same way by the adapter β€” even without the marker, then with a warning in the log.
Hidden The page is locked while Hide pages (hideCards) is on for the panel: swiping skips it, and a targeted navigation (e.g. a navigation item on a grid page) does not open it but shows the message "Page locked" (from TFT 6.2.0 with a large prohibition icon, on older TFTs as a classic popup). The arrows then go on from the page shown. Without Hide pages, Hidden has no effect. In the admin such pages carry a closed eye β€” in the page list and in the navigation flow. Where Hide pages is switched: Hide pages.
Paging of the page items Classic (the arrows of the panel page), Arrow (the last slot of the page becomes the paging arrow) or Automatic (like classic, and pages on by itself as well). Default: classic.
Scroll by Full page or Half page. Only appears with Classic and Automatic.
Seconds until the next page Only with Automatic; empty = 15 seconds.
Screensaver behavior Default timeout (the time of the panel applies), Never activate (the screensaver does not start while this page is on screen β€” an alarm page, for instance) or Inherit from previous page (the page sends the panel no new time, the one of the previously shown page keeps applying).

The three paging rows appear on menu pages (Grid, Grid2, Grid3, Entities, Schedule), on the thermostat page (Thermo2) and on the media player. Half page only exists on the three grid variants and on Thermo2 β€” and on Thermo2 the choice is reset to Full page by the adapter. What the three modes mean on the respective card is described under Menu page, Thermostat and Media player.

The two tabs are labelled Navigation and Page details (on a narrow screen Nav and Details).

Hide pages

Hide pages is the switch without which Hidden has no effect. It applies per panel to all of its hidden pages β€” admin pages as well as script pages (hidden: true). There is no field for it in the admin; it is switched in two places:

Where How
Datapoint nspanel-lovelace-ui.0.panels.<id>.cmd.hideCards (true/false, default false) β€” e.g. in the Objects tab, by script or Blockly, written without acknowledgement (ack: false). The change takes effect at once, without a restart, and is kept over restarts.
On the panel On the service pages (protected by the Service PIN from the global settings): Overview β†’ System β†’ switch Hide Cards. The icon on the left turns green once it is on and red once it is off β€” the switch itself stays blue.

The service page System on the panel: the entry Hide Cards with a green icon and the switch turned on

The page ///unlock leads to the service pages. It is not a code to type in but a navigation target: enter ///unlock on a page as next, prev, home or parent β€” it is always in the list, even without Show system pages. On the panel it asks for the Service PIN on a number pad and, after the right entry, leads once to Overview. There is no unlock for a period of time: every new visit asks for the PIN again. After a wrong entry the number pad is blocked for a short while, and twice as long with every further failed attempt. If no Service PIN is set, access is open β€” the adapter then warns in the log at startup.

While Hide pages is on, every page with the Hidden box ticked behaves like this:

While Hide pages is off, hidden pages behave like all others. Typical use: maintenance or expert pages that should only be reachable at times β€” the datapoint can, for example, be tied to presence or the time of day by a script.

The setting travels with export and import (part Other).

The Documentation button

Below the page list, Documentation opens the wiki page of the currently selected page type in a new tab. With the selection on All or Main pages, the selected page decides: the button leads to the page of its card β€” for a menu page that is cardGrid, cardGrid2, cardGrid3, cardEntities or cardSchedule, which all redirect to Menu page. If no page is selected, the button lands on this overview.

Saving

The admin collects all page changes in the form; they only take effect on Save. The adapter restarts afterwards and builds the pages. Closing the instance settings or reloading the browser loses everything unsaved.

One exception: assigning a panel writes the page name into the remembered page list of the panel object straight away, so that the select lists of the other pages are complete. That is only a cache of the interface β€” the page itself is still only created on save.

Sub-pages per card type

The settings of the individual page types, in the order of the Page Type selection:

Plus the dialogs that look the same in several editors: Recurring dialogs β€” page item, object picker, colours, mode list, raw data.

The unlock page is not a page type of its own: it is made from an alarm page whose editor is switched from alarm to the unlock mode, together with the target to jump to after the correct PIN.

Which states the cards expect is listed in the alias table; the way from an existing configuration script into the admin is described by Migration.

Pitfalls


Source of this page: doc/en/PageConfig.md Β· Project on GitHub

  Back to top