diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 62a5df3..eb5eccf 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -218,7 +218,8 @@ This addition allows for a more comprehensive at-a-glance view of your essential ### Automatic Font Size Adjustment for Entity Page Values We've enhanced the entities pages with an automatic font size adjustment feature to improve the display of values, especially for longer strings or values with lengthy units. This smart adjustment reduces the occurrence of truncated values by dynamically resizing the font based on the string length. -While the selection of fonts for the panel remains limited, this automatic resizing significantly enhances readability, ensuring that all displayed information is clear and fully visible at a glance. +While the selection of fonts for the panel remains limited, this automatic resizing significantly enhances readability, +ensuring that all displayed information is clear and fully visible at a glance. ## v4.3.1 - Ensuring Compatibility with ESPHome v2024.3.0 and Enhancing Stability Patch v4.3.1 focuses primarily on ensuring full compatibility with the latest ESPHome v2024.3.0 IP address format changes, crucial for the smooth compilation and operation of the NSPanel project. @@ -228,11 +229,20 @@ It underscores our ongoing commitment to enhancing stability and ensuring a reli ### Support for ESPHome v2024.3.0 IP Address Format - **Criticality:** Critical (required for compiling with ESPHome 2024.3.0) - **Affected Components:** ESPHome -- **Description:** This update introduces necessary adjustments to accommodate the new IP address format introduced by ESPHome v2024.3.0, ensuring uninterrupted project compilation and enhancing compatibility. +- **Description:** This update introduces necessary adjustments to accommodate the new IP address format introduced by ESPHome v2024.3.0, +ensuring uninterrupted project compilation and enhancing compatibility. This critical update is the cornerstone of patch v4.3.1, deployed simultaneously with ESPHome to ensure NSPanel users experience no disruption in service. This adaptation ensures that NSPanel firmware remains fully functional and up-to-date with ESPHome's latest advancements, reaffirming our commitment to providing a seamless and stable user experience. +### Button Bars Visibility Enhancement and Configuration Change +- **Criticality:** Breaking Change (with Enhancement) +- **Affected Components:** Blueprint +- **Description:** The visibility of button bars, indicating the status of entities linked to hardware buttons, has been updated to be visible across all pages by default, including the screensaver. +This enhancement improves the accessibility of crucial status information. +Users who previously customized the visibility settings for button bars will need to review and adjust their configurations to align with the new default behavior. +This change enables users to selectively exclude button bars from specific pages if desired, providing greater flexibility and control over the interface's appearance. + ### Celsius Display Issue for Embedded Temperature Sensor Resolved (#1834) - **Criticality:** Medium - **Affected Components:** ESPHome diff --git a/components/nspanel_ha_blueprint/pages.h b/components/nspanel_ha_blueprint/pages.h index 69e2893..e7e6b85 100644 --- a/components/nspanel_ha_blueprint/pages.h +++ b/components/nspanel_ha_blueprint/pages.h @@ -22,6 +22,7 @@ namespace nspanel_ha_blueprint { * such as settings, home, weather information, and more. */ constexpr std::array page_names = { + "boot", "home", "weather01", "weather02", @@ -30,7 +31,6 @@ namespace nspanel_ha_blueprint { "weather05", "climate", "settings", - "boot", "screensaver", "light", "cover", diff --git a/esphome/nspanel_esphome_core.yaml b/esphome/nspanel_esphome_core.yaml index ecc4919..ea3c433 100644 --- a/esphome/nspanel_esphome_core.yaml +++ b/esphome/nspanel_esphome_core.yaml @@ -17,7 +17,7 @@ substitutions: temp_units: "°C" invalid_cooldown: "100ms" ##### DON'T CHANGE THIS ###### - version: "4.3.1d1" + version: "4.3.1b1" ############################## ##### External components ##### @@ -845,7 +845,7 @@ display: - id: disp1 platform: nextion uart_id: tf_uart - start_up_page: 8 # Boot page + start_up_page: 0 # Boot page on_setup: lambda: |- nextion_init->publish_state(true); @@ -1164,7 +1164,7 @@ binary_sensor: ##### Restart NSPanel Button - Setting Page ##### - name: Restart platform: nextion - page_id: 7 + page_id: 8 component_id: 9 internal: true on_click: @@ -1172,7 +1172,7 @@ binary_sensor: ##### Restart NSPanel Button - Boot Page ##### - name: Restart platform: nextion - page_id: 8 + page_id: 0 component_id: 4 internal: true on_click: @@ -2216,7 +2216,7 @@ script: current_page->state != "confirm" && current_page->state != "keyb_num") { detailed_entity->publish_state(""); - disp1->send_command_printf("back_page_id=0"); + disp1->send_command_printf("back_page_id=1"); } if (current_page->state != "media_player") { id(last_volume_level) = 0; diff --git a/hmi/dev/nspanel_eu_code/Program.s.txt b/hmi/dev/nspanel_eu_code/Program.s.txt index b8d5912..f636188 100644 --- a/hmi/dev/nspanel_eu_code/Program.s.txt +++ b/hmi/dev/nspanel_eu_code/Program.s.txt @@ -6,7 +6,7 @@ Program.s int p=0,q=0,t=0,f=0 int is_buttonpage01=0, is_buttonpage02=0, is_buttonpage03=0, is_buttonpage04=0 int is_entitypage01=0, is_entitypage02=0, is_entitypage03=0, is_entitypage04=0 - int back_page_id=0 + int back_page_id=1 int dimdelta=0 int api=0 // 0 = disconnected from HA, 1 = connected to HA int is_utilities=0 @@ -20,4 +20,4 @@ Program.s { lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version } - page 8//Power on start page boot + page 0//Power on start page boot diff --git a/hmi/dev/nspanel_eu_code/boot.txt b/hmi/dev/nspanel_eu_code/boot.txt index 5d92c4d..37c7d7c 100644 --- a/hmi/dev/nspanel_eu_code/boot.txt +++ b/hmi/dev/nspanel_eu_code/boot.txt @@ -99,7 +99,7 @@ Text tft_version Dragging : 0 Send Component ID : on press and release Associated Keyboard: none - Text : 4.3.1d1 + Text : 4.3.1b1 Max. Text Size : 9 Text esph_version diff --git a/hmi/dev/nspanel_us_code/Program.s.txt b/hmi/dev/nspanel_us_code/Program.s.txt index 201bccf..97bdfbf 100644 --- a/hmi/dev/nspanel_us_code/Program.s.txt +++ b/hmi/dev/nspanel_us_code/Program.s.txt @@ -6,7 +6,7 @@ Program.s int p=0,q=0,t=0,f=0 int is_buttonpage01=0, is_buttonpage02=0, is_buttonpage03=0, is_buttonpage04=0 int is_entitypage01=0, is_entitypage02=0, is_entitypage03=0, is_entitypage04=0 - int back_page_id=0 + int back_page_id=1 int dimdelta=0 int api=0 // 0 = disconnected from HA, 1 = connected to HA int is_utilities=0 @@ -20,4 +20,4 @@ Program.s { lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version } - page 8//Power on start page boot + page 0//Power on start page boot diff --git a/hmi/dev/nspanel_us_code/boot.txt b/hmi/dev/nspanel_us_code/boot.txt index 0e23076..a7382ea 100644 --- a/hmi/dev/nspanel_us_code/boot.txt +++ b/hmi/dev/nspanel_us_code/boot.txt @@ -99,7 +99,7 @@ Text tft_version Dragging : 0 Send Component ID : on press and release Associated Keyboard: none - Text : 4.3.1d1 + Text : 4.3.1b1 Max. Text Size : 9 Events diff --git a/hmi/dev/nspanel_us_land_code/Program.s.txt b/hmi/dev/nspanel_us_land_code/Program.s.txt index a80eb68..3087457 100644 --- a/hmi/dev/nspanel_us_land_code/Program.s.txt +++ b/hmi/dev/nspanel_us_land_code/Program.s.txt @@ -6,7 +6,7 @@ Program.s int p=0,q=0,t=0,f=0 int is_buttonpage01=0, is_buttonpage02=0, is_buttonpage03=0, is_buttonpage04=0 int is_entitypage01=0, is_entitypage02=0, is_entitypage03=0, is_entitypage04=0 - int back_page_id=0 + int back_page_id=1 int dimdelta=0 int api=0 // 0 = disconnected from HA, 1 = connected to HA int is_utilities=0 @@ -20,4 +20,4 @@ Program.s { lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version } - page 8//Power on start page boot + page 0//Power on start page boot diff --git a/hmi/dev/nspanel_us_land_code/boot.txt b/hmi/dev/nspanel_us_land_code/boot.txt index 5d92c4d..37c7d7c 100644 --- a/hmi/dev/nspanel_us_land_code/boot.txt +++ b/hmi/dev/nspanel_us_land_code/boot.txt @@ -99,7 +99,7 @@ Text tft_version Dragging : 0 Send Component ID : on press and release Associated Keyboard: none - Text : 4.3.1d1 + Text : 4.3.1b1 Max. Text Size : 9 Text esph_version diff --git a/hmi/nspanel_eu.HMI b/hmi/nspanel_eu.HMI index c895626..b77a3a5 100644 Binary files a/hmi/nspanel_eu.HMI and b/hmi/nspanel_eu.HMI differ diff --git a/hmi/nspanel_us.HMI b/hmi/nspanel_us.HMI index 285e268..4b6ab7e 100644 Binary files a/hmi/nspanel_us.HMI and b/hmi/nspanel_us.HMI differ diff --git a/hmi/nspanel_us_land.HMI b/hmi/nspanel_us_land.HMI index 9199752..27869d7 100644 Binary files a/hmi/nspanel_us_land.HMI and b/hmi/nspanel_us_land.HMI differ diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 42cad2e..1fcadae 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -10,7 +10,7 @@ blueprint: description: > # NSPanel Configuration via Blueprint: Complete UI-Based Setup - **Version**: v4.3.1d1 + **Version**: v4.3.1b1 This project enables comprehensive configuration of your NSPanel through a Blueprint featuring a user interface. @@ -793,24 +793,24 @@ blueprint: default: ' ' selector: *placeholder-selector ##### PLACEHOLDER ###################################################################### - hw_buttons_bar_pages: + hw_buttons_bars_pages: name: Hardware Buttons - Visibility Pages description: > Choose the pages where the bars, indicating the status of entities linked to hardware buttons, will be displayed. ***Attention!** Overlapping of button bars with other components may occur on some pages. Please proceed with caution.* default: - - '1' + - '2' - '61440' - '3932160' - '65536' - '131072' - '512' - - '128' + - '256' - '134217728' - - '62' + - '124' - '8388608' - - '64' + - '128' - '2048' - '4194304' - '1024' @@ -822,7 +822,7 @@ blueprint: multiple: true options: - label: "Home (default)" - value: '1' # 2^0 + value: '2' # 2^1 - label: "Buttons pages" value: '61440' # 2^12 + 2^12 + 2^14 + 2^15 - label: "Entities pages" @@ -834,15 +834,15 @@ blueprint: - label: "Screen saver (sleep) page" value: '512' # 2^9 - label: "Settings page" - value: '128' # 2^7 + value: '256' # 2^8 - label: "Utilities page" value: '134217728' # 2^27 - label: "Weather pages" - value: '62' # 2^1 + 2^2 + 2^3 + 2^4 + 2^5 + value: '124' # 2^1 + 2^2 + 2^3 + 2^4 + 2^5 - label: "Alarm control panel page" value: '8388608' # 2^23 - label: "Climate page" - value: '64' # 2^6 + value: '128' # 2^7 - label: "Cover page" value: '2048' # 2^11 - label: "Fan page" @@ -3295,7 +3295,7 @@ trigger_variables: variables: ##### GENERAL ##### - blueprint_version: '4.3.1d1' + blueprint_version: '4.3.1b1' date_format_temp: !input 'date_format' # Avoid breaking change for existing users with legacy type format date_format: '{{ date_format_temp if date_format_temp not in ["%d.%m", "%d/%m", "%-d/%-m", "%-m/%-d"] else "%A, " ~ date_format_temp }}' @@ -7577,7 +7577,7 @@ action: - variables: climate_friendly_name: '{{ state_attr(climate, "friendly_name") if climate is string and climate is match "climate." else "" }}' - hw_buttons_bar_pages: !input hw_buttons_bar_pages + hw_buttons_bars_pages: !input hw_buttons_bars_pages - service: 'esphome.{{ nspanel_name }}_init_hardware' data: @@ -7591,7 +7591,7 @@ action: relay2_fallback: !input relay_2_local_fallback button_left: '{{ hardware.buttons.left.entity is defined and hardware.buttons.left.entity is string and hardware.buttons.left.entity.split(".") | count == 2 }}' button_right: '{{ hardware.buttons.right.entity is defined and hardware.buttons.right.entity is string and hardware.buttons.right.entity.split(".") | count == 2 }}' - button_bar_pages: '{{ hw_buttons_bar_pages | map("int") | sum }}' + button_bar_pages: '{{ hw_buttons_bars_pages | map("int") | sum }}' button_bar_color_on: !input hw_buttons_bar_color_on button_bar_color_off: !input hw_buttons_bar_color_off embedded_climate: '{{ climate == thermostat_embedded }}'