From 37cda13162e790bde0fd5b3155beedfc59f46121 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 19 Apr 2023 17:53:10 +0200 Subject: [PATCH] Breaking down long lines to make it more readable --- nspanel_blueprint.yaml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index dc61978..c96545d 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -3842,7 +3842,12 @@ action: - service: "{{ nextion.commands.font_color }}" data: 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 ### ICON Indoor Temp Font ### - *delay-default @@ -3856,7 +3861,12 @@ action: - service: "{{ nextion.commands.font_color }}" data: 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 ### LABEL Indoor Temp Font ### - *delay-default @@ -3886,7 +3896,12 @@ action: - service: "{{ nextion.commands.font_color }}" data: 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 ### LABEL Font ### - *delay-default @@ -3916,7 +3931,12 @@ action: - service: "{{ nextion.commands.font_color }}" data: 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 ### LABEL Font ### - *delay-default