From 46582e3010996ae15f8b75fbf0f2b0dc777bd667 Mon Sep 17 00:00:00 2001 From: deejaybeam Date: Sat, 10 Dec 2022 01:31:42 +0100 Subject: [PATCH] upd: add page-labels --- nspanel_blueprint.yaml | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 495cbd4..9665da9 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -205,6 +205,35 @@ The goal was to create a version that allows everyone to use the NSpanel fully l selector: text: {} + ##### BUTTON Page Labels ##### + button_page01_label: + name: Name **"Button Page 1"** (Optional) + description: '* *Displayed on top of **"Button Page 1"***' + default: [] + selector: + text: {} + + button_page02_label: + name: Name **"Button Page 2"** (Optional) + description: '* *Displayed on top of **"Button Page 2"***' + default: [] + selector: + text: {} + + button_page03_label: + name: Name **"Button Page 3"** (Optional) + description: '* *Displayed on top of **"Button Page 3"***' + default: [] + selector: + text: {} + + button_page04_label: + name: Name **"Button Page 4"** (Optional) + description: '* *Displayed on top of **"Button Page 4"***' + default: [] + selector: + text: {} + ##### BUTTONS ##### entity01: name: Button 01 (Optional) @@ -1182,6 +1211,12 @@ variables: accuweather_wind_day_4d: "sensor.{{ accuweather }}_wind_day_4d" accuweather_wind_night_4d: "sensor.{{ accuweather }}_wind_night_4d" + ##### BUTTON Page Labels ##### + button_page01_label: !input button_page01_label + button_page02_label: !input button_page02_label + button_page03_label: !input button_page03_label + button_page04_label: !input button_page04_label + ##### BUTTONS 1- 32 ##### entity01: !input "entity01" entity01_name: !input "entity01_name" @@ -4839,18 +4874,54 @@ action: ## PAGE BUTTONPAGE01 ## - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage01 }}' sequence: + ##### Button Page Label ##### + - if: + - condition: template + value_template: '{{ button_page01_label |length > 0 }}' + then: + - service: "{{ command_text_printf }}" + data: + component: "bpage01_label" + message: "{{ button_page01_label }}" ## PAGE BUTTONPAGE02 ## - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage02 }}' sequence: + ##### Button Page Label ##### + - if: + - condition: template + value_template: '{{ button_page02_label |length > 0 }}' + then: + - service: "{{ command_text_printf }}" + data: + component: "bpage02_label" + message: "{{ button_page02_label }}" ## PAGE BUTTONPAGE03 ## - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage03 }}' sequence: + ##### Button Page Label ##### + - if: + - condition: template + value_template: '{{ button_page03_label |length > 0 }}' + then: + - service: "{{ command_text_printf }}" + data: + component: "bpage03_label" + message: "{{ button_page03_label }}" ## PAGE BUTTONPAGE04 ## - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage04 }}' sequence: + ##### Button Page Label ##### + - if: + - condition: template + value_template: '{{ button_page04_label |length > 0 }}' + then: + - service: "{{ command_text_printf }}" + data: + component: "bpage04_label" + message: "{{ button_page04_label }}" ##### Open Climate Settings #####