Breaking down long lines to make it more readable
This commit is contained in:
@@ -3842,7 +3842,12 @@ action:
|
|||||||
- service: "{{ nextion.commands.font_color }}"
|
- service: "{{ nextion.commands.font_color }}"
|
||||||
data:
|
data:
|
||||||
component: home.indoortempicon
|
component: home.indoortempicon
|
||||||
message: "{{ page_home.general.indoor_temp.icon.color_rgb if is_number(page_home.general.indoor_temp.icon.color_rgb) else ((page_home.general.indoor_temp.icon.color_rgb[0] //(2**3)) *(2**11))+((page_home.general.indoor_temp.icon.color_rgb[1] //(2**2)) *(2**5))+(page_home.general.indoor_temp.icon.color_rgb[2] //(2**3)) }}"
|
message: >
|
||||||
|
{{
|
||||||
|
page_home.general.indoor_temp.icon.color_rgb
|
||||||
|
if is_number(page_home.general.indoor_temp.icon.color_rgb)
|
||||||
|
else ((page_home.general.indoor_temp.icon.color_rgb[0] //(2**3)) *(2**11))+((page_home.general.indoor_temp.icon.color_rgb[1] //(2**2)) *(2**5))+(page_home.general.indoor_temp.icon.color_rgb[2] //(2**3))
|
||||||
|
}}
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
### ICON Indoor Temp Font ###
|
### ICON Indoor Temp Font ###
|
||||||
- *delay-default
|
- *delay-default
|
||||||
@@ -3856,7 +3861,12 @@ action:
|
|||||||
- service: "{{ nextion.commands.font_color }}"
|
- service: "{{ nextion.commands.font_color }}"
|
||||||
data:
|
data:
|
||||||
component: home.current_temp
|
component: home.current_temp
|
||||||
message: "{{ page_home.general.indoor_temp.label.color_rgb if is_number(page_home.general.indoor_temp.label.color_rgb) else ((page_home.general.indoor_temp.label.color_rgb[0] //(2**3)) *(2**11))+((page_home.general.indoor_temp.label.color_rgb[1] //(2**2)) *(2**5))+(page_home.general.indoor_temp.label.color_rgb[2] //(2**3)) }}"
|
message: >
|
||||||
|
{{
|
||||||
|
page_home.general.indoor_temp.label.color_rgb
|
||||||
|
if is_number(page_home.general.indoor_temp.label.color_rgb)
|
||||||
|
else ((page_home.general.indoor_temp.label.color_rgb[0] //(2**3)) *(2**11))+((page_home.general.indoor_temp.label.color_rgb[1] //(2**2)) *(2**5))+(page_home.general.indoor_temp.label.color_rgb[2] //(2**3))
|
||||||
|
}}
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
### LABEL Indoor Temp Font ###
|
### LABEL Indoor Temp Font ###
|
||||||
- *delay-default
|
- *delay-default
|
||||||
@@ -3886,7 +3896,12 @@ action:
|
|||||||
- service: "{{ nextion.commands.font_color }}"
|
- service: "{{ nextion.commands.font_color }}"
|
||||||
data:
|
data:
|
||||||
component: home.left_bt_text
|
component: home.left_bt_text
|
||||||
message: "{{ page_home.hardware.buttons.left.color_rgb if is_number(page_home.hardware.buttons.left.color_rgb) else ((page_home.hardware.buttons.left.color_rgb[0] //(2**3)) *(2**11))+((page_home.hardware.buttons.left.color_rgb[1] //(2**2)) *(2**5))+(page_home.hardware.buttons.left.color_rgb[2] //(2**3)) }}"
|
message: >
|
||||||
|
{{
|
||||||
|
page_home.hardware.buttons.left.color_rgb
|
||||||
|
if is_number(page_home.hardware.buttons.left.color_rgb)
|
||||||
|
else ((page_home.hardware.buttons.left.color_rgb[0] //(2**3)) *(2**11))+((page_home.hardware.buttons.left.color_rgb[1] //(2**2)) *(2**5))+(page_home.hardware.buttons.left.color_rgb[2] //(2**3))
|
||||||
|
}}
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
### LABEL Font ###
|
### LABEL Font ###
|
||||||
- *delay-default
|
- *delay-default
|
||||||
@@ -3916,7 +3931,12 @@ action:
|
|||||||
- service: "{{ nextion.commands.font_color }}"
|
- service: "{{ nextion.commands.font_color }}"
|
||||||
data:
|
data:
|
||||||
component: home.right_bt_text
|
component: home.right_bt_text
|
||||||
message: "{{ page_home.hardware.buttons.right.color_rgb if is_number(page_home.hardware.buttons.right.color_rgb) else ((page_home.hardware.buttons.right.color_rgb[0] //(2**3)) *(2**11))+((page_home.hardware.buttons.right.color_rgb[1] //(2**2)) *(2**5))+(page_home.hardware.buttons.right.color_rgb[2] //(2**3)) }}"
|
message: >
|
||||||
|
{{
|
||||||
|
page_home.hardware.buttons.right.color_rgb
|
||||||
|
if is_number(page_home.hardware.buttons.right.color_rgb)
|
||||||
|
else ((page_home.hardware.buttons.right.color_rgb[0] //(2**3)) *(2**11))+((page_home.hardware.buttons.right.color_rgb[1] //(2**2)) *(2**5))+(page_home.hardware.buttons.right.color_rgb[2] //(2**3))
|
||||||
|
}}
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
### LABEL Font ###
|
### LABEL Font ###
|
||||||
- *delay-default
|
- *delay-default
|
||||||
|
|||||||
Reference in New Issue
Block a user