Skip to content

(EN) First Steps Installation and Setup

Blackymas edited this page Jan 23, 2023 · 42 revisions

This section covers the initial configuration. All important steps for installation and setup of ESPHome and the Blueprint are described here. 

Step by Step Setup Video

 

ATTENTION! if you have already installed the version "nspanel-lovelace-ui" from joBr99 on your NSPanel, an intermediate step is necessary - otherwise it is not possible to install this or any other version.

 

NOTE! All documentation are written in DE and then translated into EN. Since we are not EN native speakers, there may well be errors in translation or sentence structure. If something is wrong or unclear an "Issues" can be opened. If you want to help us, we are also looking for someone who would like to do the translation from DE to EN.

 
 


 

Content:

  1. Short version of the setup of Esphome and Blueprint
  2. Version "nspanel-lovelace-ui" by joBr99 was previously installed
  3. Advanced configuration for all ESPHome and Home Assistant professionals
  4. Step by Step Configuration and setup of ESPHome and Blueprint

 


 
 

1. Short version of the setup of Esphome and Blueprint

(for those who already have experience with ESPhome and Home Assistant)

  1. First you have to install the Blueprint. For this please use the following link

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

It is also possible to copy the code from the file "nspnael_blueprint.yaml " and paste it into HA. You can find instructions for this under Using Automation Blueprints und Automation blueprint tutorial

  1. You will need to download the nspanel.tft file and host it locally, you can use your Home assistant instance if required, see Home Assistant HTTP 'Hosting Files section for details.

  2. In the next step you have to create a new ESP32 device in ESPHome

  3. When the new ESP32 device has been created, next click "Edit " on the device you have just created to open the web editor. Now the following code must be copied and pasted.

IMPORTANT! The already existing code in the ESPHome file must be "COMPLETELY " deleted and "REPLACED " by the code below.

IMPORTANT! in the block "CHANGE ME " all values (device_name, wifi_ssid, wifi_password, nextion_update_url ) in the " " must be replaced by your own values. It is also possible to work here with "!secret ".

ATTENTION! for "device_name" max. 15 characters [a-z], [0-9] and [_] may be used and all must be "lowercase". Furthermore, characters like [-], [SPECIAL CHARACTARS] and [SPACES] are forbidden and will cause problems with the blueprint.

Example: nspanel_kitchen

 

CODE:

substitutions:

###### CHANGE ME ######

  device_name: "nspanel_buero" # ändere Name zum Beispiel in den Raum wo das NSPanel verbaut wird. Wird im Blueprint benötigt
  wifi_ssid:  !secret wifi_ssid # Gib dein WLAN Name ein
  wifi_password: !secret wifi_password # Gib dein Passwort fürs WLAN ein

  nextion_update_url: "http://HOME-ASSISTANT-IP:8123/local/nspanel/nspanel.tft" # URL to local tft File
#  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel.tft"

##### CHANGE ME #####



##### DO NOT CHANGE ANYTHING! #####

packages:
  ##### download esphome code from Github
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files: [nspanel_esphome.yaml]
    refresh: 300s

##### DO NOT CHANGE ANYTHING! #####

 

  1. Now the NSPanel can be flashed with the new ESPHome code.

how to flash the NSPanel you can see here HOW TO - Flash Sonoff NSPanel with ESPHome

  1. After the NSPanel is flashed, you can go to "Settings --> Devices & Services --> Add Integration" to add your new device and finish setting it up.

  2. In the last step, only the TFT must be uploaded. To do this, open your new device in the ESPHome integration and activate the item "Update TFT display " under "Configuration". Now the current TFT file is loaded from Github and uploaded to your NSPanel. ATTENTION! this process may take a moment.

  3. now the setup of ESPHome and NSPanel is completed.

  4. Now you can configure your NSPanel via the Blueprint. To do this, go to "Settings --> Automations & Scenes --> Templates --> NSPanel Configuration --> CREATE AUTOMATION" and start with the setup of the NSPanel.

NOTE! In the blueprint, in the "ESPHOME Node Name" field, enter exactly the same name that you assigned in the "ESPHome File".

Beispiel: nspanel_kitchen

 
 


 
 

2. Version "nspanel-lovelace-ui" by joBr99 was previously installed

in the version "nspanel-lovelace-ui" from joBr99 are a few special features built in, which make it not so easy to flash a new version and TFT on the NSPanel. But since we already had this problem, we have of course already a solution for you ;)

It is necessary to upload a "Blank TFT" file while "Lovelace ui" is still installed on the NSPanel.

IMPORTANT! If you have already installed the NSPanel with my version, you must first fully install "Lovelace ui" again.

The following steps are necessary:

  1. download the file "nspanel_blank.tft" from the folder custom_configuration.
  2. now upload the TFT file "nspanel_blank.tft" to the folder "www" in Home Assistant
  3. now go to the item "Developer tools --> Services" and search there for the services  
    "ESPHome: DEVICE_NAME_upload_tft" --> (esphome.device_name_upload_tft)
  4. under URL you have to enter the path to your file nspanel_blank.tft. This could look like this "http://IP_HOME_ASSISTANT:8123/local/nspanel_blank.tft"
  5. now the TFT file should be played on the NSPanel. It may take a moment until it is ready
  6. If everything worked, you should see only a white page on the NSPanel.
  7. now you can continue with the setup and configuration of my version. For this see Short version of the setup of Esphome and Blueprint

 
 


 
 

3. Advanced configuration for all ESPHome and Home Assistant professionals

  • Blueprint file "nspnael_blueprint.yaml " can also be installed manually.
  • ESPHome file_"nspanel_esphome.yaml "_ can also be installed manually. This allows to activate or add more "Advanced " configurations.
  • There is also the possibility to upload the TFT file "nspanel.tft " manually. The whole thing can also be combined with a "Folder Watcher ".
  • additionally we provide the HMI file "nspanel.HMI " for the Nextion Editor to customize graphics and programming if needed

ATTENTION! If you use this mode, you should know what you are doing. We do not give support here!

 
 


 
 

4. Step by Step Configuration and setup of ESPHome and Blueprint

(for all those who are new to ESPhome or have no experience yet)