Merge pull request #89 from deejaybeam/dev

upd: add page-labels
This commit is contained in:
Chris
2022-12-10 01:32:28 +01:00
committed by GitHub

View File

@@ -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 #####