upd: use set_button on all button pages
This commit is contained in:
@@ -35,7 +35,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
|
|||||||
🎉 Roadmap Roadmap can be found here [Roadmap](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap)
|
🎉 Roadmap Roadmap can be found here [Roadmap](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap)
|
||||||
|
|
||||||
|
|
||||||
ℹ️ Version: v.3.2.1
|
ℹ️ Version: v.3.2.2
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
@@ -2356,7 +2356,7 @@ trigger_variables:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
##### GENERAL #####
|
##### GENERAL #####
|
||||||
blueprint_version: "3.2.1"
|
blueprint_version: "3.2.2"
|
||||||
language: !input "language"
|
language: !input "language"
|
||||||
date_format: !input "date_format"
|
date_format: !input "date_format"
|
||||||
time_format: !input "time_format"
|
time_format: !input "time_format"
|
||||||
@@ -4830,92 +4830,7 @@ action:
|
|||||||
{%- else -%} 0
|
{%- else -%} 0
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
# ##### SET Buttons Background ####
|
##### Set buttton #####
|
||||||
# #
|
|
||||||
# ##### SET Button PIC #####
|
|
||||||
# - service: "{{ command_printf }}"
|
|
||||||
# data:
|
|
||||||
# cmd: "{{ repeat.item.button }}pic.pic={{ btn_pic }}"
|
|
||||||
# ##### SET ICON Background #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_background_color }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}icon"
|
|
||||||
# message: "{{ btn_bg }}"
|
|
||||||
# ##### SET LABEL Background #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_background_color }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}text"
|
|
||||||
# message: "{{ btn_bg }}"
|
|
||||||
# ##### SET BRIGHTNESS Background Color #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_background_color }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}bri"
|
|
||||||
# message: "{{ btn_bg }}"
|
|
||||||
|
|
||||||
# ##### SET Buttons Font Color ####
|
|
||||||
# #
|
|
||||||
# ##### SET ICON Font Color #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_font_color }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}icon"
|
|
||||||
# message: "{{ btn_icon_font }}"
|
|
||||||
# ##### SET LABEL Font Color #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_font_color }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}text"
|
|
||||||
# message: "{{ btn_txt_font }}"
|
|
||||||
# ##### SET BRIGHTNESS Font Color #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_font_color }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}bri"
|
|
||||||
# message: "{{ btn_bri_font }}"
|
|
||||||
|
|
||||||
# ##### SET Buttons Text Value ####
|
|
||||||
# #
|
|
||||||
# ##### "ICON" Value #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_text_printf }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}icon"
|
|
||||||
# message: "{{ btn_icon }}"
|
|
||||||
# ##### "LABEL" Value #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - service: "{{ command_text_printf }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}text"
|
|
||||||
# message: "{{ btn_label }}"
|
|
||||||
|
|
||||||
# ##### "BRIGHTNESS" Value #####
|
|
||||||
# - delay:
|
|
||||||
# milliseconds: "{{ delay_value }}"
|
|
||||||
# - if:
|
|
||||||
# - condition: template
|
|
||||||
# value_template: "{{ btn_bri_txt == 0 }}"
|
|
||||||
# then:
|
|
||||||
# - service: "{{ command_text_printf }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}bri"
|
|
||||||
# message: " "
|
|
||||||
# else:
|
|
||||||
# - service: "{{ command_text_printf }}"
|
|
||||||
# data:
|
|
||||||
# component: "{{ repeat.item.button }}bri"
|
|
||||||
# message: "{{ btn_bri_txt }}"
|
|
||||||
|
|
||||||
- service: "{{ command_set_button }}"
|
- service: "{{ command_set_button }}"
|
||||||
data:
|
data:
|
||||||
btn_id: "{{ repeat.item.button }}"
|
btn_id: "{{ repeat.item.button }}"
|
||||||
@@ -5094,91 +5009,19 @@ action:
|
|||||||
{%- else -%} 0
|
{%- else -%} 0
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
##### SET Buttons Background ####
|
##### Set buttton #####
|
||||||
#
|
- service: "{{ command_set_button }}"
|
||||||
##### SET Button PIC #####
|
|
||||||
- service: "{{ command_printf }}"
|
|
||||||
data:
|
data:
|
||||||
cmd: "{{ repeat.item.button }}pic.pic={{ btn_pic }}"
|
btn_id: "{{ repeat.item.button }}"
|
||||||
##### SET ICON Background #####
|
btn_pic: "{{ btn_pic }}"
|
||||||
- delay:
|
btn_bg: "{{ btn_bg }}"
|
||||||
milliseconds: "{{ delay_value }}"
|
btn_icon_font: "{{ btn_icon_font }}"
|
||||||
- service: "{{ command_background_color }}"
|
btn_txt_font: "{{ btn_txt_font }}"
|
||||||
data:
|
btn_bri_font: "{{ btn_bri_font }}"
|
||||||
component: "{{ repeat.item.button }}icon"
|
btn_icon: "{{ btn_icon }}"
|
||||||
message: "{{ btn_bg }}"
|
btn_label: "{{ btn_label }}"
|
||||||
##### SET LABEL Background #####
|
btn_bri_txt: "{{ btn_bri_txt }}"
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_background_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_bg }}"
|
|
||||||
##### SET BRIGHTNESS Background Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_background_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bg }}"
|
|
||||||
|
|
||||||
##### SET Buttons Font Color ####
|
|
||||||
#
|
|
||||||
##### SET ICON Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}icon"
|
|
||||||
message: "{{ btn_icon_font }}"
|
|
||||||
##### SET LABEL Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_txt_font }}"
|
|
||||||
##### SET BRIGHTNESS Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bri_font }}"
|
|
||||||
|
|
||||||
##### SET Buttons Text Value ####
|
|
||||||
#
|
|
||||||
##### "ICON" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}icon"
|
|
||||||
message: "{{ btn_icon }}"
|
|
||||||
##### "LABEL" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_label }}"
|
|
||||||
|
|
||||||
##### "BRIGHTNESS" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ btn_bri_txt == 0 }}"
|
|
||||||
then:
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: " "
|
|
||||||
else:
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bri_txt }}"
|
|
||||||
###### SHOW All component when page loading done #####
|
###### SHOW All component when page loading done #####
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
@@ -5345,91 +5188,19 @@ action:
|
|||||||
{%- else -%} 0
|
{%- else -%} 0
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
##### SET Buttons Background ####
|
##### Set buttton #####
|
||||||
#
|
- service: "{{ command_set_button }}"
|
||||||
##### SET Button PIC #####
|
|
||||||
- service: "{{ command_printf }}"
|
|
||||||
data:
|
data:
|
||||||
cmd: "{{ repeat.item.button }}pic.pic={{ btn_pic }}"
|
btn_id: "{{ repeat.item.button }}"
|
||||||
##### SET ICON Background #####
|
btn_pic: "{{ btn_pic }}"
|
||||||
- delay:
|
btn_bg: "{{ btn_bg }}"
|
||||||
milliseconds: "{{ delay_value }}"
|
btn_icon_font: "{{ btn_icon_font }}"
|
||||||
- service: "{{ command_background_color }}"
|
btn_txt_font: "{{ btn_txt_font }}"
|
||||||
data:
|
btn_bri_font: "{{ btn_bri_font }}"
|
||||||
component: "{{ repeat.item.button }}icon"
|
btn_icon: "{{ btn_icon }}"
|
||||||
message: "{{ btn_bg }}"
|
btn_label: "{{ btn_label }}"
|
||||||
##### SET LABEL Background #####
|
btn_bri_txt: "{{ btn_bri_txt }}"
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_background_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_bg }}"
|
|
||||||
##### SET BRIGHTNESS Background Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_background_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bg }}"
|
|
||||||
|
|
||||||
##### SET Buttons Font Color ####
|
|
||||||
#
|
|
||||||
##### SET ICON Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}icon"
|
|
||||||
message: "{{ btn_icon_font }}"
|
|
||||||
##### SET LABEL Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_txt_font }}"
|
|
||||||
##### SET BRIGHTNESS Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bri_font }}"
|
|
||||||
|
|
||||||
##### SET Buttons Text Value ####
|
|
||||||
#
|
|
||||||
##### "ICON" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}icon"
|
|
||||||
message: "{{ btn_icon }}"
|
|
||||||
##### "LABEL" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_label }}"
|
|
||||||
|
|
||||||
##### "BRIGHTNESS" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ btn_bri_txt == 0 }}"
|
|
||||||
then:
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: " "
|
|
||||||
else:
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bri_txt }}"
|
|
||||||
###### SHOW All component when page loading done #####
|
###### SHOW All component when page loading done #####
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
@@ -5596,91 +5367,19 @@ action:
|
|||||||
{%- else -%} 0
|
{%- else -%} 0
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
##### SET Buttons Background ####
|
##### Set buttton #####
|
||||||
#
|
- service: "{{ command_set_button }}"
|
||||||
##### SET Button PIC #####
|
|
||||||
- service: "{{ command_printf }}"
|
|
||||||
data:
|
data:
|
||||||
cmd: "{{ repeat.item.button }}pic.pic={{ btn_pic }}"
|
btn_id: "{{ repeat.item.button }}"
|
||||||
##### SET ICON Background #####
|
btn_pic: "{{ btn_pic }}"
|
||||||
- delay:
|
btn_bg: "{{ btn_bg }}"
|
||||||
milliseconds: "{{ delay_value }}"
|
btn_icon_font: "{{ btn_icon_font }}"
|
||||||
- service: "{{ command_background_color }}"
|
btn_txt_font: "{{ btn_txt_font }}"
|
||||||
data:
|
btn_bri_font: "{{ btn_bri_font }}"
|
||||||
component: "{{ repeat.item.button }}icon"
|
btn_icon: "{{ btn_icon }}"
|
||||||
message: "{{ btn_bg }}"
|
btn_label: "{{ btn_label }}"
|
||||||
##### SET LABEL Background #####
|
btn_bri_txt: "{{ btn_bri_txt }}"
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_background_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_bg }}"
|
|
||||||
##### SET BRIGHTNESS Background Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_background_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bg }}"
|
|
||||||
|
|
||||||
##### SET Buttons Font Color ####
|
|
||||||
#
|
|
||||||
##### SET ICON Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}icon"
|
|
||||||
message: "{{ btn_icon_font }}"
|
|
||||||
##### SET LABEL Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_txt_font }}"
|
|
||||||
##### SET BRIGHTNESS Font Color #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_font_color }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bri_font }}"
|
|
||||||
|
|
||||||
##### SET Buttons Text Value ####
|
|
||||||
#
|
|
||||||
##### "ICON" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}icon"
|
|
||||||
message: "{{ btn_icon }}"
|
|
||||||
##### "LABEL" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}text"
|
|
||||||
message: "{{ btn_label }}"
|
|
||||||
|
|
||||||
##### "BRIGHTNESS" Value #####
|
|
||||||
- delay:
|
|
||||||
milliseconds: "{{ delay_value }}"
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ btn_bri_txt == 0 }}"
|
|
||||||
then:
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: " "
|
|
||||||
else:
|
|
||||||
- service: "{{ command_text_printf }}"
|
|
||||||
data:
|
|
||||||
component: "{{ repeat.item.button }}bri"
|
|
||||||
message: "{{ btn_bri_txt }}"
|
|
||||||
###### SHOW All component when page loading done #####
|
###### SHOW All component when page loading done #####
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user