From 0e83ee83d64d3c0790575a2be8eb4eaa405ac815 Mon Sep 17 00:00:00 2001 From: Blackymas <41958506+Blackymas@users.noreply.github.com> Date: Tue, 18 Oct 2022 10:44:37 +0200 Subject: [PATCH] Update BETA_blueprint.yaml --- BETA Version/BETA_blueprint.yaml | 9450 +++++++++++++++++++++++++++--- 1 file changed, 8551 insertions(+), 899 deletions(-) diff --git a/BETA Version/BETA_blueprint.yaml b/BETA Version/BETA_blueprint.yaml index 6a8ce89..ef817a3 100644 --- a/BETA Version/BETA_blueprint.yaml +++ b/BETA Version/BETA_blueprint.yaml @@ -78,6 +78,12 @@ blueprint: - switch - cover - input_boolean + entity01_name: + name: Name "Button 01" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity02: name: Button 02 (Optional) description: Nextion Editor - *buttonpage01.button02* **(ONLY light | switch | cover | input_boolean)** @@ -89,6 +95,12 @@ blueprint: - switch - cover - input_boolean + entity02_name: + name: Name "Button 02" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity03: name: Button 03 (Optional) description: Nextion Editor - *buttonpage01.button03* **(ONLY light | switch | cover | input_boolean)** @@ -100,6 +112,12 @@ blueprint: - switch - cover - input_boolean + entity03_name: + name: Name "Button 03" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity04: name: Button 04 (Optional) description: Nextion Editor - *buttonpage01.button04* **(ONLY light | switch | cover | input_boolean)** @@ -111,6 +129,12 @@ blueprint: - switch - cover - input_boolean + entity04_name: + name: Name "Button 04" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity05: name: Button 05 (Optional) description: Nextion Editor - *buttonpage01.button05* **(ONLY light | switch | cover | input_boolean)** @@ -122,6 +146,12 @@ blueprint: - switch - cover - input_boolean + entity05_name: + name: Name "Button 05" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity06: name: Button 06 (Optional) description: Nextion Editor - *buttonpage01.button06* **(ONLY light | switch | cover | input_boolean)** @@ -133,6 +163,12 @@ blueprint: - switch - cover - input_boolean + entity06_name: + name: Name "Button 06" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity07: name: Button 07 (Optional) description: Nextion Editor - *buttonpage01.button07* **(ONLY light | switch | cover | input_boolean)** @@ -144,6 +180,12 @@ blueprint: - switch - cover - input_boolean + entity07_name: + name: Name "Button 07" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity08: name: Button 08 (Optional) description: Nextion Editor - *buttonpage01.button08* **(ONLY light | switch | cover | input_boolean)** @@ -155,6 +197,12 @@ blueprint: - switch - cover - input_boolean + entity08_name: + name: Name "Button 08" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity09: name: Button 09 (Optional) description: Nextion Editor - *buttonpage02.button01* **(ONLY light | switch | cover | input_boolean)** @@ -166,6 +214,12 @@ blueprint: - switch - cover - input_boolean + entity09_name: + name: Name "Button 09" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity10: name: Button 10 (Optional) description: Nextion Editor - *buttonpage02.button02* **(ONLY light | switch | cover | input_boolean)** @@ -177,6 +231,12 @@ blueprint: - switch - cover - input_boolean + entity10_name: + name: Name "Button 10" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity11: name: Button 11 (Optional) description: Nextion Editor - *buttonpage02.button03* **(ONLY light | switch | cover | input_boolean)** @@ -188,6 +248,12 @@ blueprint: - switch - cover - input_boolean + entity11_name: + name: Name "Button 11" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity12: name: Button 12 (Optional) description: Nextion Editor - *buttonpage02.button04* **(ONLY light | switch | cover | input_boolean)** @@ -199,6 +265,12 @@ blueprint: - switch - cover - input_boolean + entity12_name: + name: Name "Button 12" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity13: name: Button 13 (Optional) description: Nextion Editor - *buttonpage01.button05* **(ONLY light | switch | cover | input_boolean)** @@ -210,6 +282,12 @@ blueprint: - switch - cover - input_boolean + entity13_name: + name: Name "Button 13" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity14: name: Button 14 (Optional) description: Nextion Editor - *buttonpage02.button06* **(ONLY light | switch | cover | input_boolean)** @@ -221,6 +299,12 @@ blueprint: - switch - cover - input_boolean + entity14_name: + name: Name "Button 14" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity15: name: Button 15 (Optional) description: Nextion Editor - *buttonpage02.button07* **(ONLY light | switch | cover | input_boolean)** @@ -232,6 +316,12 @@ blueprint: - switch - cover - input_boolean + entity15_name: + name: Name "Button 15" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity16: name: Button 16 (Optional) description: Nextion Editor - *buttonpage02.button08* **(ONLY light | switch | cover | input_boolean)** @@ -243,6 +333,12 @@ blueprint: - switch - cover - input_boolean + entity16_name: + name: Name "Button 16" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity17: name: Button 17 (Optional) description: Nextion Editor - *buttonpage03.button01* **(ONLY light | switch | cover | input_boolean)** @@ -254,6 +350,12 @@ blueprint: - switch - cover - input_boolean + entity17_name: + name: Name "Button 17" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity18: name: Button 18 (Optional) description: Nextion Editor - *buttonpage03.button02* **(ONLY light | switch | cover | input_boolean)** @@ -265,6 +367,12 @@ blueprint: - switch - cover - input_boolean + entity18_name: + name: Name "Button 18" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity19: name: Button 19 (Optional) description: Nextion Editor - *buttonpage03.button03* **(ONLY light | switch | cover | input_boolean)** @@ -276,6 +384,12 @@ blueprint: - switch - cover - input_boolean + entity19_name: + name: Name "Button 19" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity20: name: Button 20 (Optional) description: Nextion Editor - *buttonpage03.button04* **(ONLY light | switch | cover | input_boolean)** @@ -287,6 +401,12 @@ blueprint: - switch - cover - input_boolean + entity20_name: + name: Name "Button 20" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity21: name: Button 21 (Optional) description: Nextion Editor - *buttonpage03.button05* **(ONLY light | switch | cover | input_boolean)** @@ -298,6 +418,12 @@ blueprint: - switch - cover - input_boolean + entity21_name: + name: Name "Button 21" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity22: name: Button 22 (Optional) description: Nextion Editor - *buttonpage03.button06* **(ONLY light | switch | cover | input_boolean)** @@ -309,6 +435,12 @@ blueprint: - switch - cover - input_boolean + entity22_name: + name: Name "Button 22" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity23: name: Button 23 (Optional) description: Nextion Editor - *buttonpage03.button07* **(ONLY light | switch | cover | input_boolean)** @@ -320,6 +452,12 @@ blueprint: - switch - cover - input_boolean + entity23_name: + name: Name "Button 23" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity24: name: Button 24 (Optional) description: Nextion Editor - *buttonpage03.button08* **(ONLY light | switch | cover | input_boolean)** @@ -331,6 +469,12 @@ blueprint: - switch - cover - input_boolean + entity24_name: + name: Name "Button 24" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity25: name: Button 25 (Optional) description: Nextion Editor - *buttonpage04.button01* **(ONLY light | switch | cover | input_boolean)** @@ -342,6 +486,12 @@ blueprint: - switch - cover - input_boolean + entity25_name: + name: Name "Button 25" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity26: name: Button 26 (Optional) description: Nextion Editor - *buttonpage04.button02* **(ONLY light | switch | cover | input_boolean)** @@ -353,6 +503,12 @@ blueprint: - switch - cover - input_boolean + entity26_name: + name: Name "Button 26" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity27: name: Button 27 (Optional) description: Nextion Editor - *buttonpage04.button03* **(ONLY light | switch | cover | input_boolean)** @@ -364,6 +520,12 @@ blueprint: - switch - cover - input_boolean + entity27_name: + name: Name "Button 27" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity28: name: Button 28 (Optional) description: Nextion Editor - *buttonpage04.button04* **(ONLY light | switch | cover | input_boolean)** @@ -375,6 +537,12 @@ blueprint: - switch - cover - input_boolean + entity28_name: + name: Name "Button 28" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity29: name: Button 29 (Optional) description: Nextion Editor - *buttonpage04.button05* **(ONLY light | switch | cover | input_boolean)** @@ -386,6 +554,12 @@ blueprint: - switch - cover - input_boolean + entity29_name: + name: Name "Button 29" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity30: name: Button 30 (Optional) description: Nextion Editor - *buttonpage04.button06* **(ONLY light | switch | cover | input_boolean)** @@ -397,6 +571,12 @@ blueprint: - switch - cover - input_boolean + entity30_name: + name: Name "Button 30" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity31: name: Button 31 (Optional) description: Nextion Editor - *buttonpage04.button07* **(ONLY light | switch | cover | input_boolean)** @@ -408,6 +588,12 @@ blueprint: - switch - cover - input_boolean + entity31_name: + name: Name "Button 31" (Optional) + description: Button label - 10 characters are supported + default: [] + selector: + text: {} entity32: name: Button 32 (Optional) description: Nextion Editor - *buttonpage04.button08* **(ONLY light | switch | cover | input_boolean)** @@ -419,94 +605,12 @@ blueprint: - switch - cover - input_boolean - entity33: - name: Button 33 (Optional) - description: Nextion Editor - *buttonpage05.button01* **(ONLY light | switch | cover | input_boolean)** + entity32_name: + name: Name "Button 32" (Optional) + description: Button label - 10 characters are supported default: [] selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity34: - name: Button 34 (Optional) - description: Nextion Editor - *buttonpage05.button02* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity35: - name: Button 35 (Optional) - description: Nextion Editor - *buttonpage05.button03* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity36: - name: Button 36 (Optional) - description: Nextion Editor - *buttonpage05.button04* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity37: - name: Button 37 (Optional) - description: Nextion Editor - *buttonpage05.button05* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity38: - name: Button 38 (Optional) - description: Nextion Editor - *buttonpage05.button06* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity39: - name: Button 39 (Optional) - description: Nextion Editor - *buttonpage05.button07* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean - entity40: - name: Button 40 (Optional) - description: Nextion Editor - *buttonpage05.button08* **(ONLY light | switch | cover | input_boolean)** - default: [] - selector: - entity: - domain: - - light - - switch - - cover - - input_boolean + text: {} mode: parallel max: 5000 @@ -541,6 +645,8 @@ variables: command_text_printf: "esphome.{{ nspanel_name }}_send_command_text_printf" command_value: "esphome.{{ nspanel_name }}_send_command_value" command_printf: "esphome.{{ nspanel_name }}_send_command_printf" + command_font_color: "esphome.{{ nspanel_name }}_send_command_font_color" + command_background_color: "esphome.{{ nspanel_name }}_send_command_background_color" tft_path: !input "tft_path" humidity: !input "humidity" hotwatertemp: !input "hotwatertemp" @@ -550,6 +656,14 @@ variables: # nextion_inited: "switch.{{ nspanel_name }}_nextion_inited" nextion_inited: !input "nextion_inited" language: !input "language" + button_light_off: "90" + button_light_on: "91" + button_switch_off: "92" + button_switch_on: "93" + button_cover_off: "94" + button_cover_on: "95" + button_color_1: "65535" + button_color_2: "10597" ##### Weather DE ##### date0_de: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" @@ -619,45 +733,69 @@ variables: ##### Buttons ##### entity01: !input "entity01" + entity01_name: !input "entity01_name" entity02: !input "entity02" + entity02_name: !input "entity02_name" entity03: !input "entity03" + entity03_name: !input "entity03_name" entity04: !input "entity04" + entity04_name: !input "entity04_name" entity05: !input "entity05" + entity05_name: !input "entity05_name" entity06: !input "entity06" + entity06_name: !input "entity06_name" entity07: !input "entity07" + entity07_name: !input "entity07_name" entity08: !input "entity08" + entity08_name: !input "entity08_name" entity09: !input "entity09" + entity09_name: !input "entity09_name" entity10: !input "entity10" + entity10_name: !input "entity10_name" entity11: !input "entity11" + entity11_name: !input "entity11_name" entity12: !input "entity12" + entity12_name: !input "entity12_name" entity13: !input "entity13" + entity13_name: !input "entity13_name" entity14: !input "entity14" + entity14_name: !input "entity14_name" entity15: !input "entity15" + entity15_name: !input "entity15_name" entity16: !input "entity16" + entity16_name: !input "entity16_name" entity17: !input "entity17" + entity17_name: !input "entity17_name" entity18: !input "entity18" + entity18_name: !input "entity18_name" entity19: !input "entity19" + entity19_name: !input "entity19_name" entity20: !input "entity20" + entity20_name: !input "entity20_name" entity21: !input "entity21" + entity21_name: !input "entity21_name" entity22: !input "entity22" + entity22_name: !input "entity22_name" entity23: !input "entity23" + entity23_name: !input "entity23_name" entity24: !input "entity24" + entity24_name: !input "entity24_name" entity25: !input "entity25" + entity25_name: !input "entity25_name" entity26: !input "entity26" + entity26_name: !input "entity26_name" entity27: !input "entity27" + entity27_name: !input "entity27_name" entity28: !input "entity28" + entity28_name: !input "entity28_name" entity29: !input "entity29" + entity29_name: !input "entity29_name" entity30: !input "entity30" + entity30_name: !input "entity30_name" entity31: !input "entity31" + entity31_name: !input "entity31_name" entity32: !input "entity32" - entity33: !input "entity33" - entity34: !input "entity34" - entity35: !input "entity35" - entity36: !input "entity36" - entity37: !input "entity37" - entity38: !input "entity38" - entity39: !input "entity39" - entity40: !input "entity40" + entity32_name: !input "entity32_name" ######################################### # @@ -765,290 +903,173 @@ trigger: id: time_state #### Weather - Trigger #### - - platform: time_pattern - minutes: "10" + - platform: template + value_template: '{{ states(last_click) is match "weather" }}' id: weather_update + # - platform: time_pattern + # minutes: "10" + # id: weather_update ##### Button01 Sync - Trigger ##### - platform: state entity_id: !input "entity01" - for: - seconds: 1 id: current_state_entity01 ##### Button02 Sync - Trigger ##### - platform: state entity_id: !input "entity02" - for: - seconds: 1 id: current_state_entity02 ##### Button03 Sync - Trigger ##### - platform: state entity_id: !input "entity03" - for: - seconds: 1 id: current_state_entity03 ##### Button04 Sync - Trigger ##### - platform: state entity_id: !input "entity04" - for: - seconds: 1 id: current_state_entity04 ##### Button05 Sync - Trigger ##### - platform: state entity_id: !input "entity05" - for: - seconds: 1 id: current_state_entity05 ##### Button06 Sync - Trigger ##### - platform: state entity_id: !input "entity06" - for: - seconds: 1 id: current_state_entity06 ##### Button07 Sync - Trigger ##### - platform: state entity_id: !input "entity07" - for: - seconds: 1 id: current_state_entity07 ##### Button08 Sync - Trigger ##### - platform: state entity_id: !input "entity08" - for: - seconds: 1 id: current_state_entity08 ##### Button09 Sync - Trigger ##### - platform: state entity_id: !input "entity09" - for: - seconds: 1 id: current_state_entity09 ##### Button10 Sync - Trigger ##### - platform: state entity_id: !input "entity10" - for: - seconds: 1 id: current_state_entity10 ##### Button11 Sync - Trigger ##### - platform: state entity_id: !input "entity11" - for: - seconds: 1 id: current_state_entity11 ##### Button12 Sync - Trigger ##### - platform: state entity_id: !input "entity12" - for: - seconds: 1 id: current_state_entity12 ##### Button13 Sync - Trigger ##### - platform: state entity_id: !input "entity13" - for: - seconds: 1 id: current_state_entity13 ##### Button14 Sync - Trigger ##### - platform: state entity_id: !input "entity14" - for: - seconds: 1 id: current_state_entity14 ##### Button15 Sync - Trigger ##### - platform: state entity_id: !input "entity15" - for: - seconds: 1 id: current_state_entity15 ##### Button16 Sync - Trigger ##### - platform: state entity_id: !input "entity16" - for: - seconds: 1 id: current_state_entity16 ##### Button17 Sync - Trigger ##### - platform: state entity_id: !input "entity17" - for: - seconds: 1 id: current_state_entity17 ##### Button18 Sync - Trigger ##### - platform: state entity_id: !input "entity18" - for: - seconds: 1 id: current_state_entity18 ##### Button19 Sync - Trigger ##### - platform: state entity_id: !input "entity19" - for: - seconds: 1 id: current_state_entity19 ##### Button20 Sync - Trigger ##### - platform: state entity_id: !input "entity20" - for: - seconds: 1 id: current_state_entity20 ##### Button21 Sync - Trigger ##### - platform: state entity_id: !input "entity21" - for: - seconds: 1 id: current_state_entity21 ##### Button22 Sync - Trigger ##### - platform: state entity_id: !input "entity22" - for: - seconds: 1 id: current_state_entity22 ##### Button23 Sync - Trigger ##### - platform: state entity_id: !input "entity23" - for: - seconds: 1 id: current_state_entity23 ##### Button24 Sync - Trigger ##### - platform: state entity_id: !input "entity24" - for: - seconds: 1 id: current_state_entity24 ##### Button25 Sync - Trigger ##### - platform: state entity_id: !input "entity25" - for: - seconds: 1 id: current_state_entity25 ##### Button26 Sync - Trigger ##### - platform: state entity_id: !input "entity26" - for: - seconds: 1 id: current_state_entity26 ##### Button27 Sync - Trigger ##### - platform: state entity_id: !input "entity27" - for: - seconds: 1 id: current_state_entity27 ##### Button28 Sync - Trigger ##### - platform: state entity_id: !input "entity28" - for: - seconds: 1 id: current_state_entity28 ##### Button29 Sync - Trigger ##### - platform: state entity_id: !input "entity29" - for: - seconds: 1 id: current_state_entity29 ##### Button30 Sync - Trigger ##### - platform: state entity_id: !input "entity30" - for: - seconds: 1 id: current_state_entity30 ##### Button31 Sync - Trigger ##### - platform: state entity_id: !input "entity31" - for: - seconds: 1 id: current_state_entity31 ##### Button32 Sync - Trigger ##### - platform: state entity_id: !input "entity32" - for: - seconds: 1 id: current_state_entity32 - ##### Button33 Sync - Trigger ##### - - platform: state - entity_id: !input "entity33" - for: - seconds: 1 - id: current_state_entity33 - - ##### Button34 Sync - Trigger ##### - - platform: state - entity_id: !input "entity34" - for: - seconds: 1 - id: current_state_entity34 - - ##### Button35 Sync - Trigger ##### - - platform: state - entity_id: !input "entity35" - for: - seconds: 1 - id: current_state_entity35 - - ##### Button36 Sync - Trigger ##### - - platform: state - entity_id: !input "entity36" - for: - seconds: 1 - id: current_state_entity36 - - ##### Button37 Sync - Trigger ##### - - platform: state - entity_id: !input "entity37" - for: - seconds: 1 - id: current_state_entity37 - - ##### Button38 Sync - Trigger ##### - - platform: state - entity_id: !input "entity38" - for: - seconds: 1 - id: current_state_entity38 - - ##### Button39 Sync - Trigger ##### - - platform: state - entity_id: !input "entity39" - for: - seconds: 1 - id: current_state_entity39 - - ##### Button40 Sync - Trigger ##### - - platform: state - entity_id: !input "entity40" - for: - seconds: 1 - id: current_state_entity40 - ######################################### # # @@ -1104,14 +1125,6 @@ action: {%- elif states(last_click) == "releasebuttonpage04button06" -%} {{ entity30 }} {%- elif states(last_click) == "releasebuttonpage04button07" -%} {{ entity31 }} {%- elif states(last_click) == "releasebuttonpage04button08" -%} {{ entity32 }} - {%- elif states(last_click) == "releasebuttonpage05button01" -%} {{ entity33 }} - {%- elif states(last_click) == "releasebuttonpage05button02" -%} {{ entity34 }} - {%- elif states(last_click) == "releasebuttonpage05button03" -%} {{ entity35 }} - {%- elif states(last_click) == "releasebuttonpage05button04" -%} {{ entity36 }} - {%- elif states(last_click) == "releasebuttonpage05button05" -%} {{ entity37 }} - {%- elif states(last_click) == "releasebuttonpage05button06" -%} {{ entity38 }} - {%- elif states(last_click) == "releasebuttonpage05button07" -%} {{ entity39 }} - {%- elif states(last_click) == "releasebuttonpage05button08" -%} {{ entity40 }} {%- endif -%} ##### Entity - Page Lightsettings ##### @@ -1148,14 +1161,6 @@ action: {%- elif states(last_click) == "pressbuttonpage04button06" -%} {{ entity30 }} {%- elif states(last_click) == "pressbuttonpage04button07" -%} {{ entity31 }} {%- elif states(last_click) == "pressbuttonpage04button08" -%} {{ entity32 }} - {%- elif states(last_click) == "pressbuttonpage05button01" -%} {{ entity33 }} - {%- elif states(last_click) == "pressbuttonpage05button02" -%} {{ entity34 }} - {%- elif states(last_click) == "pressbuttonpage05button03" -%} {{ entity35 }} - {%- elif states(last_click) == "pressbuttonpage05button04" -%} {{ entity36 }} - {%- elif states(last_click) == "pressbuttonpage05button05" -%} {{ entity37 }} - {%- elif states(last_click) == "pressbuttonpage05button06" -%} {{ entity38 }} - {%- elif states(last_click) == "pressbuttonpage05button07" -%} {{ entity39 }} - {%- elif states(last_click) == "pressbuttonpage05button08" -%} {{ entity40 }} {%- endif -%} ##### Entity - Page Lightsettings - Skip Back ##### @@ -1192,14 +1197,6 @@ action: {%- elif states(last_click) == "pressbuttonpage04button06" -%} {{ "page buttonpage04" }} {%- elif states(last_click) == "pressbuttonpage04button07" -%} {{ "page buttonpage04" }} {%- elif states(last_click) == "pressbuttonpage04button08" -%} {{ "page buttonpage04" }} - {%- elif states(last_click) == "pressbuttonpage05button01" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button02" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button03" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button04" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button05" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button06" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button07" -%} {{ "page buttonpage05" }} - {%- elif states(last_click) == "pressbuttonpage05button08" -%} {{ "page buttonpage05" }} {%- endif -%} ##### Page Button - SHORT Press - Toggle ##### @@ -1664,6 +1661,67 @@ action: component: lightsettings.a08 message: Helligkeit + ##### language Setting EN ##### + - choose: + - conditions: + - condition: trigger + id: + - nspanel_boot + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: weather01.a01 + message: Today + - service: "{{ command_text_printf }}" + data: + component: weather02.a01 + message: Tomorrow + - service: "{{ command_text_printf }}" + data: + component: weather03.a01 + message: in 2 Days + - service: "{{ command_text_printf }}" + data: + component: weather04.a01 + message: in 3 Days + - service: "{{ command_text_printf }}" + data: + component: weather05.a01 + message: in 4 Days + - service: "{{ command_text_printf }}" + data: + component: settings.a06 + message: Reboot + - service: "{{ command_text_printf }}" + data: + component: settings.a07 + message: Sleep + - service: "{{ command_text_printf }}" + data: + component: settings.a08 + message: Brightness + - service: "{{ command_text_printf }}" + data: + component: settings.a09 + message: Dimming + - service: "{{ command_text_printf }}" + data: + component: coversettings.a07 + message: Cover + - service: "{{ command_text_printf }}" + data: + component: coversettings.a08 + message: Position + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a07 + message: Light + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a08 + message: Brightness ######################################### # @@ -1685,1405 +1743,8999 @@ action: # ######################################### - ##### Button01 ################################################################# + ####### buttonpage01.button01 ################################################################# - choose: + ##### buttonpage01.button01 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity01 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity01 is match "light." }}' - condition: state entity_id: !input entity01 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button01 - message: 1 + cmd: buttonpage01.button01pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: " " + ##### buttonpage01.button01 light ON ##### - conditions: - condition: trigger id: - current_state_entity01 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity01 is match "light." }}' - condition: state entity_id: !input entity01 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button01 - message: 0 + cmd: buttonpage01.button01pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: '{{ (state_attr(entity01, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button02 ################################################################# + ##### buttonpage01.button01 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity01 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity01 is match "switch." or entity01 is match "input_boolean."}}' + - condition: state + entity_id: !input entity01 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button01pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: " " + ##### buttonpage01.button01 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity01 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity01 is match "switch." or entity01 is match "input_boolean."}}' + - condition: state + entity_id: !input entity01 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button01pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: " " + + ##### buttonpage01.button01 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity01 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity01 is match "cover." }}' + - condition: state + entity_id: !input entity01 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button01pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: " " + ##### buttonpage01.button01 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity01 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity01 is match "cover." }}' + - condition: state + entity_id: !input entity01 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button01pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: '{{ (state_attr(entity01, "position") | int ) |round(0) }}%' + + ####### buttonpage01.button02 ################################################################# - choose: + ##### buttonpage01.button02 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity02 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity02 is match "light." }}' - condition: state entity_id: !input entity02 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button02 - message: 1 + cmd: buttonpage01.button02pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02text + message: "{{ entity02_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02bri + message: " " + ##### buttonpage01.button02 light ON ##### - conditions: - condition: trigger id: - current_state_entity02 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity02 is match "light." }}' - condition: state entity_id: !input entity02 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button02 - message: 0 + cmd: buttonpage01.button02pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02text + message: "{{ entity02_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02bri + message: '{{ (state_attr(entity02, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button03 ################################################################# + ##### buttonpage01.button02 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity02 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity02 is match "switch." or entity02 is match "input_boolean."}}' + - condition: state + entity_id: !input entity02 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button02pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02text + message: "{{ entity02_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02bri + message: " " + ##### buttonpage01.button02 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity02 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity02 is match "switch." or entity02 is match "input_boolean."}}' + - condition: state + entity_id: !input entity02 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button02pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02text + message: "{{ entity02_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02bri + message: " " + + ##### buttonpage01.button02 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity02 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity02 is match "cover." }}' + - condition: state + entity_id: !input entity02 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button02pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02text + message: "{{ entity02_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02bri + message: " " + ##### buttonpage01.button02 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity02 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity02 is match "cover." }}' + - condition: state + entity_id: !input entity02 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button02pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02text + message: "{{ entity02_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button02bri + message: '{{ (state_attr(entity02, "position") | int ) |round(0) }}%' + + ####### buttonpage01.button03 ################################################################# - choose: + ##### button03 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity03 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity03 is match "light." }}' - condition: state entity_id: !input entity03 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button03 - message: 1 + cmd: buttonpage01.button03pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03text + message: "{{ entity03_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03bri + message: " " + ##### buttonpage01.button03 light ON ##### - conditions: - condition: trigger id: - current_state_entity03 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity03 is match "light." }}' - condition: state entity_id: !input entity03 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button03 - message: 0 + cmd: buttonpage01.button03pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03text + message: "{{ entity03_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03bri + message: '{{ (state_attr(entity03, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button04 ################################################################# + ##### buttonpage01.button03 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity03 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity03 is match "switch." or entity03 is match "input_boolean."}}' + - condition: state + entity_id: !input entity03 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button03pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03text + message: "{{ entity03_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03bri + message: " " + ##### buttonpage01.button03 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity03 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity03 is match "switch." or entity03 is match "input_boolean."}}' + - condition: state + entity_id: !input entity03 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button03pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03text + message: "{{ entity03_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03bri + message: " " + + ##### buttonpage01.button03 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity03 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity03 is match "cover." }}' + - condition: state + entity_id: !input entity03 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button03pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03text + message: "{{ entity03_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03bri + message: " " + ##### buttonpage01.button03 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity03 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity03 is match "cover." }}' + - condition: state + entity_id: !input entity03 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button03pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03text + message: "{{ entity03_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button03bri + message: '{{ (state_attr(entity03, "position") | int ) |round(0) }}%' + + ####### button04 ################################################################# - choose: + ##### buttonpage01.button04 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity04 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity04 is match "light." }}' - condition: state entity_id: !input entity04 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button04 - message: 1 + cmd: buttonpage01.button04pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04text + message: "{{ entity04_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04bri + message: " " + ##### buttonpage01.button04 light ON ##### - conditions: - condition: trigger id: - current_state_entity04 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity04 is match "light." }}' - condition: state entity_id: !input entity04 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button04 - message: 0 + cmd: buttonpage01.button04pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04text + message: "{{ entity04_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04bri + message: '{{ (state_attr(entity04, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button05 ################################################################# + ##### buttonpage01.button04 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity04 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity04 is match "switch." or entity04 is match "input_boolean."}}' + - condition: state + entity_id: !input entity04 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button04pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04text + message: "{{ entity04_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04bri + message: " " + ##### buttonpage01.button04 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity04 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity04 is match "switch." or entity04 is match "input_boolean."}}' + - condition: state + entity_id: !input entity04 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button04pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04text + message: "{{ entity04_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04bri + message: " " + + ##### buttonpage01.button04 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity04 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity04 is match "cover." }}' + - condition: state + entity_id: !input entity04 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button04pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04text + message: "{{ entity04_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04bri + message: " " + ##### buttonpage01.button04 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity04 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity04 is match "cover." }}' + - condition: state + entity_id: !input entity04 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button04pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04text + message: "{{ entity04_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button04bri + message: '{{ (state_attr(entity04, "position") | int ) |round(0) }}%' + + ####### buttonpage01.button05 ################################################################# - choose: + ##### buttonpage01.button05 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity05 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity05 is match "light." }}' - condition: state entity_id: !input entity05 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button05 - message: 1 + cmd: buttonpage01.button05pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05text + message: "{{ entity05_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05bri + message: " " + ##### buttonpage01.button05 light ON ##### - conditions: - condition: trigger id: - current_state_entity05 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity05 is match "light." }}' - condition: state entity_id: !input entity05 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button05 - message: 0 + cmd: buttonpage01.button05pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05text + message: "{{ entity05_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05bri + message: '{{ (state_attr(entity05, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button06 ################################################################# + ##### buttonpage01.button05 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity05 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity05 is match "switch." or entity05 is match "input_boolean."}}' + - condition: state + entity_id: !input entity05 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button05pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05text + message: "{{ entity05_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05bri + message: " " + ##### buttonpage01.button05 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity05 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity05 is match "switch." or entity05 is match "input_boolean."}}' + - condition: state + entity_id: !input entity05 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button05pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05text + message: "{{ entity05_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05bri + message: " " + + ##### buttonpage01.button05 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity05 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity05 is match "cover." }}' + - condition: state + entity_id: !input entity05 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button05pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05text + message: "{{ entity05_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05bri + message: " " + ##### buttonpage01.button05 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity05 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity05 is match "cover." }}' + - condition: state + entity_id: !input entity05 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button05pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05text + message: "{{ entity05_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button05bri + message: '{{ (state_attr(entity05, "position") | int ) |round(0) }}%' + + ####### buttonpage01.button06 ################################################################# - choose: + ##### buttonpage01.button06 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity06 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity06 is match "light." }}' - condition: state entity_id: !input entity06 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button06 - message: 1 + cmd: buttonpage01.button06pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06text + message: "{{ entity06_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06bri + message: " " + ##### buttonpage01.button06 light ON ##### - conditions: - condition: trigger id: - current_state_entity06 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity06 is match "light." }}' - condition: state entity_id: !input entity06 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button06 - message: 0 + cmd: buttonpage01.button06pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06text + message: "{{ entity06_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06bri + message: '{{ (state_attr(entity06, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button07 ################################################################# + ##### buttonpage01.button06 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity06 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity06 is match "switch." or entity06 is match "input_boolean."}}' + - condition: state + entity_id: !input entity06 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button06pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06text + message: "{{ entity06_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06bri + message: " " + ##### buttonpage01.button06 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity06 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity06 is match "switch." or entity06 is match "input_boolean."}}' + - condition: state + entity_id: !input entity06 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button06pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06text + message: "{{ entity06_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06bri + message: " " + + ##### buttonpage01.button06 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity06 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity06 is match "cover." }}' + - condition: state + entity_id: !input entity06 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button06pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06text + message: "{{ entity06_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06bri + message: " " + ##### buttonpage01.button06 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity06 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity06 is match "cover." }}' + - condition: state + entity_id: !input entity06 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button06pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06text + message: "{{ entity06_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button06bri + message: '{{ (state_attr(entity06, "position") | int ) |round(0) }}%' + + ####### buttonpage01.button07 ################################################################# - choose: + ##### buttonpage01.button07 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity07 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity07 is match "light." }}' - condition: state entity_id: !input entity07 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button07 - message: 1 + cmd: buttonpage01.button07pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07text + message: "{{ entity07_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07bri + message: " " + ##### buttonpage01.button07 light ON ##### - conditions: - condition: trigger id: - current_state_entity07 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity07 is match "light." }}' - condition: state entity_id: !input entity07 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button07 - message: 0 + cmd: buttonpage01.button07pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07text + message: "{{ entity07_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07bri + message: '{{ (state_attr(entity07, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button08 ################################################################# + ##### buttonpage01.button07 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity07 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity07 is match "switch." or entity07 is match "input_boolean."}}' + - condition: state + entity_id: !input entity07 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button07pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07text + message: "{{ entity07_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07bri + message: " " + ##### buttonpage01.button07 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity07 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity07 is match "switch." or entity07 is match "input_boolean."}}' + - condition: state + entity_id: !input entity07 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button07pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07text + message: "{{ entity07_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07bri + message: " " + + ##### buttonpage01.button07 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity07 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity07 is match "cover." }}' + - condition: state + entity_id: !input entity07 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button07pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07text + message: "{{ entity07_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07bri + message: " " + ##### buttonpage01.button07 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity07 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity07 is match "cover." }}' + - condition: state + entity_id: !input entity07 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button07pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07text + message: "{{ entity07_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button07bri + message: '{{ (state_attr(entity07, "position") | int ) |round(0) }}%' + + ####### buttonpage01.button08 ################################################################# - choose: + ##### buttonpage01.button08 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity08 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity08 is match "light." }}' - condition: state entity_id: !input entity08 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button08 - message: 1 + cmd: buttonpage01.button08pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08text + message: "{{ entity08_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08bri + message: " " + ##### buttonpage01.button08 light ON ##### - conditions: - condition: trigger id: - current_state_entity08 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity08 is match "light." }}' - condition: state entity_id: !input entity08 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage01.button08 - message: 0 + cmd: buttonpage01.button08pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08text + message: "{{ entity08_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08bri + message: '{{ (state_attr(entity08, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button09 ################################################################# + ##### buttonpage01.button08 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity08 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity08 is match "switch." or entity08 is match "input_boolean."}}' + - condition: state + entity_id: !input entity08 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button08pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08text + message: "{{ entity08_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08bri + message: " " + ##### buttonpage01.button08 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity08 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity08 is match "switch." or entity08 is match "input_boolean."}}' + - condition: state + entity_id: !input entity08 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button08pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08text + message: "{{ entity08_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08bri + message: " " + + ##### buttonpage01.button08 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity08 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity08 is match "cover." }}' + - condition: state + entity_id: !input entity08 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button08pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08text + message: "{{ entity08_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08bri + message: " " + ##### buttonpage01.button08 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity08 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity08 is match "cover." }}' + - condition: state + entity_id: !input entity08 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button08pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08text + message: "{{ entity08_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button08bri + message: '{{ (state_attr(entity08, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button01 ################################################################# - choose: + ##### buttonpage02.button01 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity09 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity09 is match "light." }}' - condition: state entity_id: !input entity09 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button01 - message: 1 + cmd: buttonpage02.button01pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01text + message: "{{ entity09_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01bri + message: " " + ##### buttonpage02.button01 light ON ##### - conditions: - condition: trigger id: - current_state_entity09 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity09 is match "light." }}' - condition: state entity_id: !input entity09 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button01 - message: 0 + cmd: buttonpage02.button01pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01text + message: "{{ entity09_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01bri + message: '{{ (state_attr(entity09, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button10 ################################################################# + ##### buttonpage02.button01 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity09 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity09 is match "switch." or entity09 is match "input_boolean."}}' + - condition: state + entity_id: !input entity09 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button01pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01text + message: "{{ entity09_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01bri + message: " " + ##### buttonpage02.button01 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity09 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity09 is match "switch." or entity09 is match "input_boolean."}}' + - condition: state + entity_id: !input entity09 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button01pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01text + message: "{{ entity09_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01bri + message: " " + + ##### buttonpage02.button01 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity09 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity09 is match "cover." }}' + - condition: state + entity_id: !input entity09 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button01pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01text + message: "{{ entity09_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01bri + message: " " + ##### buttonpage02.button01 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity09 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity09 is match "cover." }}' + - condition: state + entity_id: !input entity09 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button01pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01text + message: "{{ entity09_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button01bri + message: '{{ (state_attr(entity09, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button02 ################################################################# - choose: + ##### buttonpage02.button02 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity10 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity10 is match "light." }}' - condition: state entity_id: !input entity10 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button02 - message: 1 + cmd: buttonpage02.button02pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02text + message: "{{ entity10_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02bri + message: " " + ##### buttonpage02.button02 light ON ##### - conditions: - condition: trigger id: - current_state_entity10 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity10 is match "light." }}' - condition: state entity_id: !input entity10 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button02 - message: 0 + cmd: buttonpage02.button02pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02text + message: "{{ entity10_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02bri + message: '{{ (state_attr(entity10, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button11 ################################################################# + ##### buttonpage02.button02 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity10 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity10 is match "switch." or entity10 is match "input_boolean."}}' + - condition: state + entity_id: !input entity10 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button02pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02text + message: "{{ entity10_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02bri + message: " " + ##### buttonpage02.button02 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity10 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity10 is match "switch." or entity10 is match "input_boolean."}}' + - condition: state + entity_id: !input entity10 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button02pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02text + message: "{{ entity10_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02bri + message: " " + + ##### buttonpage02.button02 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity10 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity10 is match "cover." }}' + - condition: state + entity_id: !input entity10 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button02pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02text + message: "{{ entity10_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02bri + message: " " + ##### buttonpage02.button02 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity10 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity10 is match "cover." }}' + - condition: state + entity_id: !input entity10 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button02pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02text + message: "{{ entity10_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button02bri + message: '{{ (state_attr(entity10, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button03 ################################################################# - choose: + ##### button03 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity11 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity11 is match "light." }}' - condition: state entity_id: !input entity11 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button03 - message: 1 + cmd: buttonpage02.button03pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03text + message: "{{ entity11_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03bri + message: " " + ##### buttonpage02.button03 light ON ##### - conditions: - condition: trigger id: - current_state_entity11 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity11 is match "light." }}' - condition: state entity_id: !input entity11 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button03 - message: 0 + cmd: buttonpage02.button03pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03text + message: "{{ entity11_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03bri + message: '{{ (state_attr(entity11, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button12 ################################################################# + ##### buttonpage02.button03 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity11 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity11 is match "switch." or entity11 is match "input_boolean."}}' + - condition: state + entity_id: !input entity11 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button03pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03text + message: "{{ entity11_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03bri + message: " " + ##### buttonpage02.button03 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity11 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity11 is match "switch." or entity11 is match "input_boolean."}}' + - condition: state + entity_id: !input entity11 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button03pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03text + message: "{{ entity11_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03bri + message: " " + + ##### buttonpage02.button03 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity11 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity11 is match "cover." }}' + - condition: state + entity_id: !input entity11 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button03pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03text + message: "{{ entity11_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03bri + message: " " + ##### buttonpage02.button03 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity11 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity11 is match "cover." }}' + - condition: state + entity_id: !input entity11 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button03pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03text + message: "{{ entity11_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button03bri + message: '{{ (state_attr(entity11, "position") | int ) |round(0) }}%' + + ####### button04 ################################################################# - choose: + ##### buttonpage02.button04 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity12 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity12 is match "light." }}' - condition: state entity_id: !input entity12 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button04 - message: 1 + cmd: buttonpage02.button04pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04text + message: "{{ entity12_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04bri + message: " " + ##### buttonpage02.button04 light ON ##### - conditions: - condition: trigger id: - current_state_entity12 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity12 is match "light." }}' - condition: state entity_id: !input entity12 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button04 - message: 0 + cmd: buttonpage02.button04pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04text + message: "{{ entity12_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04bri + message: '{{ (state_attr(entity12, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button13 ################################################################# + ##### buttonpage02.button04 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity12 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity12 is match "switch." or entity12 is match "input_boolean."}}' + - condition: state + entity_id: !input entity12 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button04pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04text + message: "{{ entity12_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04bri + message: " " + ##### buttonpage02.button04 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity12 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity12 is match "switch." or entity12 is match "input_boolean."}}' + - condition: state + entity_id: !input entity12 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button04pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04text + message: "{{ entity12_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04bri + message: " " + + ##### buttonpage02.button04 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity12 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity12 is match "cover." }}' + - condition: state + entity_id: !input entity12 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button04pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04text + message: "{{ entity12_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04bri + message: " " + ##### buttonpage02.button04 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity12 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity12 is match "cover." }}' + - condition: state + entity_id: !input entity12 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button04pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04text + message: "{{ entity12_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button04bri + message: '{{ (state_attr(entity12, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button05 ################################################################# - choose: + ##### buttonpage02.button05 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity13 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity13 is match "light." }}' - condition: state entity_id: !input entity13 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button05 - message: 1 + cmd: buttonpage02.button05pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05text + message: "{{ entity13_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05bri + message: " " + ##### buttonpage02.button05 light ON ##### - conditions: - condition: trigger id: - current_state_entity13 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity13 is match "light." }}' - condition: state entity_id: !input entity13 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button05 - message: 0 + cmd: buttonpage02.button05pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05text + message: "{{ entity13_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05bri + message: '{{ (state_attr(entity13, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button14 ################################################################# + ##### buttonpage02.button05 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity13 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity13 is match "switch." or entity13 is match "input_boolean."}}' + - condition: state + entity_id: !input entity13 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button05pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05text + message: "{{ entity13_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05bri + message: " " + ##### buttonpage02.button05 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity13 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity13 is match "switch." or entity13 is match "input_boolean."}}' + - condition: state + entity_id: !input entity13 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button05pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05text + message: "{{ entity13_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05bri + message: " " + + ##### buttonpage02.button05 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity13 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity13 is match "cover." }}' + - condition: state + entity_id: !input entity13 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button05pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05text + message: "{{ entity13_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05bri + message: " " + ##### buttonpage02.button05 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity13 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity13 is match "cover." }}' + - condition: state + entity_id: !input entity13 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button05pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05text + message: "{{ entity13_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button05bri + message: '{{ (state_attr(entity13, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button06 ################################################################# - choose: + ##### buttonpage02.button06 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity14 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity14 is match "light." }}' - condition: state entity_id: !input entity14 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button06 - message: 1 + cmd: buttonpage02.button06pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06text + message: "{{ entity14_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06bri + message: " " + ##### buttonpage02.button06 light ON ##### - conditions: - condition: trigger id: - current_state_entity14 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity14 is match "light." }}' - condition: state entity_id: !input entity14 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button06 - message: 0 + cmd: buttonpage02.button06pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06text + message: "{{ entity14_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06bri + message: '{{ (state_attr(entity14, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button15 ################################################################# + ##### buttonpage02.button06 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity14 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity14 is match "switch." or entity14 is match "input_boolean."}}' + - condition: state + entity_id: !input entity14 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button06pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06text + message: "{{ entity14_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06bri + message: " " + ##### buttonpage02.button06 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity14 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity14 is match "switch." or entity14 is match "input_boolean."}}' + - condition: state + entity_id: !input entity14 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button06pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06text + message: "{{ entity14_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06bri + message: " " + + ##### buttonpage02.button06 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity14 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity14 is match "cover." }}' + - condition: state + entity_id: !input entity14 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button06pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06text + message: "{{ entity14_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06bri + message: " " + ##### buttonpage02.button06 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity14 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity14 is match "cover." }}' + - condition: state + entity_id: !input entity14 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button06pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06text + message: "{{ entity14_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button06bri + message: '{{ (state_attr(entity14, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button07 ################################################################# - choose: + ##### buttonpage02.button07 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity15 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity15 is match "light." }}' - condition: state entity_id: !input entity15 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button07 - message: 1 + cmd: buttonpage02.button07pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07text + message: "{{ entity15_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07bri + message: " " + ##### buttonpage02.button07 light ON ##### - conditions: - condition: trigger id: - current_state_entity15 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity15 is match "light." }}' - condition: state entity_id: !input entity15 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button07 - message: 0 + cmd: buttonpage02.button07pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07text + message: "{{ entity15_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07bri + message: '{{ (state_attr(entity15, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button16 ################################################################# + ##### buttonpage02.button07 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity15 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity15 is match "switch." or entity15 is match "input_boolean."}}' + - condition: state + entity_id: !input entity15 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button07pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07text + message: "{{ entity15_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07bri + message: " " + ##### buttonpage02.button07 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity15 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity15 is match "switch." or entity15 is match "input_boolean."}}' + - condition: state + entity_id: !input entity15 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button07pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07text + message: "{{ entity15_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07bri + message: " " + + ##### buttonpage02.button07 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity15 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity15 is match "cover." }}' + - condition: state + entity_id: !input entity15 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button07pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07text + message: "{{ entity15_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07bri + message: " " + ##### buttonpage02.button07 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity15 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity15 is match "cover." }}' + - condition: state + entity_id: !input entity15 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button07pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07text + message: "{{ entity15_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button07bri + message: '{{ (state_attr(entity15, "position") | int ) |round(0) }}%' + + ####### buttonpage02.button08 ################################################################# - choose: + ##### buttonpage02.button08 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity16 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity16 is match "light." }}' - condition: state entity_id: !input entity16 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button08 - message: 1 + cmd: buttonpage02.button08pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08text + message: "{{ entity16_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08bri + message: " " + ##### buttonpage02.button08 light ON ##### - conditions: - condition: trigger id: - current_state_entity16 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity16 is match "light." }}' - condition: state entity_id: !input entity16 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage02.button08 - message: 0 + cmd: buttonpage02.button08pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08text + message: "{{ entity16_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08bri + message: '{{ (state_attr(entity16, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button17 ################################################################# + ##### buttonpage02.button08 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity16 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity16 is match "switch." or entity16 is match "input_boolean."}}' + - condition: state + entity_id: !input entity16 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button08pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08text + message: "{{ entity16_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08bri + message: " " + ##### buttonpage02.button08 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity16 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity16 is match "switch." or entity16 is match "input_boolean."}}' + - condition: state + entity_id: !input entity16 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button08pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08text + message: "{{ entity16_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08bri + message: " " + + ##### buttonpage02.button08 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity16 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity16 is match "cover." }}' + - condition: state + entity_id: !input entity16 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button08pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08text + message: "{{ entity16_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08bri + message: " " + ##### buttonpage02.button08 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity16 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity16 is match "cover." }}' + - condition: state + entity_id: !input entity16 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage02.button08pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage02.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08text + message: "{{ entity16_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage02.button08bri + message: '{{ (state_attr(entity16, "position") | int ) |round(0) }}%' + + + ####### buttonpage03.button01 ################################################################# - choose: + ##### buttonpage03.button01 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity17 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity17 is match "light." }}' - condition: state entity_id: !input entity17 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button01 - message: 1 + cmd: buttonpage03.button01pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01text + message: "{{ entity17_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01bri + message: " " + ##### buttonpage03.button01 light ON ##### - conditions: - condition: trigger id: - current_state_entity17 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity17 is match "light." }}' - condition: state entity_id: !input entity17 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button01 - message: 0 + cmd: buttonpage03.button01pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01text + message: "{{ entity17_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01bri + message: '{{ (state_attr(entity17, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button18 ################################################################# + ##### buttonpage03.button01 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity17 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity17 is match "switch." or entity17 is match "input_boolean."}}' + - condition: state + entity_id: !input entity17 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button01pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01text + message: "{{ entity17_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01bri + message: " " + ##### buttonpage03.button01 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity17 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity17 is match "switch." or entity17 is match "input_boolean."}}' + - condition: state + entity_id: !input entity17 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button01pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01text + message: "{{ entity17_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01bri + message: " " + + ##### buttonpage03.button01 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity17 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity17 is match "cover." }}' + - condition: state + entity_id: !input entity17 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button01pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01text + message: "{{ entity17_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01bri + message: " " + ##### buttonpage03.button01 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity17 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity17 is match "cover." }}' + - condition: state + entity_id: !input entity17 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button01pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01text + message: "{{ entity17_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button01bri + message: '{{ (state_attr(entity17, "position") | int ) |round(0) }}%' + + ####### buttonpage03.button02 ################################################################# - choose: + ##### buttonpage03.button02 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity18 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity18 is match "light." }}' - condition: state entity_id: !input entity18 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button02 - message: 1 + cmd: buttonpage03.button02pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02text + message: "{{ entity18_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02bri + message: " " + ##### buttonpage03.button02 light ON ##### - conditions: - condition: trigger id: - current_state_entity18 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity18 is match "light." }}' - condition: state entity_id: !input entity18 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button02 - message: 0 + cmd: buttonpage03.button02pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02text + message: "{{ entity18_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02bri + message: '{{ (state_attr(entity18, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button19 ################################################################# + ##### buttonpage03.button02 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity18 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity18 is match "switch." or entity18 is match "input_boolean."}}' + - condition: state + entity_id: !input entity18 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button02pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02text + message: "{{ entity18_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02bri + message: " " + ##### buttonpage03.button02 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity18 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity18 is match "switch." or entity18 is match "input_boolean."}}' + - condition: state + entity_id: !input entity18 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button02pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02text + message: "{{ entity18_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02bri + message: " " + + ##### buttonpage03.button02 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity18 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity18 is match "cover." }}' + - condition: state + entity_id: !input entity18 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button02pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02text + message: "{{ entity18_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02bri + message: " " + ##### buttonpage03.button02 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity18 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity18 is match "cover." }}' + - condition: state + entity_id: !input entity18 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button02pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02text + message: "{{ entity18_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button02bri + message: '{{ (state_attr(entity18, "position") | int ) |round(0) }}%' + + ####### buttonpage03.button03 ################################################################# - choose: + ##### button03 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity19 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity19 is match "light." }}' - condition: state entity_id: !input entity19 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button03 - message: 1 + cmd: buttonpage03.button03pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03text + message: "{{ entity19_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03bri + message: " " + ##### buttonpage03.button03 light ON ##### - conditions: - condition: trigger id: - current_state_entity19 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity19 is match "light." }}' - condition: state entity_id: !input entity19 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button03 - message: 0 + cmd: buttonpage03.button03pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03text + message: "{{ entity19_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03bri + message: '{{ (state_attr(entity19, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button20 ################################################################# + ##### buttonpage03.button03 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity19 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity19 is match "switch." or entity19 is match "input_boolean."}}' + - condition: state + entity_id: !input entity19 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button03pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03text + message: "{{ entity19_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03bri + message: " " + ##### buttonpage03.button03 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity19 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity19 is match "switch." or entity19 is match "input_boolean."}}' + - condition: state + entity_id: !input entity19 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button03pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03text + message: "{{ entity19_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03bri + message: " " + + ##### buttonpage03.button03 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity19 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity19 is match "cover." }}' + - condition: state + entity_id: !input entity19 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button03pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03text + message: "{{ entity19_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03bri + message: " " + ##### buttonpage03.button03 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity19 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity19 is match "cover." }}' + - condition: state + entity_id: !input entity19 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button03pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03text + message: "{{ entity19_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button03bri + message: '{{ (state_attr(entity19, "position") | int ) |round(0) }}%' + + ####### button04 ################################################################# - choose: + ##### buttonpage03.button04 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity20 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity20 is match "light." }}' - condition: state entity_id: !input entity20 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button04 - message: 1 + cmd: buttonpage03.button04pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04text + message: "{{ entity20_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04bri + message: " " + ##### buttonpage03.button04 light ON ##### - conditions: - condition: trigger id: - current_state_entity20 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity20 is match "light." }}' - condition: state entity_id: !input entity20 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button04 - message: 0 + cmd: buttonpage03.button04pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04text + message: "{{ entity20_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04bri + message: '{{ (state_attr(entity20, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button21 ################################################################# + ##### buttonpage03.button04 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity20 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity20 is match "switch." or entity20 is match "input_boolean."}}' + - condition: state + entity_id: !input entity20 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button04pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04text + message: "{{ entity20_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04bri + message: " " + ##### buttonpage03.button04 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity20 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity20 is match "switch." or entity20 is match "input_boolean."}}' + - condition: state + entity_id: !input entity20 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button04pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04text + message: "{{ entity20_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04bri + message: " " + + ##### buttonpage03.button04 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity20 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity20 is match "cover." }}' + - condition: state + entity_id: !input entity20 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button04pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04text + message: "{{ entity20_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04bri + message: " " + ##### buttonpage03.button04 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity20 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity20 is match "cover." }}' + - condition: state + entity_id: !input entity20 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button04pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04text + message: "{{ entity20_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button04bri + message: '{{ (state_attr(entity20, "position") | int ) |round(0) }}%' + + ####### buttonpage03.button05 ################################################################# - choose: + ##### buttonpage03.button05 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity21 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity21 is match "light." }}' - condition: state entity_id: !input entity21 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button05 - message: 1 + cmd: buttonpage03.button05pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05text + message: "{{ entity21_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05bri + message: " " + ##### buttonpage03.button05 light ON ##### - conditions: - condition: trigger id: - current_state_entity21 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity21 is match "light." }}' - condition: state entity_id: !input entity21 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button05 - message: 0 + cmd: buttonpage03.button05pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05text + message: "{{ entity21_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05bri + message: '{{ (state_attr(entity21, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button22 ################################################################# + ##### buttonpage03.button05 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity21 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity21 is match "switch." or entity21 is match "input_boolean."}}' + - condition: state + entity_id: !input entity21 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button05pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05text + message: "{{ entity21_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05bri + message: " " + ##### buttonpage03.button05 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity21 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity21 is match "switch." or entity21 is match "input_boolean."}}' + - condition: state + entity_id: !input entity21 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button05pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05text + message: "{{ entity21_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05bri + message: " " + + ##### buttonpage03.button05 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity21 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity21 is match "cover." }}' + - condition: state + entity_id: !input entity21 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button05pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05text + message: "{{ entity21_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05bri + message: " " + ##### buttonpage03.button05 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity21 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity21 is match "cover." }}' + - condition: state + entity_id: !input entity21 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button05pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05text + message: "{{ entity21_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button05bri + message: '{{ (state_attr(entity21, "position") | int ) |round(0) }}%' + + ####### buttonpage03.button06 ################################################################# - choose: + ##### buttonpage03.button06 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity22 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity22 is match "light." }}' - condition: state entity_id: !input entity22 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button06 - message: 1 + cmd: buttonpage03.button06pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06text + message: "{{ entity22_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06bri + message: " " + ##### buttonpage03.button06 light ON ##### - conditions: - condition: trigger id: - current_state_entity22 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity22 is match "light." }}' - condition: state entity_id: !input entity22 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button06 - message: 0 + cmd: buttonpage03.button06pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06text + message: "{{ entity22_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06bri + message: '{{ (state_attr(entity22, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button23 ################################################################# + ##### buttonpage03.button06 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity22 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity22 is match "switch." or entity22 is match "input_boolean."}}' + - condition: state + entity_id: !input entity22 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button06pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06text + message: "{{ entity22_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06bri + message: " " + ##### buttonpage03.button06 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity22 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity22 is match "switch." or entity22 is match "input_boolean."}}' + - condition: state + entity_id: !input entity22 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button06pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06text + message: "{{ entity22_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06bri + message: " " + + ##### buttonpage03.button06 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity22 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity22 is match "cover." }}' + - condition: state + entity_id: !input entity22 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button06pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06text + message: "{{ entity22_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06bri + message: " " + ##### buttonpage03.button06 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity22 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity22 is match "cover." }}' + - condition: state + entity_id: !input entity22 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button06pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06text + message: "{{ entity22_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button06bri + message: '{{ (state_attr(entity22, "position") | int ) |round(0) }}%' + + ####### buttonpage03.button07 ################################################################# - choose: + ##### buttonpage03.button07 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity23 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity23 is match "light." }}' - condition: state entity_id: !input entity23 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button07 - message: 1 + cmd: buttonpage03.button07pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07text + message: "{{ entity23_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07bri + message: " " + ##### buttonpage03.button07 light ON ##### - conditions: - condition: trigger id: - current_state_entity23 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity23 is match "light." }}' - condition: state entity_id: !input entity23 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button07 - message: 0 + cmd: buttonpage03.button07pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07text + message: "{{ entity23_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07bri + message: '{{ (state_attr(entity23, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button24 ################################################################# + ##### buttonpage03.button07 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity23 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity23 is match "switch." or entity23 is match "input_boolean."}}' + - condition: state + entity_id: !input entity23 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button07pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07text + message: "{{ entity23_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07bri + message: " " + ##### buttonpage03.button07 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity23 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity23 is match "switch." or entity23 is match "input_boolean."}}' + - condition: state + entity_id: !input entity23 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button07pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07text + message: "{{ entity23_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07bri + message: " " + + ##### buttonpage03.button07 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity23 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity23 is match "cover." }}' + - condition: state + entity_id: !input entity23 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button07pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07text + message: "{{ entity23_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07bri + message: " " + ##### buttonpage03.button07 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity23 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity23 is match "cover." }}' + - condition: state + entity_id: !input entity23 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button07pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07text + message: "{{ entity23_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button07bri + message: '{{ (state_attr(entity23, "position") | int ) |round(0) }}%' + + ####### buttonpage03.button08 ################################################################# - choose: + ##### buttonpage03.button08 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity24 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity24 is match "light." }}' - condition: state entity_id: !input entity24 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button08 - message: 1 + cmd: buttonpage03.button08pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08text + message: "{{ entity24_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08bri + message: " " + ##### buttonpage03.button08 light ON ##### - conditions: - condition: trigger id: - current_state_entity24 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity24 is match "light." }}' - condition: state entity_id: !input entity24 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage03.button08 - message: 0 + cmd: buttonpage03.button08pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08text + message: "{{ entity24_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08bri + message: '{{ (state_attr(entity24, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button25 ################################################################# + ##### buttonpage03.button08 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity24 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity24 is match "switch." or entity24 is match "input_boolean."}}' + - condition: state + entity_id: !input entity24 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button08pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08text + message: "{{ entity24_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08bri + message: " " + ##### buttonpage03.button08 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity24 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity24 is match "switch." or entity24 is match "input_boolean."}}' + - condition: state + entity_id: !input entity24 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button08pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08text + message: "{{ entity24_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08bri + message: " " + + ##### buttonpage03.button08 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity24 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity24 is match "cover." }}' + - condition: state + entity_id: !input entity24 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button08pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08text + message: "{{ entity24_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08bri + message: " " + ##### buttonpage03.button08 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity24 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity24 is match "cover." }}' + - condition: state + entity_id: !input entity24 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage03.button08pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage03.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08text + message: "{{ entity24_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage03.button08bri + message: '{{ (state_attr(entity24, "position") | int ) |round(0) }}%' + + + ####### buttonpage04.button01 ################################################################# - choose: + ##### buttonpage04.button01 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity25 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity25 is match "light." }}' - condition: state entity_id: !input entity25 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button01 - message: 1 + cmd: buttonpage04.button01pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01text + message: "{{ entity25_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01bri + message: " " + ##### buttonpage04.button01 light ON ##### - conditions: - condition: trigger id: - current_state_entity25 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity25 is match "light." }}' - condition: state entity_id: !input entity25 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button01 - message: 0 + cmd: buttonpage04.button01pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01text + message: "{{ entity25_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01bri + message: '{{ (state_attr(entity25, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button26 ################################################################# + ##### buttonpage04.button01 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity25 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity25 is match "switch." or entity25 is match "input_boolean."}}' + - condition: state + entity_id: !input entity25 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button01pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01text + message: "{{ entity25_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01bri + message: " " + ##### buttonpage04.button01 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity25 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity25 is match "switch." or entity25 is match "input_boolean."}}' + - condition: state + entity_id: !input entity25 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button01pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01text + message: "{{ entity25_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01bri + message: " " + + ##### buttonpage04.button01 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity25 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity25 is match "cover." }}' + - condition: state + entity_id: !input entity25 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button01pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01text + message: "{{ entity25_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01bri + message: " " + ##### buttonpage04.button01 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity25 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity25 is match "cover." }}' + - condition: state + entity_id: !input entity25 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button01pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01text + message: "{{ entity25_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button01bri + message: '{{ (state_attr(entity25, "position") | int ) |round(0) }}%' + + ####### buttonpage04.button02 ################################################################# - choose: + ##### buttonpage04.button02 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity26 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity26 is match "light." }}' - condition: state entity_id: !input entity26 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button02 - message: 1 + cmd: buttonpage04.button02pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02text + message: "{{ entity26_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02bri + message: " " + ##### buttonpage04.button02 light ON ##### - conditions: - condition: trigger id: - current_state_entity26 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity26 is match "light." }}' - condition: state entity_id: !input entity26 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button02 - message: 0 + cmd: buttonpage04.button02pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02text + message: "{{ entity26_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02bri + message: '{{ (state_attr(entity26, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button27 ################################################################# + ##### buttonpage04.button02 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity26 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity26 is match "switch." or entity26 is match "input_boolean."}}' + - condition: state + entity_id: !input entity26 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button02pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02text + message: "{{ entity26_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02bri + message: " " + ##### buttonpage04.button02 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity26 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity26 is match "switch." or entity26 is match "input_boolean."}}' + - condition: state + entity_id: !input entity26 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button02pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02text + message: "{{ entity26_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02bri + message: " " + + ##### buttonpage04.button02 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity26 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity26 is match "cover." }}' + - condition: state + entity_id: !input entity26 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button02pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02text + message: "{{ entity26_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02bri + message: " " + ##### buttonpage04.button02 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity26 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity26 is match "cover." }}' + - condition: state + entity_id: !input entity26 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button02pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button02bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02text + message: "{{ entity26_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button02bri + message: '{{ (state_attr(entity26, "position") | int ) |round(0) }}%' + + ####### buttonpage04.button03 ################################################################# - choose: + ##### button03 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity27 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity27 is match "light." }}' - condition: state entity_id: !input entity27 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button03 - message: 1 + cmd: buttonpage04.button03pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03text + message: "{{ entity27_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03bri + message: " " + ##### buttonpage04.button03 light ON ##### - conditions: - condition: trigger id: - current_state_entity27 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity27 is match "light." }}' - condition: state entity_id: !input entity27 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button03 - message: 0 + cmd: buttonpage04.button03pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03text + message: "{{ entity27_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03bri + message: '{{ (state_attr(entity27, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button28 ################################################################# + ##### buttonpage04.button03 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity27 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity27 is match "switch." or entity27 is match "input_boolean."}}' + - condition: state + entity_id: !input entity27 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button03pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03text + message: "{{ entity27_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03bri + message: " " + ##### buttonpage04.button03 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity27 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity27 is match "switch." or entity27 is match "input_boolean."}}' + - condition: state + entity_id: !input entity27 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button03pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03text + message: "{{ entity27_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03bri + message: " " + + ##### buttonpage04.button03 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity27 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity27 is match "cover." }}' + - condition: state + entity_id: !input entity27 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button03pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03text + message: "{{ entity27_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03bri + message: " " + ##### buttonpage04.button03 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity27 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity27 is match "cover." }}' + - condition: state + entity_id: !input entity27 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button03pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button03bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03text + message: "{{ entity27_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button03bri + message: '{{ (state_attr(entity27, "position") | int ) |round(0) }}%' + + ####### button04 ################################################################# - choose: + ##### buttonpage04.button04 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity28 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity28 is match "light." }}' - condition: state entity_id: !input entity28 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button04 - message: 1 + cmd: buttonpage04.button04pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04text + message: "{{ entity28_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04bri + message: " " + ##### buttonpage04.button04 light ON ##### - conditions: - condition: trigger id: - current_state_entity28 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity28 is match "light." }}' - condition: state entity_id: !input entity28 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button04 - message: 0 + cmd: buttonpage04.button04pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04text + message: "{{ entity28_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04bri + message: '{{ (state_attr(entity28, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button29 ################################################################# + ##### buttonpage04.button04 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity28 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity28 is match "switch." or entity28 is match "input_boolean."}}' + - condition: state + entity_id: !input entity28 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button04pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04text + message: "{{ entity28_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04bri + message: " " + ##### buttonpage04.button04 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity28 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity28 is match "switch." or entity28 is match "input_boolean."}}' + - condition: state + entity_id: !input entity28 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button04pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04text + message: "{{ entity28_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04bri + message: " " + + ##### buttonpage04.button04 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity28 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity28 is match "cover." }}' + - condition: state + entity_id: !input entity28 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button04pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04text + message: "{{ entity28_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04bri + message: " " + ##### buttonpage04.button04 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity28 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity28 is match "cover." }}' + - condition: state + entity_id: !input entity28 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button04pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button04bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04text + message: "{{ entity28_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button04bri + message: '{{ (state_attr(entity28, "position") | int ) |round(0) }}%' + + ####### buttonpage04.button05 ################################################################# - choose: + ##### buttonpage04.button05 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity29 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity29 is match "light." }}' - condition: state entity_id: !input entity29 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button05 - message: 1 + cmd: buttonpage04.button05pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05text + message: "{{ entity29_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05bri + message: " " + ##### buttonpage04.button05 light ON ##### - conditions: - condition: trigger id: - current_state_entity29 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity29 is match "light." }}' - condition: state entity_id: !input entity29 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button05 - message: 0 + cmd: buttonpage04.button05pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05text + message: "{{ entity29_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05bri + message: '{{ (state_attr(entity29, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button30 ################################################################# + ##### buttonpage04.button05 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity29 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity29 is match "switch." or entity29 is match "input_boolean."}}' + - condition: state + entity_id: !input entity29 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button05pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05text + message: "{{ entity29_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05bri + message: " " + ##### buttonpage04.button05 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity29 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity29 is match "switch." or entity29 is match "input_boolean."}}' + - condition: state + entity_id: !input entity29 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button05pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05text + message: "{{ entity29_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05bri + message: " " + + ##### buttonpage04.button05 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity29 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity29 is match "cover." }}' + - condition: state + entity_id: !input entity29 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button05pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05text + message: "{{ entity29_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05bri + message: " " + ##### buttonpage04.button05 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity29 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity29 is match "cover." }}' + - condition: state + entity_id: !input entity29 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button05pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button05bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05text + message: "{{ entity29_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button05bri + message: '{{ (state_attr(entity29, "position") | int ) |round(0) }}%' + + ####### buttonpage04.button06 ################################################################# - choose: + ##### buttonpage04.button06 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity30 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity30 is match "light." }}' - condition: state entity_id: !input entity30 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button06 - message: 1 + cmd: buttonpage04.button06pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06text + message: "{{ entity30_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06bri + message: " " + ##### buttonpage04.button06 light ON ##### - conditions: - condition: trigger id: - current_state_entity30 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity30 is match "light." }}' - condition: state entity_id: !input entity30 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button06 - message: 0 + cmd: buttonpage04.button06pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06text + message: "{{ entity30_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06bri + message: '{{ (state_attr(entity30, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button31 ################################################################# + ##### buttonpage04.button06 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity30 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity30 is match "switch." or entity30 is match "input_boolean."}}' + - condition: state + entity_id: !input entity30 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button06pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06text + message: "{{ entity30_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06bri + message: " " + ##### buttonpage04.button06 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity30 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity30 is match "switch." or entity30 is match "input_boolean."}}' + - condition: state + entity_id: !input entity30 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button06pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06text + message: "{{ entity30_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06bri + message: " " + + ##### buttonpage04.button06 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity30 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity30 is match "cover." }}' + - condition: state + entity_id: !input entity30 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button06pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06text + message: "{{ entity30_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06bri + message: " " + ##### buttonpage04.button06 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity30 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity30 is match "cover." }}' + - condition: state + entity_id: !input entity30 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button06pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button06bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06text + message: "{{ entity30_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button06bri + message: '{{ (state_attr(entity30, "position") | int ) |round(0) }}%' + + ####### buttonpage04.button07 ################################################################# - choose: + ##### buttonpage04.button07 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity31 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity31 is match "light." }}' - condition: state entity_id: !input entity31 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button07 - message: 1 + cmd: buttonpage04.button07pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07text + message: "{{ entity31_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07bri + message: " " + ##### buttonpage04.button07 light ON ##### - conditions: - condition: trigger id: - current_state_entity31 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity31 is match "light." }}' - condition: state entity_id: !input entity31 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button07 - message: 0 + cmd: buttonpage04.button07pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07text + message: "{{ entity31_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07bri + message: '{{ (state_attr(entity31, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button32 ################################################################# + ##### buttonpage04.button07 Switch / Input boolean OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity31 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity31 is match "switch." or entity31 is match "input_boolean."}}' + - condition: state + entity_id: !input entity31 + state: "off" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button07pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07text + message: "{{ entity31_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07bri + message: " " + ##### buttonpage04.button07 Switch / Input Boolean ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity31 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity31 is match "switch." or entity31 is match "input_boolean."}}' + - condition: state + entity_id: !input entity31 + state: "on" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button07pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07text + message: "{{ entity31_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07bri + message: " " + + ##### buttonpage04.button07 Cover OFF ##### + - conditions: + - condition: trigger + id: + - current_state_entity31 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity31 is match "cover." }}' + - condition: state + entity_id: !input entity31 + state: "closed" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button07pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07text + message: "{{ entity31_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07bri + message: " " + ##### buttonpage04.button07 Cover ON ##### + - conditions: + - condition: trigger + id: + - current_state_entity31 + - button_page + - nspanel_boot + - condition: template + value_template: '{{ entity31 is match "cover." }}' + - condition: state + entity_id: !input entity31 + state: "open" + sequence: + - service: "{{ command_printf }}" + data: + cmd: buttonpage04.button07pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button07bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07text + message: "{{ entity31_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button07bri + message: '{{ (state_attr(entity31, "position") | int ) |round(0) }}%' + + ####### buttonpage04.button08 ################################################################# - choose: + ##### buttonpage04.button08 Light OFF ##### - conditions: - condition: trigger id: - current_state_entity32 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity32 is match "light." }}' - condition: state entity_id: !input entity32 - state: - - "on" - - "open" + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button08 - message: 1 + cmd: buttonpage04.button08pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08text + message: "{{ entity32_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08bri + message: " " + ##### buttonpage04.button08 light ON ##### - conditions: - condition: trigger id: - current_state_entity32 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity32 is match "light." }}' - condition: state entity_id: !input entity32 - state: - - "off" - - "closed" + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage04.button08 - message: 0 + cmd: buttonpage04.button08pic.pic={{ button_light_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08text + message: "{{ entity32_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08bri + message: '{{ (state_attr(entity32, "brightness") | int * 100 / 254) |round(0) }}%' - ##### Button33 ################################################################# - - choose: + ##### buttonpage04.button08 Switch / Input boolean OFF ##### - conditions: - condition: trigger id: - - current_state_entity33 + - current_state_entity32 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity32 is match "switch." or entity32 is match "input_boolean."}}' - condition: state - entity_id: !input entity33 - state: - - "on" - - "open" + entity_id: !input entity32 + state: "off" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage05.button01 - message: 1 + cmd: buttonpage04.button08pic.pic={{ button_switch_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08text + message: "{{ entity32_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08bri + message: " " + ##### buttonpage04.button08 Switch / Input Boolean ON ##### - conditions: - condition: trigger id: - - current_state_entity33 + - current_state_entity32 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity32 is match "switch." or entity32 is match "input_boolean."}}' - condition: state - entity_id: !input entity33 - state: - - "off" - - "closed" + entity_id: !input entity32 + state: "on" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage05.button01 - message: 0 + cmd: buttonpage04.button08pic.pic={{ button_switch_on }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08text + message: "{{ entity32_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08bri + message: " " - ##### Button34 ################################################################# - - choose: + ##### buttonpage04.button08 Cover OFF ##### - conditions: - condition: trigger id: - - current_state_entity34 + - current_state_entity32 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity32 is match "cover." }}' - condition: state - entity_id: !input entity34 - state: - - "on" - - "open" + entity_id: !input entity32 + state: "closed" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage05.button02 - message: 1 + cmd: buttonpage04.button08pic.pic={{ button_cover_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08text + message: "{{ entity32_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage04.button08bri + message: " " + ##### buttonpage04.button08 Cover ON ##### - conditions: - condition: trigger id: - - current_state_entity34 + - current_state_entity32 - button_page - nspanel_boot + - condition: template + value_template: '{{ entity32 is match "cover." }}' - condition: state - entity_id: !input entity34 - state: - - "off" - - "closed" + entity_id: !input entity32 + state: "open" sequence: - - service: "{{ command_value }}" + - service: "{{ command_printf }}" data: - component: buttonpage05.button02 - message: 0 - - ##### Button35 ################################################################# - - choose: - - conditions: - - condition: trigger - id: - - current_state_entity35 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity35 - state: - - "on" - - "open" - sequence: - - service: "{{ command_value }}" + cmd: buttonpage04.button08pic.pic={{ button_cover_on }} + ##### + - service: "{{ command_background_color }}" data: - component: buttonpage05.button03 - message: 1 - - conditions: - - condition: trigger - id: - - current_state_entity35 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity35 - state: - - "off" - - "closed" - sequence: - - service: "{{ command_value }}" + component: buttonpage04.button08text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" data: - component: buttonpage05.button03 - message: 0 - - ##### Button36 ################################################################# - - choose: - - conditions: - - condition: trigger - id: - - current_state_entity36 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity36 - state: - - "on" - - "open" - sequence: - - service: "{{ command_value }}" + component: buttonpage04.button08text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_background_color }}" data: - component: buttonpage05.button04 - message: 1 - - conditions: - - condition: trigger - id: - - current_state_entity36 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity36 - state: - - "off" - - "closed" - sequence: - - service: "{{ command_value }}" + component: buttonpage04.button08bri + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_font_color }}" data: - component: buttonpage05.button04 - message: 0 - - ##### Button37 ################################################################# - - choose: - - conditions: - - condition: trigger - id: - - current_state_entity37 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity37 - state: - - "on" - - "open" - sequence: - - service: "{{ command_value }}" + component: buttonpage04.button08bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" data: - component: buttonpage05.button05 - message: 1 - - conditions: - - condition: trigger - id: - - current_state_entity37 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity37 - state: - - "off" - - "closed" - sequence: - - service: "{{ command_value }}" + component: buttonpage04.button08text + message: "{{ entity32_name }}" + ##### + - service: "{{ command_text_printf }}" data: - component: buttonpage05.button05 - message: 0 - - ##### Button38 ################################################################# - - choose: - - conditions: - - condition: trigger - id: - - current_state_entity38 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity38 - state: - - "on" - - "open" - sequence: - - service: "{{ command_value }}" - data: - component: buttonpage05.button06 - message: 1 - - conditions: - - condition: trigger - id: - - current_state_entity38 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity38 - state: - - "off" - - "closed" - sequence: - - service: "{{ command_value }}" - data: - component: buttonpage05.button06 - message: 0 - - ##### Button39 ################################################################# - - choose: - - conditions: - - condition: trigger - id: - - current_state_entity39 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity39 - state: - - "on" - - "open" - sequence: - - service: "{{ command_value }}" - data: - component: buttonpage05.button07 - message: 1 - - conditions: - - condition: trigger - id: - - current_state_entity39 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity39 - state: - - "off" - - "closed" - sequence: - - service: "{{ command_value }}" - data: - component: buttonpage05.button07 - message: 0 - - ##### Button40 ################################################################# - - choose: - - conditions: - - condition: trigger - id: - - current_state_entity40 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity40 - state: - - "on" - - "open" - sequence: - - service: "{{ command_value }}" - data: - component: buttonpage05.button08 - message: 1 - - conditions: - - condition: trigger - id: - - current_state_entity40 - - button_page - - nspanel_boot - - condition: state - entity_id: !input entity40 - state: - - "off" - - "closed" - sequence: - - service: "{{ command_value }}" - data: - component: buttonpage05.button08 - message: 0 + component: buttonpage04.button08bri + message: '{{ (state_attr(entity32, "position") | int ) |round(0) }}%' ######################################### # @@ -3108,8 +10760,8 @@ action: - conditions: - condition: trigger id: - - nspanel_boot - weather_update + - nspanel_boot - time_state - condition: template value_template: '{{ weather == "Default" }}' @@ -3245,7 +10897,7 @@ action: - service: "{{ command_text_printf }}" data: component: weather01.a04 ### Temperature MIN ### - message: "-" + message: " " - service: "{{ command_text_printf }}" data: component: weather01.a05 ### Temperature MAX ### @@ -4189,8 +11841,8 @@ action: - conditions: - condition: trigger id: - - nspanel_boot - weather_update + - nspanel_boot - time_state - condition: template value_template: '{{ weather == "AccuWeather" }}'