upd: add page-labels
This commit is contained in:
@@ -205,6 +205,35 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
|
|||||||
selector:
|
selector:
|
||||||
text: {}
|
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 #####
|
##### BUTTONS #####
|
||||||
entity01:
|
entity01:
|
||||||
name: Button 01 (Optional)
|
name: Button 01 (Optional)
|
||||||
@@ -1182,6 +1211,12 @@ variables:
|
|||||||
accuweather_wind_day_4d: "sensor.{{ accuweather }}_wind_day_4d"
|
accuweather_wind_day_4d: "sensor.{{ accuweather }}_wind_day_4d"
|
||||||
accuweather_wind_night_4d: "sensor.{{ accuweather }}_wind_night_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 #####
|
##### BUTTONS 1- 32 #####
|
||||||
entity01: !input "entity01"
|
entity01: !input "entity01"
|
||||||
entity01_name: !input "entity01_name"
|
entity01_name: !input "entity01_name"
|
||||||
@@ -4839,18 +4874,54 @@ action:
|
|||||||
## PAGE BUTTONPAGE01 ##
|
## PAGE BUTTONPAGE01 ##
|
||||||
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage01 }}'
|
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage01 }}'
|
||||||
sequence:
|
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 ##
|
## PAGE BUTTONPAGE02 ##
|
||||||
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage02 }}'
|
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage02 }}'
|
||||||
sequence:
|
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 ##
|
## PAGE BUTTONPAGE03 ##
|
||||||
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage03 }}'
|
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage03 }}'
|
||||||
sequence:
|
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 ##
|
## PAGE BUTTONPAGE04 ##
|
||||||
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage04 }}'
|
- conditions: '{{ trigger.event.data.new_state.state == page_buttonpage04 }}'
|
||||||
sequence:
|
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 #####
|
##### Open Climate Settings #####
|
||||||
|
|||||||
Reference in New Issue
Block a user