NSPanel Documentation β—† Icon overview GitHub Deutsch

NSPanel settings

The NSPanel settings tab is the panel management of the adapter: at the top sits the setup form with which an NSPanel is created or transferred again, next to it the button for a web panel, and below it one card for every known panel. The card also holds the two settings that only exist since 2.0.0: the Panel uses no script checkbox and one button each for the action of the two hardware buttons below the display.

The NSPanel settings tab with the setup form and two panel cards

What takes effect when β€” this holds for the whole tab:

Contents:

1. When the tab appears

The tab is visible as soon as the MQTT settings are complete: a broker (the built-in server or a broker address), a port and a login β€” with an external broker a central credentials ID is enough instead of user and password. A panel does not have to exist yet, because this is where the first one is created. The fields for it are in the MQTT server settings tab.

Above the form sits the red link Help for adapter installation (opens the wiki in a new tab). If the beta TFT is switched on in the Global Settings tab, the warning Beta version in use appears here as well.

2. Creating or updating a panel

Field Meaning
IP of the ioBroker Only with the built-in MQTT server: the address under which the panel reaches ioBroker. A select list with the addresses of the ioBroker host; while nothing is selected the field shows the placeholder Select an IP address. If the admin finds no addresses, it becomes a text field. Has to be a complete IPv4 address.
IP of the panel The panel's fixed IP; checked for a complete IPv4 format.
Panel name (unique) Name of the panel; it appears as the name of the states and of the configuration script.
Mqtt topic (unique) Topic of the panel. At least four characters, starts with a letter, then letters, digits, _ and /.
NSPanel Hardwaremodel EU landscape, US landscape or US portrait.
Timezone A search field with all Tasmota time zones. The setting applies instance-wide and is transferred in the second setup step to the panel that is currently being set up. A help text below the field says so: the value is sent only during setup or update, and only the saved value β€” save first, then set up.

The button below reads NSPanel initialisation when the topic is new, and NSPanel configuration update when a panel with that topic already exists. It is only active while the instance is running and every field is valid β€” including the MQTT settings from the other tab.

If the panel table has unsaved changes, the confirmation warns about it β€” the save at the end would discard them (see Pitfalls). After the confirmation three steps run one after the other; the admin reports a milestone after each step. If the adapter does not answer for more than 30 seconds, the admin says so and the setup keeps running in the background β€” the instance log shows the progress. What the steps do in detail (MQTT access, basic settings and time zone, Berry driver, TFT firmware, scripts) is described under adapter installation.

⚠️ At the end a dialog with "Save" and "Cancel" appears: only "Save" adds the panel to the configuration. This saving sets the whole panel table to the state the adapter knows β€” see Pitfalls.

3. Adding a web panel

Next to the initialisation button sits Add web panel. The button only appears when the web panels are switched on, and it does not need a running instance: a web panel is a pure configuration entry without hardware. The dialog asks for the name, the topic (which becomes the path of the address) and the hardware model, and shows the finished address for checking.

Everything else β€” address, operation in the browser, PIN and HTTPS, the limits of a web panel β€” is on the web panel page.

4. The panel card

Two panel cards with the two HW button buttons in green, orange and blue

The head of the card holds the panel name, for a web panel the Web label, and below it the connection state (see panel status). To the right of it sit the icon buttons:

Control Effect
⧉ (Open web panel in a new tab) Appears when the web panels are switched on and the panel has a topic β€” for a real NSPanel as well. Opens http(s)://<host>:<port>/<topic> in a new tab; a stored PIN is built into the address by the admin. More under web panel.
↓ (Export panel configuration) Writes the configuration of this panel as a JSON file β€” pages, screensaver, hardware buttons and panel settings. Only active when the panel has an id and a topic. See export and import a panel configuration.
↑ (Import panel configuration) Reads such a file back in. Before applying it, the admin shows a review with every single page, the import mode and the conflicts. See export and import a panel configuration.
Pencil For an NSPanel: copies IP, name, topic and model up into the form, the frame blinks briefly. The change itself only happens when NSPanel configuration update is run afterwards. For a web panel the pencil opens its dialog β€” that works with the instance stopped as well.
Bin Asks for confirmation and then removes the entry from the panel table. Only with the instance running. The device keeps its Tasmota settings; to really wipe it, use the factory reset in the Tasmota tools.

Below, for information only, the MAC address (for a web panel the automatically generated ID web_…), the IP (NSPanel only), the Mqtt topic and the hardware model. Then follow the Panel uses no script checkbox, the two buttons HW button left and HW button right and β€” only for an NSPanel β€” Open Tasmota console, which opens the console of the Tasmota web interface in a new tab.

With the instance stopped the card is pale and almost everything is locked. What stays operable is the checkbox and the two hardware button buttons: both are configuration and need no running panel.

5. Panel uses no script

The checkbox (native.panels[].noScript) puts the panel into admin operation: it is built from the admin configuration and the global script only. The tooltip puts it briefly: The panel is configured in the admin (and by the global script) only. A panel script sent for it is rejected, no script update is offered.

