diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 9e84ceb..0056e6c 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -34,12 +34,12 @@ Updates may come with changes on the blueprint inputs and we highly recommend yo ## Breaking changes 1. Service `esphome.xxxxx_set_component_color` parameter `background` is deprecated. -2. Due to the additional custom button, the other buttons on home page changed it's position slightly +2. Due to the additional custom buttons, the other buttons on home page changed their positions.   ## Overview of noteworthy changes 1. Standardized entity's icons -2. Additional custom button on Home page +2. Additional custom buttons on Home page 3. Outdoor temperature selectable font size   @@ -49,8 +49,8 @@ Updates may come with changes on the blueprint inputs and we highly recommend yo The engine for defining the icons to be shown and it's color was standardize between all the pages, so now you may see a more consistent User's Interface.   -### 2. Additional custom button on Home page -It's that simple, now you have 4 buttons where used to be 3. 😉 +### 2. Additional custom buttons on Home page +It's that simple, now you have 6 buttons where used to be 3. 😉   ### 3. Outdoor temperature selectable font size diff --git a/advanced/hmi/nspanel_eu.HMI b/advanced/hmi/nspanel_eu.HMI index d198896..8712ea0 100644 Binary files a/advanced/hmi/nspanel_eu.HMI and b/advanced/hmi/nspanel_eu.HMI differ diff --git a/advanced/hmi/nspanel_eu_code/home.txt b/advanced/hmi/nspanel_eu_code/home.txt index 056d101..db1e5ce 100644 --- a/advanced/hmi/nspanel_eu_code/home.txt +++ b/advanced/hmi/nspanel_eu_code/home.txt @@ -464,6 +464,62 @@ Text button04 printh FF FF FF } +Text button05 + Attributes + ID : 47 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button06 + Attributes + ID : 48 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + Picture weather Attributes ID : 7 diff --git a/advanced/hmi/nspanel_us.HMI b/advanced/hmi/nspanel_us.HMI index 8ad8a1b..7686e8d 100644 Binary files a/advanced/hmi/nspanel_us.HMI and b/advanced/hmi/nspanel_us.HMI differ diff --git a/advanced/hmi/nspanel_us_code/home.txt b/advanced/hmi/nspanel_us_code/home.txt index 857009c..f582d64 100644 --- a/advanced/hmi/nspanel_us_code/home.txt +++ b/advanced/hmi/nspanel_us_code/home.txt @@ -464,6 +464,62 @@ Text button04 printh FF FF FF } +Text button05 + Attributes + ID : 47 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button06 + Attributes + ID : 48 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + Picture weather Attributes ID : 7 diff --git a/advanced/hmi/nspanel_us_land.HMI b/advanced/hmi/nspanel_us_land.HMI index f4a9f11..37fb4bf 100644 Binary files a/advanced/hmi/nspanel_us_land.HMI and b/advanced/hmi/nspanel_us_land.HMI differ diff --git a/advanced/hmi/nspanel_us_land_code/home.txt b/advanced/hmi/nspanel_us_land_code/home.txt index 056d101..db1e5ce 100644 --- a/advanced/hmi/nspanel_us_land_code/home.txt +++ b/advanced/hmi/nspanel_us_land_code/home.txt @@ -464,6 +464,62 @@ Text button04 printh FF FF FF } +Text button05 + Attributes + ID : 47 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button06 + Attributes + ID : 48 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + Picture weather Attributes ID : 7 diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index f507a07..7466010 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -645,6 +645,44 @@ blueprint: *Icon which should be displayed (Default - an icon matching the entity will be set automatically)* default: [] selector: *icon-selector + ## Page Home - Custom button 05 + home_custom_button05: + name: Custom button 05 - ENTITY (Optional) + description: > + *HOME page* + + *Entity which should be switched (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | script | fan | climate | media_player)* + + *Entities with supported advanced settings will open it's settings page, all other entities will execute the action or toggle when clicked.* + default: [] + selector: *home-custom-button-entity-selector + home_custom_button05_icon: + name: Custom button 05 - ICON (Optional) + description: > + *HOME page* + + *Icon which should be displayed (Default - an icon matching the entity will be set automatically)* + default: [] + selector: *icon-selector + ## Page Home - Custom button 06 + home_custom_button06: + name: Custom button 06 - ENTITY (Optional) + description: > + *HOME page* + + *Entity which should be switched (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | script | fan | climate | media_player)* + + *Entities with supported advanced settings will open it's settings page, all other entities will execute the action or toggle when clicked.* + default: [] + selector: *home-custom-button-entity-selector + home_custom_button06_icon: + name: Custom button 06 - ICON (Optional) + description: > + *HOME page* + + *Icon which should be displayed (Default - an icon matching the entity will be set automatically)* + default: [] + selector: *icon-selector ##### Alarm Control Panel - Page Alarm ##### PLACEHOLDER ###################################################################### @@ -6318,6 +6356,18 @@ trigger: event_data: entity_id: !input 'home_custom_button04' id: home_custom_buttons + ##### Custom button 05 - Trigger 'home_custom_buttons' ##### + - platform: event + event_type: state_changed + event_data: + entity_id: !input 'home_custom_button05' + id: home_custom_buttons + ##### Custom button 06 - Trigger 'home_custom_buttons' ##### + - platform: event + event_type: state_changed + event_data: + entity_id: !input 'home_custom_button06' + id: home_custom_buttons ##### Trigger - Relays - State change ################################################################################################################# @@ -7004,7 +7054,7 @@ action: - *delay-default - service: '{{ nextion.command.printf }}' data: - cmd: home.outdoor_temp.font='{{ home_outdoor_temp_font if is_number(home_outdoor_temp_font) else "4" }}' + cmd: 'home.outdoor_temp.font={{ home_outdoor_temp_font if is_number(home_outdoor_temp_font) else "4" }}' continue_on_error: true - &refresh-page_home-indoor_temp @@ -7171,6 +7221,12 @@ action: - entity: !input home_custom_button04 icon: !input home_custom_button04_icon component: button04 + - entity: !input home_custom_button05 + icon: !input home_custom_button05_icon + component: button05 + - entity: !input home_custom_button06 + icon: !input home_custom_button06_icon + component: button06 - repeat: for_each: '{{ home_page_custom_buttons }}' sequence: diff --git a/nspanel_eu.tft b/nspanel_eu.tft index 0f75550..0f72618 100644 Binary files a/nspanel_eu.tft and b/nspanel_eu.tft differ diff --git a/nspanel_us.tft b/nspanel_us.tft index 41c466d..223239d 100644 Binary files a/nspanel_us.tft and b/nspanel_us.tft differ diff --git a/nspanel_us_land.tft b/nspanel_us_land.tft index 23c4ba7..06321ba 100644 Binary files a/nspanel_us_land.tft and b/nspanel_us_land.tft differ