Skip to content

Commit 6c27817

Browse files
committed
Add pre-built
1 parent 39dad77 commit 6c27817

23 files changed

+275
-8
lines changed

esphome/nspanel_esphome_addon_upload_tft.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
substitutions:
1212
################## Defaults ##################
1313
nextion_update_base_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/"
14-
nextion_update_url: "${nextion_update_base_url}/main/hmi/nspanel_blank.tft"
14+
nextion_update_url: "${nextion_update_base_url}/main/hmi/nspanel_eu.tft"
1515
upload_tft_automatically: true
1616
upload_tft_baud_rate: 115200
1717
upload_tft_wait_ms_after_boot: 300000 # 5min
@@ -207,10 +207,8 @@ script:
207207
208208
if (idx == 0) {
209209
resolved_url = "${nextion_update_url}";
210-
} else if (idx >= 1 && idx <= 7) {
211-
static const char* const FILENAME_PARTS[] = {
212-
"blank", "eu", "us", "us_land", "CJK_eu", "CJK_us", "CJK_us_land"
213-
};
210+
} else if (idx >= 1 && idx <= 6) {
211+
static const char* const FILENAME_PARTS[] = { "eu", "us", "us_land", "CJK_eu", "CJK_us", "CJK_us_land" };
214212
215213
resolved_url = std::string("${nextion_update_base_url}") +
216214
"v${version}/hmi/nspanel_" +
@@ -303,7 +301,6 @@ select:
303301
platform: template
304302
options:
305303
- "Use nextion_update_url"
306-
- "NSPanel Blank"
307304
- "NSPanel EU"
308305
- "NSPanel US"
309306
- "NSPanel US Landscape"

esphome/nspanel_esphome_api.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ script:
390390
current_page_id != ${PAGE_HOME_ID} and
391391
current_page_id != ${PAGE_QRCODE_ID} and
392392
current_page_id != ${PAGE_SCREENSAVER_ID} and
393-
current_page_id != ${PAGE_SETTINGS_ID} and
394-
current_page->state != "blank") {
393+
current_page_id != ${PAGE_SETTINGS_ID}) {
395394
ESP_LOGW("${TAG_API}", "API disconnected. Falling back to Home page.");
396395
goto_page->execute(${PAGE_HOME_ID});
397396
}

prebuilt/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Gitignore settings for ESPHome
2+
# This is an example and may include too much for your use-case.
3+
# You can modify this file to suit your needs.
4+
/.esphome/
5+
/secrets.yaml

prebuilt/EXPERIMENTAL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS EXPERIMENTAL
2+
## This is not tested
3+
### Be prepared to have to flash your panel via serial if you wanna play with this.
4+

prebuilt/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS EXPERIMENTAL
2+
## This is not tested
3+
### Be prepared to have to flash your panel via serial if you wanna play with this.
4+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"chipFamily": "ESP32",
3+
"ota": {
4+
"path": "nspanel-esp32.ota.bin",
5+
"md5": "d4cb0c8bdc8809f8802dc49541f3015a"
6+
},
7+
"parts": [
8+
{
9+
"path": "nspanel-esp32.factory.bin",
10+
"offset": 0
11+
}
12+
],
13+
"name": "NSPanel HA Blueprint",
14+
"version": "4.3.12",
15+
"builds": {
16+
"chipFamily": "ESP32",
17+
"ota": {
18+
"path": "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/prebuilt/nspanel_esphome_prebuilt.bin",
19+
"release_url": "https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.3.12"
20+
}
21+
}
22+
}
1.71 MB
Binary file not shown.
1.64 MB
Binary file not shown.
1.64 MB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d4cb0c8bdc8809f8802dc49541f3015a prebuilt/nspanel_esphome_prebuilt.bin

0 commit comments

Comments
 (0)