Effect In detail
Panel scripts are rejected If a script sends a configuration for this topic, the adapter does not store it and does not reload the panel. It writes an error into the log and sends it back to the sender: deactivate or delete the script in the JavaScript adapter, otherwise it sends again on every start. The global script is never affected; it keeps applying and on changes is even loaded into the running panels. Old scripts that send the complete command topic (<topic>.cmnd.CustomSend) are recognised along with the others.
A stored script configuration stays where it is The last stored configuration of the panel is no longer used when the adapter starts β€” not even as a secondary supplier for the pages of the other panels. It is not deleted: removing the checkbox brings it back.
Built from an empty template Instead of the placeholder start page ("the void") the adapter starts with an empty page list and takes the pages from the admin; if a start page is missing, it adds its own and writes an info into the log.
No version check, no update offer In the Maintain tab Script version reads Script disabled, the SCRIPT UPDATE button is not shown, and Update scripts for all panels leaves the panel out. A request to create the panel script is rejected with a message; on initialisation the adapter only creates the global script. In the panel info tab the script name also reads Script disabled.
Take-over blocked With the checkbox set the adapter rejects Take script over into admin: remove the checkbox, convert, then set it again.
Hardware buttons need the admin Without a script there is nobody who could decide for a button. If its action is set to not configured here, the button has no function; the dialog points that out.

The right order when moving over from a script β€” take over, check, switch the script off, then set the checkbox β€” is on the Migration page.

6. The hardware buttons: two buttons, two dialogs

The two buttons below the display can be configured in the admin since 2.0.0. HW button left and HW button right on the card each open a dialog Hardware button left/right – ; the result is stored as buttonLeft respectively buttonRight of the panel.

The Hardware button left dialog with a decoupled relay and a chosen action

With the action Navigation (like an arrow of the page) the field Arrow appears below it: next, prev, home or parent. The button then acts like the navigation arrow of the page currently shown β€” next like a short press on the right arrow, home like a long one. An open popup is closed first; on the screensaver nothing happens.

The same dialog with the action β€œNavigation (like an arrow of the page)” and the additional field Arrow, here on β€œnext”

The admin overrides the script. When building the panel configuration the adapter lays the actions of the admin over those of the configuration script, separately for each side:

The dialog only closes through its own buttons β€” a click next to it does not close it. Save is disabled as long as the entries are incomplete; Cancel discards the entries, but not a decoupling switch flipped in the meantime.

7. Decoupling the relay

A hardware button of the NSPanel switches its relay out of the box and does not report to the adapter. That is why the dialog offers the decoupling first and the action only afterwards.

Element Meaning
Decouple the button from its relay Switches panels.<ID>.cmd.detachLeft respectively .detachRight. The adapter thereupon sends the matching Tasmota rule straight away, which publishes the key press as an event. The dialog reads the state live and always shows the real condition. The switch needs a running instance.
Note "Decouple the button first, then the action can be configured." Appears as long as the button is coupled and no action is stored. The action selection is not shown at all.
Note "The action stored for this button is kept" Appears when an action for the coupled button is already in the configuration. It is not deleted and works again as soon as the button is decoupled.
Save with the relay coupled Only closes the dialog. There is nothing to save: the decoupling was already written when the switch was flipped, and the stored action is left untouched.
Instance not running A warning in the dialog, the switch is disabled. The action can be configured all the same β€” it lives in the configuration, not in the panel.
Web panel Has no relay. The dialog says so and always offers the action; the two button bars in the browser trigger it directly.

The decoupling survives adapter restarts (the adapter reads the state back when the panel starts), the default is coupled. Two side effects are useful to know:

8. The action types

The Action field has eight entries besides not configured here:

Action What the button does
not configured here The admin configures nothing; what the configuration script says about this button applies. On saving, the field is removed from the configuration. With Panel uses no script this means: no function.
Go to a navigation point The panel jumps to the chosen page.
Navigation (like an arrow of the page) The button acts like a navigation arrow of the page shown, see below.
Flip a datapoint Toggles a boolean state.
Set a datapoint to true Sets the state to true (push-button behaviour).
Set true, back to false after the delay Sets true immediately, false after the delay.
Set false, back to true after the delay Sets false immediately, true after the delay.
Set true after the delay Sets true only once the delay has elapsed.
Set false after the delay Sets false only once the delay has elapsed.

Depending on the choice, the matching fields appear:

9. Colour of the buttons on the card

The two buttons sit one below the other across the full width of the card and show by their colour where you stand. Every colour has a tooltip of its own that spells the state out:

Colour Meaning
Green An action is configured in the admin and can take effect: the button is decoupled from its relay β€” or it is a web panel, which has none at all.
Orange An action is configured, but the button is still attached to its relay: An action is configured, but the button is coupled to its relay - it works only after decoupling.
Blue Nothing is configured in the admin for this side, but the relay is decoupled β€” so the key press reaches the adapter, and what the configuration script says about this button applies.
Grey Nothing configured and the button switches its relay β€” the factory state.

If the decoupling cannot be read β€” with the instance stopped, for instance β€” it counts as decoupled; the button is green then. The dialog uses the same rule when it decides whether to offer the action.

Pitfalls


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

  Back to top