This article covers the settings in the Blueprint Automation.
The Blueprint Automation is the central configuration element of this solution for the NSPanel.
In principle, the setup of the automation is self-explanatory. The individual elements of the Blueprint are described below.
It is possible to change both the color of the labels and the icons for most of the elements on each screen.
On the blueprint settings, you will be able to select any of the MDI icons supported by Home Assistant, however, your panel will only support the icons available on the NSPanel-Easy Material Design Icons.
For an easier overview, the menu items “Icon Color” and “Label Color” will not be described separately in the following documentation.
You will be presented with a list of all of your ESPHome ESP32 devices and you must select your panel from the list.
This is technically the only required field, as basic functionality will be available when the Blueprint knows to which panel it has to send the settings.
[!NOTE] You cannot have more than one blueprint-based automation per each panel
Language is no longer configured in the Blueprint. It is now set directly in your ESPHome YAML as a substitution, which means only your chosen language’s strings are compiled into the firmware — saving memory and allowing the panel to display correct date and UI strings even when offline.
To set your language, add the language substitution to your ESPHome YAML:
substitutions:
language: pt # Portuguese - see docs/localization.md for all supported codes
For the full list of supported language codes, see Localization.
Select how you want to see the date displayed on your panel (Home page and weather pages are affected).
Select how you want to see the time displayed on your panel’s Home page.
Select a Weather entity to use.
Most of the weather integrations are supported, however some may be able to provide more information than others.
We run all of our tests with “Accuweather”, so the parameters shown on the panel are targetting this integration and will be shown with your integration when available.
The weather pages show the forecast temperatures as <min> / <max> by default.
Enable this option to show them as <max> / <min>.
Optionally, the value of an outdoor temperature sensor can be used here. If no separate sensor is used, the value of the weather integration will be used.
An indoor temperature sensor is not necessary. Leave the field empty if you want to use the temperature sensor of the NSPanel. If the value of the sensor needs to be corrected, this can be done via the temperature correction for the NSPanel under HA Devices.
| Entity | Description | Example |
|---|---|---|
| Home page - Entity State 01-04 (Optional) | Up to four HA entities can be displayed on the home screen. | ![]() |
| Home page - Chips 01-07 (optional) | Used to display icons of HA binary entities on the home screen. The icon is displayed when the entity is on/open/true/active. Otherwise, no icon is displayed. | ![]() |
| Custom button 01-07 (Optional) | 7 custom buttons that can be assigned to different entities from your Home Assistant. The behavior of these buttons will depend on the entity’s domain, such as light, media player, etc. | ![]() |
An alarm control panel entity can be controlled by your panel. When you assign the entity here, its icon will be shown as a button on the Home page.
Here you select the main climate entity controlled by your panel. Its temperature will be used on the Home page and by clicking on that value you will be able to control the climate settings.
You can optionally use your panel to control a climate system locally, using its temperature sensor and relays. You will find more details about this on the Add-on Climate documentation.
If you are using the climate add-on, it will create a climate entity in your panel’s device page. You still have to select that entity on this field in the blueprint settings to have it used as your main climate.
Additional climate entities can be assigned to buttons and will be explained later in this document.
On the blueprint settings, you will also find settings for sensors and custom buttons to be shown on all the climate pages.
When a climate entity supports preset modes (like eco, comfort or away), its climate page shows a preset button that opens a list with the available presets.
Activates the QR Code page and shows the QR Code button on the Home page.
String, which is shown as a QR Code on the NSPanel. This can be a simple text, an URL or could also be used for a simplified login to the Wi-Fi. Here is an example (simply change SSID and password to your credentials and either use “WPA” or “WEP”):
WIFI:S:SSID;T:WPA/WEP;P:PASSWORD;;
For a network with the following parameters:
Your QR code string will look like this:
WIFI:S:my_ssid;T:WPA;P:MySecurePa$$w0rd;;
For more details about these specifications, please visit the WPA3™ Specification v3.1, chapter 7.
Choose the pages where the bars, indicating the status of entities linked to hardware buttons, will be displayed.
By default, the bars are displayed only on the home page. If none of the selected pages is valid, the bars are displayed on the home page.
Choose the pages where the labels of the hardware buttons will be displayed. Currently available: Home (default) and Screen saver (sleep) page. If none of the selected pages is valid, the labels are displayed on the home page. The labels are not visible on the US landscape model.
Normally, the internal relays of the NSPanels are triggered via HA. If the NSPanel loses Wi-Fi connection or HA is down, the hardware button can then switch the corresponding relay directly.
The entity that should be switched with the left/right hardware button.
Label on the screen above the corresponding hardware button, shown on the pages selected in Labels Pages. It can show a text or an icon:
Text (default) shows the label text, and Icon shows the label icon.Text (10 characters are supported).Icon, from the icon cheatsheet.
If not set, the icon of the state indicator entity is used (or of the controlled entity, when no state indicator entity is set), falling back to its device class and domain icons.
The icon is resolved when the panel syncs with the Blueprint, and does not change with the entity state.While Home Assistant is not connected, the label is dimmed, as the button has no effect. This does not apply when the button controls its relay locally or with Activate Relay x local Fallback, as the button keeps working.
Selection of what action should happen when the button is pressed for a longer time.
Selection of the action to start when holding the button.
Text on the respective button screens.
The buttons can be accessed by swiping on the Home Screen and their functions are completely identical. Either the individual button pages can be accessed one after the other by swiping to the left, or the button pages can be accessed directly by swiping up, down or to the right.
The buttons are numbered as follows:
| Button Page 1 | Button Page 2 | Button Page 3 | Button Page 4 | |
|---|---|---|---|---|
| Row 1 | 01 02 03 04 | 09 10 11 12 | 17 18 19 20 | 25 26 27 28 |
| Row 2 | 05 06 07 08 | 13 14 15 16 | 21 22 23 24 | 29 30 31 32 |
| Button Page 1 | Button Page 2 | Button Page 3 | Button Page 4 | |
|---|---|---|---|---|
| Row 1 | 01 02 | 09 10 | 17 18 | 25 26 |
| Row 2 | 03 04 | 11 12 | 19 20 | 27 28 |
| Row 3 | 05 06 | 13 14 | 21 22 | 29 30 |
| Row 4 | 07 08 | 15 16 | 23 24 | 31 32 |
When the respective button is pressed, a toggle action is executed or the corresponding page is automatically opened, e.g. the cover control for covers, etc. For 2 state buttons (where toggle is the default action), a long press in the button will open it’s corresponding page, when supported.
For each button an own name can be specified optionally.
All buttons offer the possibility to optionally confirm the execution of the action. This can be activated or deactivated separately for each button via “Confirm execution of the button press”.
This option activates the entity pages on the Home Screen. The entity pages can be used for example to display values or statuses of entities on the individual pages.
Naming of the corresponding Entity Screens.
The entity pages can be accessed by pressing the symbol on the Home Screen and their functions are completely identical.
The entities are numbered as follows:
| Entity page | Entities shown |
|---|---|
| 1 | 01 to 08 |
| 2 | 09 to 16 |
| 3 | 17 to 24 |
| 4 | 25 to 32 |
Additionally there is the possibility to choose an icon of your choice for the Entities button on the Home page.
Of course there is also the possibility to enter a label for each of the 4 pages and the alignment for the values on the entities pages.
By default, the Blueprint stops when the panel’s ESPHome firmware is older than the minimum version the Blueprint requires, because that firmware may not have registered all the API actions the Blueprint calls. This minimum only changes when a release makes the Blueprint depend on a newer firmware, so updating the Blueprint does not always require updating the firmware. Keeping all components on the same version is still recommended.
The firmware also reports its API version in every event it sends to Home Assistant. When the firmware has removed or changed API actions this Blueprint calls, the Blueprint stops and asks for a Blueprint update. This check cannot be bypassed, as the Blueprint would only call actions the firmware no longer supports.
Enable this option to keep the Blueprint running while you update your firmware. Features that need a newer firmware will not work until the update is completed, and the version mismatch notification is still created.
For advanced users, the Blueprint can run your own actions when it detects a version mismatch. If these are left empty, nothing changes.
| Input | When it runs |
|---|---|
| ESPHome firmware outdated | The firmware is older than the Blueprint requires. Runs when the automations are reloaded (e.g. after a Blueprint re-import) or Home Assistant starts. |
| TFT file outdated | The TFT file is older than the firmware requires. Runs when the panel boots and reports its versions. |
| Blueprint outdated | The firmware requires a newer Blueprint. Runs when the panel boots and reports its versions. |
The Blueprint variables are available in your templates,
including blueprint_version, min_esphome_version_string, api_version, nspanel_name, nspanel_full_name and nspanel_deviceid.
The description of each input in the Blueprint lists the variables relevant to it.
These actions run inside the Blueprint, so an error stops the current run, and waits or delays hold it.
For long tasks, such as compiling and installing a new firmware, call a script with script.turn_on, which returns immediately:
action: script.turn_on
target:
entity_id: script.nspanel_update_firmware
data:
variables:
panel: ""
tag: "v"
[!NOTE] Release tags use the format
v<version>. To build the firmware from the same release as your Blueprint, reference the NSPanel Easy package with a substitution (e.g.ref: ${nspanel_easy_ref}, with a default such asnspanel_easy_ref: latestundersubstitutions:) and pass the tag when compiling:esphome -s nspanel_easy_ref v<version> compile <config>.yaml. Do not name this substitutionversion, as that name is already used by NSPanel Easy for the firmware version.
Binary sensors (like motion, occupancy, doors or windows) that wake up the panel when they turn On.
The panel is kept on while any of these sensors is On, and the dim and sleep timeouts start counting once all of them are Off.
While Home Assistant is disconnected, the sensors are ignored.
Choose the decimal separator for displaying numbers.
If the Wi-Fi signal is poor, you may have issues when loading some pages. If this happens, try to increase this delay as that may help.
Specify the path to the folder containing the Nextion TFT file. This is to be used together with the option nextion_upload_tft on the “Update TFT Display - Model” option on the device’s page.
