Skip to content

Commit 744d5af

Browse files
committed
feat: Add hide-when-zero and fix unavailable display on value slots
1 parent 0a84a6e commit 744d5af

File tree

16 files changed

+98
-25
lines changed

16 files changed

+98
-25
lines changed

esphome/nspanel_esphome_api.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,12 @@ script:
303303
304304
// Always update the home page persistent visibility variable,
305305
// regardless of which page is currently active
306-
if (is_home_page && strcmp(target_id, "indr_temp_icon") != 0)
306+
if (is_home_page &&
307+
strcmp(target_id, "indr_temp_icon") != 0 &&
308+
strcmp(target_id, "value01_icon") != 0 &&
309+
strcmp(target_id, "value02_icon") != 0 &&
310+
strcmp(target_id, "value03_icon") != 0 &&
311+
strcmp(target_id, "value04_icon") != 0)
307312
disp1->send_command_printf("vis_%s=%" PRIu8, target_id, (uint8_t)visible);
308313
309314
// Apply the vis command only when the target page is currently visible

esphome/nspanel_esphome_version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ substitutions:
1414
# Minimum required blueprint version for compatibility
1515
# Select 'next' or '${version}' when you change the "contract" between ESPHome and Blueprint
1616
# Versioning workflow will replace this by the new version being generated
17-
min_blueprint_version: 2026.4.9
17+
min_blueprint_version: ${version}
1818

1919
# Minimum required TFT version for compatibility
2020
# Must be manually updated with Nextion Editor
21-
min_tft_version: 17.0
21+
min_tft_version: 17.1
2222

2323
# Minimum required ESPHome compiler to run this
2424
# Versioning workflow will take care of updating this

hmi/dev/nspanel_easy_landscape/boot.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Variable (string) version
6060
Attributes
6161
ID : 5
6262
Scope : global
63-
Text : 17.0
63+
Text : 17.1
6464
Max. Text Size: 5
6565

6666
Variable (int32) log_len

hmi/dev/nspanel_landscape_code/Program.s.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Program.s
77
int vis_bt_icon=0
88
int vis_bt_utilities=0, vis_bt_notific=0, vis_bt_qrcode=0, vis_bt_entities=0
99
int vis_button01=0, vis_button02=0, vis_button03=0, vis_button04=0, vis_button05=0, vis_button06=0, vis_button07=0
10+
int vis_value01=0, vis_value02=0, vis_value03=0, vis_value04=0
1011
int is_buttonpage01=0, is_buttonpage02=0, is_buttonpage03=0, is_buttonpage04=0
1112
int is_entitypage01=0, is_entitypage02=0, is_entitypage03=0, is_entitypage04=0
1213
int home_page_id=1, back_page_id=1, wakeup_page_id=1

hmi/dev/nspanel_landscape_code/boot.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Variable (string) version
6060
Attributes
6161
ID : 5
6262
Scope : global
63-
Text : 17.0
63+
Text : 17.1
6464
Max. Text Size: 5
6565

6666
Variable (int32) log_len

hmi/dev/nspanel_landscape_code/home.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ Page home
4848
vis button05,vis_button05
4949
vis button06,vis_button06
5050
vis button07,vis_button07
51+
vis value01,vis_value01
52+
vis value02,vis_value02
53+
vis value03,vis_value03
54+
vis value04,vis_value04
55+
vis value01_icon,vis_value01
56+
vis value02_icon,vis_value02
57+
vis value03_icon,vis_value03
58+
vis value04_icon,vis_value04
5159
// Bluetooth icon
5260
vis bt_icon,vis_bt_icon
5361
// HW Button's labels

hmi/dev/nspanel_portrait_code/Program.s.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Program.s
77
int vis_bt_icon=0
88
int vis_bt_utilities=0, vis_bt_notific=0, vis_bt_qrcode=0, vis_bt_entities=0
99
int vis_button01=0, vis_button02=0, vis_button03=0, vis_button04=0, vis_button05=0, vis_button06=0, vis_button07=0
10+
int vis_value01=0, vis_value02=0, vis_value03=0, vis_value04=0
1011
int is_buttonpage01=0, is_buttonpage02=0, is_buttonpage03=0, is_buttonpage04=0
1112
int is_entitypage01=0, is_entitypage02=0, is_entitypage03=0, is_entitypage04=0
1213
int home_page_id=1, back_page_id=1, wakeup_page_id=1

hmi/dev/nspanel_portrait_code/boot.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Variable (string) version
6060
Attributes
6161
ID : 5
6262
Scope : global
63-
Text : 17.0
63+
Text : 17.1
6464
Max. Text Size: 5
6565

6666
Variable (int32) log_len

hmi/dev/nspanel_portrait_code/home.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ Page home
4848
vis button05,vis_button05
4949
vis button06,vis_button06
5050
vis button07,vis_button07
51+
vis value01,vis_value01
52+
vis value02,vis_value02
53+
vis value03,vis_value03
54+
vis value04,vis_value04
55+
vis value01_icon,vis_value01
56+
vis value02_icon,vis_value02
57+
vis value03_icon,vis_value03
58+
vis value04_icon,vis_value04
5159
// Bluetooth icon
5260
vis bt_icon,vis_bt_icon
5361
// HW Button's labels

hmi/nspanel_easy_landscape.hmi

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)