diff --git a/blueprint.yaml b/blueprint.yaml index 446b595..ac290bb 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -885,6 +885,12 @@ variables: ######################################### trigger: + ###### DELME ###### + - platform: state + entity_id: input_boolean.trigger_nspanel_boot + to: "on" + id: nspanel_boot_init + ##### TFT Upload ##### - platform: event event_type: folder_watcher @@ -892,103 +898,12 @@ trigger: event_type: modified path: !input "tft_path" id: tft_upload - - #### NSPanel boot Step 0 - Start #### nextion_inited_trigger - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # id: nspanel_boot_start + + #### new nspanel boot init #### - platform: template value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - id: nspanel_boot_start + id: nspanel_boot_init - #### NSPanel boot Step 1 - Language #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 5 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:5" - id: nspanel_boot_language - - #### NSPanel boot Step 2 - Buttonpage 1 #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 10 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:10" - id: nspanel_boot_buttonpage01 - - #### NSPanel boot Step 3 - Buttonpage 2 #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 15 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:15" - id: nspanel_boot_buttonpage02 - - #### NSPanel boot Step 4 - Buttonpage 3 #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 20 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:20" - id: nspanel_boot_buttonpage03 - - #### NSPanel boot Step 5 - Buttonpage 4 #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 25 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:25" - id: nspanel_boot_buttonpage04 - - #### NSPanel boot Step 6 - Weather #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 30 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:30" - id: nspanel_boot_weather - - #### NSPanel boot Step 7 - Entities #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 35 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:35" - id: nspanel_boot_entities - - #### NSPanel boot Step 8 - Entities #### - # - platform: state - # entity_id: !input "nextion_inited" - # to: "on" - # for: - # seconds: 50 - - platform: template - value_template: '{{ states(nextion_inited_trigger) is match "on" }}' - for: "00:00:50" - id: nspanel_boot_finish ######################################################################################################################## @@ -1538,7 +1453,7 @@ action: btn_bri_txt: >- {%- if trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'on' and trigger.to_state.attributes.brightness is defined -%} {{ (trigger.to_state.attributes.brightness | int * 100 /254) | round(0) }}% {%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'open' and trigger.to_state.attributes.current_position is defined -%} {{ (trigger.to_state.attributes.current_position | int) | round(0) }}% - {%- else -%} + {%- else -%} 0 {%- endif -%} ##### Button PIC ##### @@ -1571,10 +1486,21 @@ action: component: "{{ component_to_update }}text" message: "{{ btn_label }}" ##### "BRIGHTNESS" Text ##### - - service: "{{ command_text_printf }}" - data: - component: "{{ component_to_update }}bri" - message: "{{ btn_bri_txt }}" + - if: + - condition: template + value_template: "{{ btn_bri_txt == 0 }}" + then: + - service: "{{ command_text_printf }}" + data: + component: "{{ component_to_update }}bri" + message: " " + else: + - service: "{{ command_text_printf }}" + data: + component: "{{ component_to_update }}bri" + message: "{{ btn_bri_txt }}" + + #### Left button press - conditions: - condition: trigger id: left_button_press @@ -1591,6 +1517,7 @@ action: {% endif %} data: entity_id: "{{ left_button_entity }}" + #### Right button press - conditions: - condition: trigger id: right_button_press @@ -1607,157 +1534,2298 @@ action: {% endif %} data: entity_id: "{{ right_button_entity }}" - - ##### NSPanel Loading##### - - choose: + ### NSPanel boot init - conditions: - condition: trigger - id: nspanel_boot_start + id: nspanel_boot_init sequence: + #### NSPanel boot init start + - delay: + milliseconds: 100 - service: "{{ command_text_printf }}" data: component: home.loading message: "Loading - PLS WAIT!" - ##### NSPanel Loading##### - - choose: - - conditions: - - condition: trigger - id: nspanel_boot_finish - sequence: + #### NSPanel boot init language + - delay: + milliseconds: 11 + - choose: + #### NSPanel boot init language DE + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: weather01.a01 + message: Heute + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather02.a01 + message: Morgen + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather03.a01 + message: in 2 Tagen + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather04.a01 + message: in 3 Tagen + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather05.a01 + message: in 4 Tagen + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a06 + message: Neustart + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a07 + message: Sleep + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a08 + message: Helligkeit + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a09 + message: Dimmen + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: coversettings.a07 + message: Rollo + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: coversettings.a08 + message: Position + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a07 + message: Licht + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a08 + message: Helligkeit + ####### Date and Forecast + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a02 + message: "{{ date0_de }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather01.a02 + message: "{{ date0_de }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather02.a02 + message: "{{ date1_de }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather03.a02 + message: "{{ date2_de }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather04.a02 + message: "{{ date3_de }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather05.a02 + message: "{{ date4_de }}" + + #### NSPanel boot init language EN + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: weather01.a01 + message: Today + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather02.a01 + message: Tomorrow + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather03.a01 + message: in 2 Days + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather04.a01 + message: in 3 Days + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather05.a01 + message: in 4 Days + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a06 + message: Reboot + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a07 + message: Sleep + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a08 + message: Brightness + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: settings.a09 + message: Dimming + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: coversettings.a07 + message: Cover + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: coversettings.a08 + message: Position + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a07 + message: Light + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a08 + message: Brightness + ####### Date and Forecast + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a02 + message: "{{ date0_en }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather01.a02 + message: "{{ date0_en }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather02.a02 + message: "{{ date1_en }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather03.a02 + message: "{{ date2_en }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather04.a02 + message: "{{ date3_en }}" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: weather05.a02 + message: "{{ date4_de }}" + + #### NSPanel boot init buttons + - delay: + milliseconds: 11 + - repeat: + for_each: + - entity: "{{ entity01 }}" + button_label: "{{ entity01_name }}" + button: buttonpage01.button01 + - entity: "{{ entity02 }}" + button_label: "{{ entity02_name }}" + button: buttonpage01.button02 + - entity: "{{ entity03 }}" + button_label: "{{ entity03_name }}" + button: buttonpage01.button03 + - entity: "{{ entity04 }}" + button_label: "{{ entity04_name }}" + button: buttonpage01.button04 + - entity: "{{ entity05 }}" + button_label: "{{ entity05_name }}" + button: buttonpage01.button05 + - entity: "{{ entity06 }}" + button_label: "{{ entity06_name }}" + button: buttonpage01.button06 + - entity: "{{ entity07 }}" + button_label: "{{ entity07_name }}" + button: buttonpage01.button07 + - entity: "{{ entity08 }}" + button_label: "{{ entity08_name }}" + button: buttonpage01.button08 + - entity: "{{ entity09 }}" + button_label: "{{ entity09_name }}" + button: buttonpage02.button01 + - entity: "{{ entity10 }}" + button_label: "{{ entity10_name }}" + button: buttonpage02.button02 + - entity: "{{ entity11 }}" + button_label: "{{ entity11_name }}" + button: buttonpage02.button03 + - entity: "{{ entity12 }}" + button_label: "{{ entity12_name }}" + button: buttonpage02.button04 + - entity: "{{ entity13 }}" + button_label: "{{ entity13_name }}" + button: buttonpage02.button05 + - entity: "{{ entity14 }}" + button_label: "{{ entity14_name }}" + button: buttonpage02.button06 + - entity: "{{ entity15 }}" + button_label: "{{ entity15_name }}" + button: buttonpage02.button07 + - entity: "{{ entity16 }}" + button_label: "{{ entity16_name }}" + button: buttonpage02.button08 + - entity: "{{ entity17 }}" + button_label: "{{ entity17_name }}" + button: buttonpage03.button01 + - entity: "{{ entity18 }}" + button_label: "{{ entity18_name }}" + button: buttonpage03.button02 + - entity: "{{ entity19 }}" + button_label: "{{ entity19_name }}" + button: buttonpage03.button03 + - entity: "{{ entity20 }}" + button_label: "{{ entity20_name }}" + button: buttonpage03.button04 + - entity: "{{ entity21 }}" + button_label: "{{ entity21_name }}" + button: buttonpage03.button05 + - entity: "{{ entity22 }}" + button_label: "{{ entity22_name }}" + button: buttonpage03.button06 + - entity: "{{ entity23 }}" + button_label: "{{ entity23_name }}" + button: buttonpage03.button07 + - entity: "{{ entity24 }}" + button_label: "{{ entity24_name }}" + button: buttonpage03.button08 + - entity: "{{ entity25 }}" + button_label: "{{ entity17_name }}" + button: buttonpage04.button01 + - entity: "{{ entity26 }}" + button_label: "{{ entity26_name }}" + button: buttonpage04.button02 + - entity: "{{ entity27 }}" + button_label: "{{ entity27_name }}" + button: buttonpage04.button03 + - entity: "{{ entity28 }}" + button_label: "{{ entity28_name }}" + button: buttonpage04.button04 + - entity: "{{ entity29 }}" + button_label: "{{ entity29_name }}" + button: buttonpage04.button05 + - entity: "{{ entity30 }}" + button_label: "{{ entity30_name }}" + button: buttonpage04.button06 + - entity: "{{ entity31 }}" + button_label: "{{ entity31_name }}" + button: buttonpage04.button07 + - entity: "{{ entity32 }}" + button_label: "{{ entity32_name }}" + button: buttonpage04.button08 + sequence: + - if: + - condition: template + value_template: '{{ repeat.item.entity|length > 0 }}' + then: + - variables: + component_to_update: "{{ repeat.item.button }}" + # Button PIC + btn_pic: >- + {%- if repeat.item.entity is match "light." and states[repeat.item.entity].state == 'on' -%} {{ button_light_on }} + {%- elif repeat.item.entity is match "light." and states[repeat.item.entity].state == 'off' -%} {{ button_light_off }} + {%- elif repeat.item.entity is match "switch." and states[repeat.item.entity].state == 'on' -%} {{ button_switch_on }} + {%- elif repeat.item.entity is match "switch." and states[repeat.item.entity].state == 'off' -%} {{ button_switch_off }} + {%- elif repeat.item.entity is match "input_boolean." and states[repeat.item.entity].state == 'on' -%} {{ button_switch_on }} + {%- elif repeat.item.entity is match "input_boolean." and states[repeat.item.entity].state == 'off' -%} {{ button_switch_off }} + {%- elif repeat.item.entity is match "cover." and states[repeat.item.entity].state == 'on' -%} {{ button_cover_on }} + {%- elif repeat.item.entity is match "cover." and states[repeat.item.entity].state == 'off' -%} {{ button_cover_off }} + {%- endif -%} + # TEXT and BRIGHTNESS Background + btn_bg: >- + {%- if states[repeat.item.entity].state == 'on' or states[repeat.item.entity].state == 'open' -%} {{ button_color_1 }} + {%- elif states[repeat.item.entity].state == 'off' or states[repeat.item.entity].state == 'closed' -%} {{ button_color_2 }} + {%- endif -%} + # TEXT Font + btn_txt_font: >- + {%- if states[repeat.item.entity].state == 'on' or states[repeat.item.entity].state == 'open' -%} {{ button_color_2 }} + {%- elif states[repeat.item.entity].state == 'off' or states[repeat.item.entity].state == 'closed' -%} {{ button_color_1 }} + {%- endif -%} + # BRIGHTNESS Font + btn_bri_font: "{{ button_color_2 }}" + # BTN Label + btn_label: "{{ repeat.item.button_label }}" + btn_bri_txt: >- + {%- if repeat.item.entity is match "light." and states(repeat.item.entity) == 'on' and state_attr(repeat.item.entity, "brightness") != None -%} {{ (state_attr(repeat.item.entity, "brightness") | int(255) * 100 /254) | round(0) }}% + {%- elif repeat.item.entity is match "cover." and states(repeat.item.entity) == 'open' and state_attr(repeat.item.entity, "current_position") != None -%} {{ (state_attr(repeat.item.entity, "current_position") | int(100)) | round(0) }}% + {%- else -%} 0 + {%- endif -%} + + ##### SET Buttons #### + # + ##### Button PIC ##### + - service: "{{ command_printf }}" + data: + cmd: "{{ component_to_update }}pic.pic={{ btn_pic }}" + ##### TEXT Background ##### + - delay: + milliseconds: 11 + - service: "{{ command_background_color }}" + data: + component: "{{ component_to_update }}text" + message: "{{ btn_bg }}" + ##### TEXT Font Color ##### + - delay: + milliseconds: 11 + - service: "{{ command_font_color }}" + data: + component: "{{ component_to_update }}text" + message: "{{ btn_txt_font }}" + ##### BRIGHTNESS Background Color ##### + - delay: + milliseconds: 11 + - service: "{{ command_background_color }}" + data: + component: "{{ component_to_update }}bri" + message: "{{ btn_bg }}" + ##### BRIGHTNESS Font Color ##### + - delay: + milliseconds: 11 + - service: "{{ command_font_color }}" + data: + component: "{{ component_to_update }}bri" + message: "{{ btn_bri_font }}" + ##### "TEXT" Label ##### + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: "{{ component_to_update }}text" + message: "{{ btn_label }}" + ##### "BRIGHTNESS" Text ##### + - delay: + milliseconds: 11 + - if: + - condition: template + value_template: "{{ btn_bri_txt == 0 }}" + then: + - service: "{{ command_text_printf }}" + data: + component: "{{ component_to_update }}bri" + message: " " + else: + - service: "{{ command_text_printf }}" + data: + component: "{{ component_to_update }}bri" + message: "{{ btn_bri_txt }}" + + #### NSPanel boot init weather + - choose: + #### Default weather + - conditions: + - condition: template + value_template: '{{ weather == "Default" }}' + sequence: + - if: + - condition: template + value_template: "{{states(ha_weather) == 'sunny'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=2 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'cloudy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=3 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'rainy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=4 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'pouring'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=5 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'snowy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=6 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'hail'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=7 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'snowy-rainy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=7 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'fog'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=8 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'windy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=9 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'windy-variant'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=9 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'lightning'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=10 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'above_horizon' }}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=11 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'below_horizon' }}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=12 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'above_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=13 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'execptional' and states('sun.sun') == 'above_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=13 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'execptional' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'clear-night'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=15 + + ##### Weather Forcast Today Symbole Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[0].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=15 + + ##### Weather Forcast Day 1 Symbole Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[1].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=15 + + ##### Weather Forcast Day 2 Symbole Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[2].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=15 + + ##### Weather Forcast Day 3 Symbole Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[3].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=15 + + ##### Weather Forcast Day 4 Symbole Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(ha_weather,"forecast")[4].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=15 + + ##### Weather Forcast Today "TEMP" Home Meteorologisk HA Default ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a04 ### Temperature MIN ### + message: " " + - service: "{{ command_text_printf }}" + data: + component: weather01.a05 ### Temperature MAX ### + message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' + + ##### Weather Forcast Day 1 "TEMP" Home Meteorologisk HA Default ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a04 ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[1].templow | round(0)}}°' + - service: "{{ command_text_printf }}" + data: + component: weather02.a05 ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°' + + ##### Weather Forcast Day 2 "TEMP" Home Meteorologisk HA Default ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a04 ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[2].templow | round(0)}}°' + - service: "{{ command_text_printf }}" + data: + component: weather03.a05 ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°' + + ##### Weather Forcast Day 3 "TEMP" Home Meteorologisk HA Default ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a04 ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[3].templow | round(0)}}°' + - service: "{{ command_text_printf }}" + data: + component: weather04.a05 ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°' + + ##### Weather Forcast Day 4 "TEMP" Home Meteorologisk HA Default ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a04 ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[4].templow | round(0)}}°' + - service: "{{ command_text_printf }}" + data: + component: weather05.a05 ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[4].temperature | round(0)}}°' + + #### Accuweather + - conditions: + - condition: template + value_template: '{{ weather == "AccuWeather" }}' + sequence: + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'sunny'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=2 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'cloudy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=3 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'rainy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=4 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'pouring'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=5 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'snowy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=6 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'hail'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=7 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'snowy-rainy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=7 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'fog'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=8 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'windy'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=9 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'windy-variant'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=9 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'lightning'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=10 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'partlycloudy' and states('sun.sun') == 'above_horizon' }}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=11 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'partlycloudy' and states('sun.sun') == 'below_horizon' }}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=12 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'lightning-rainy' and states('sun.sun') == 'above_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=13 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'lightning-rainy' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'execptional' and states('sun.sun') == 'above_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=13 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'execptional' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'clear-night'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=15 + + ##### Weather Forcast Today Symbole "AccuWeather" ##### + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[0].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather01.a03.pic=15 + + ##### Weather Forcast Day 1 Symbole "AccuWeather" ##### + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[1].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather02.a03.pic=15 + + ##### Weather Forcast Day 2 Symbole "AccuWeather" ##### + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[2].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather03.a03.pic=15 + + ##### Weather Forcast Day 3 Symbole "AccuWeather" ##### + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[3].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather04.a03.pic=15 + + ##### Weather Forcast Day 4 Symbole "AccuWeather" ##### + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''sunny''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=2 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''cloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=3 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=4 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''pouring''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=5 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''snowy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=6 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''hail''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''snowy-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=7 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''fog''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=8 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''windy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''windy-variant''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=9 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''lightning''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=10 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''partlycloudy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=11 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''lightning-rainy''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''execptional''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=13 + - if: + - condition: template + value_template: + '{{state_attr(accuweather_home,"forecast")[4].condition + == ''clear-night''}}' + then: + - service: "{{ command_printf }}" + data: + cmd: weather05.a03.pic=15 + + ##### Weather Forcast Today "TEMP" "AccuWeather" ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a04 ### Temperature MIN ### + message: "{{states(accuweather_realfeel_temperature_min_0d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: weather01.a05 ### Temperature MAX ### + message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + + ##### Weather Forcast Day 1 "TEMP" "AccuWeather" ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a04 ### Temperature MIN ### + message: "{{states(accuweather_realfeel_temperature_min_1d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: weather02.a05 ### Temperature MAX ### + message: "{{states(accuweather_realfeel_temperature_max_1d) | round(0)}}°" + + ##### Weather Forcast Day 2 "TEMP" "AccuWeather" ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a04 ### Temperature MIN ### + message: "{{states(accuweather_realfeel_temperature_min_2d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: weather03.a05 ### Temperature MAX ### + message: "{{states(accuweather_realfeel_temperature_max_2d) | round(0)}}°" + + ##### Weather Forcast Day 3 "TEMP" "AccuWeather" ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a04 ### Temperature MIN ### + message: "{{states(accuweather_realfeel_temperature_min_3d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: weather04.a05 ### Temperature MAX ### + message: "{{states(accuweather_realfeel_temperature_max_3d) | round(0)}}°" + + ##### Weather Forcast Day 4 "TEMP" "AccuWeather" ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a04 ### Temperature MIN ### + message: "{{states(accuweather_realfeel_temperature_min_4d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: weather05.a05 ### Temperature MAX ### + message: "{{states(accuweather_realfeel_temperature_max_4d) | round(0)}}°" + + + #### NSPanel boot init entities + ### Time + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a01 + message: "{{ time }}" + ### Humidity + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a04 + message: "{{ states(humidity) |round(0) }}%" + ### Hotwater + - if: + - condition: template + value_template: '{{ hotwatertemp is match "sensor." }}' + then: + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a07 + message: "{{ states(hotwatertemp) |round(1) }}°" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: thermostat.a08 + message: "{{ states(hotwatertemp) |round(1) }}°" + - delay: + milliseconds: 11 + - service: "{{ command_printf }}" + data: + cmd: home.p01.pic=68 + ### Outdoor Temp + - choose: + ### Outdoor Temp Entity + - conditions: + - condition: template + value_template: '{{ outdoortemp is match "sensor." }}' + sequence: + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a06 + message: "{{ states(outdoortemp) |round(0) }}°" + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: thermostat.a07 + message: "{{ states(outdoortemp) |round(0) }}°" + ### Outdoor Temp Default + - conditions: + - condition: template + value_template: '{{ outdoortemp == "default" }}' + sequence: + ### Outdoor Temp Default + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: home.a06 + message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' + - delay: + milliseconds: 11 + - service: "{{ command_text_printf }}" + data: + component: thermostat.a07 + message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' + ### Outdoor TempAccuweather + - conditions: + - condition: template + value_template: '{{ outdoortemp == "accuweather" }}' + sequence: + ### Outdoor TempAccuweather + - service: "{{ command_text_printf }}" + data: + component: home.a06 + message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: thermostat.a07 + message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + + #### NSPanel boot init finished + - delay: + milliseconds: 11 - service: "{{ command_text_printf }}" data: component: home.loading message: " " - ##### language Setting DE ##### - - choose: - - conditions: - - condition: trigger - id: nspanel_boot_language - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - - service: "{{ command_text_printf }}" - data: - component: weather01.a01 - message: Heute - - service: "{{ command_text_printf }}" - data: - component: weather02.a01 - message: Morgen - - service: "{{ command_text_printf }}" - data: - component: weather03.a01 - message: in 2 Tagen - - service: "{{ command_text_printf }}" - data: - component: weather04.a01 - message: in 3 Tagen - - service: "{{ command_text_printf }}" - data: - component: weather05.a01 - message: in 4 Tagen - - service: "{{ command_text_printf }}" - data: - component: settings.a06 - message: Neustart - - service: "{{ command_text_printf }}" - data: - component: settings.a07 - message: Sleep - - service: "{{ command_text_printf }}" - data: - component: settings.a08 - message: Helligkeit - - service: "{{ command_text_printf }}" - data: - component: settings.a09 - message: Dimmen - - service: "{{ command_text_printf }}" - data: - component: coversettings.a07 - message: Rollo - - service: "{{ command_text_printf }}" - data: - component: coversettings.a08 - message: Position - - service: "{{ command_text_printf }}" - data: - component: lightsettings.a07 - message: Licht - - service: "{{ command_text_printf }}" - data: - component: lightsettings.a08 - message: Helligkeit - - ##### language Setting EN ##### - - choose: - - conditions: - - condition: trigger - id: nspanel_boot_language - - 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 - ##### Date Home Page + Forcast DE ##### - choose: - conditions: - condition: trigger id: - - nspanel_boot_language + # - nspanel_boot_language - time_state - condition: template value_template: '{{ language == "DE" }}' @@ -1792,7 +3860,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_language + # - nspanel_boot_language - time_state - condition: template value_template: '{{ language == "EN" }}' @@ -1827,7 +3895,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_entities + # - nspanel_boot_entities - time_state sequence: - service: "{{ command_text_printf }}" @@ -2434,7 +4502,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_entities + # - nspanel_boot_entities - humidity_state sequence: - service: "{{ command_text_printf }}" @@ -2447,7 +4515,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_entities + # - nspanel_boot_entities - hotwatertemp_state - condition: template value_template: '{{ hotwatertemp is match "sensor." }}' @@ -2469,7 +4537,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_entities + # - nspanel_boot_entities - outdoortemp_state - condition: template value_template: '{{ outdoortemp is match "sensor." }}' @@ -2488,7 +4556,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_entities + # - nspanel_boot_entities - weather_update_time - condition: template value_template: '{{ outdoortemp == "default" }}' @@ -2507,7 +4575,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_entities + # - nspanel_boot_entities - weather_update_time - condition: template value_template: '{{ outdoortemp == "accuweather" }}' @@ -2536,10217 +4604,6 @@ action: ## # ############################################################# - ##### START - HA Button SYNC ##### - ############################################################# - # - # - ######################################### - - - - - - ################################################################################ - ####### buttonpage01.button01 ################################################################# - ################################################################################ - - choose: - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity01 - sequence: - ##### buttonpage01.button01 Design Light OFF ##### - - if: - - condition: template - value_template: '{{ entity01 is match "light." and states(entity01) == "off" }}' - then: - ##### Button LIGHT PIC - OFF ##### - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button01pic.pic={{ button_light_off }} - ##### "TEXT" Background - Light OFF ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_2 }}" - ##### "TEXT" Font Color - Light OFF ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_1 }}" - ##### "BRIGHTNESS" Background Color - Light OFF ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### "BRIGHTNESS" Font Color - Light OFF ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### "TEXT" Name - Light OFF ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01text - message: "{{ entity01_name }}" - ##### "BRIGHTNESS" Text - Light OFF ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01bri - message: " " - - - - ##### buttonpage01.button01 Design light ON ##### - - if: - - condition: template - value_template: '{{ entity01 is match "light." and states(entity01) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button01 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity01 is match "switch." and states(entity01) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity01 is match "switch." and states(entity01) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity01 is match "input_boolean." and states(entity01) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity01 is match "input_boolean." and states(entity01) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity01 is match "cover." and states(entity01) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity01 is match "cover." and states(entity01) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - - ################################################################################ - ####### buttonpage01.button02 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button02 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity02 - sequence: - - if: - - condition: template - value_template: '{{ entity02 is match "light." and states(entity02) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity02 is match "light." and states(entity02) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button02 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity02 is match "switch." and states(entity02) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity02 is match "switch." and states(entity02) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity02 is match "input_boolean." and states(entity02) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity02 is match "input_boolean." and states(entity02) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity02 is match "cover." and states(entity02) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity02 is match "cover." and states(entity02) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage01.button03 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button03 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity03 - sequence: - - if: - - condition: template - value_template: '{{ entity03 is match "light." and states(entity03) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity03 is match "light." and states(entity03) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button03 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity03 is match "switch." and states(entity03) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity03 is match "switch." and states(entity03) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity03 is match "input_boolean." and states(entity03) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity03 is match "input_boolean." and states(entity03) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity03 is match "cover." and states(entity03) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity03 is match "cover." and states(entity03) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage01.button04 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button04 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity04 - sequence: - - if: - - condition: template - value_template: '{{ entity04 is match "light." and states(entity04) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity04 is match "light." and states(entity04) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button04 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity04 is match "switch." and states(entity04) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity04 is match "switch." and states(entity04) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity04 is match "input_boolean." and states(entity04) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity04 is match "input_boolean." and states(entity04) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity04 is match "cover." and states(entity04) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity04 is match "cover." and states(entity04) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage01.button05 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button05 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity05 - sequence: - - if: - - condition: template - value_template: '{{ entity05 is match "light." and states(entity05) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity05 is match "light." and states(entity05) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button05 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity05 is match "switch." and states(entity05) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity05 is match "switch." and states(entity05) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity05 is match "input_boolean." and states(entity05) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity05 is match "input_boolean." and states(entity05) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity05 is match "cover." and states(entity05) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity05 is match "cover." and states(entity05) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage01.button06 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button06 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity06 - sequence: - - if: - - condition: template - value_template: '{{ entity06 is match "light." and states(entity06) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity06 is match "light." and states(entity06) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button06 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity06 is match "switch." and states(entity06) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity06 is match "switch." and states(entity06) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity06 is match "input_boolean." and states(entity06) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity06 is match "input_boolean." and states(entity06) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity06 is match "cover." and states(entity06) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity06 is match "cover." and states(entity06) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage01.button07 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button07 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity07 - sequence: - - if: - - condition: template - value_template: '{{ entity07 is match "light." and states(entity07) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity07 is match "light." and states(entity07) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button07 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity07 is match "switch." and states(entity07) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity07 is match "switch." and states(entity07) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity07 is match "input_boolean." and states(entity07) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity07 is match "input_boolean." and states(entity07) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity07 is match "cover." and states(entity07) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity07 is match "cover." and states(entity07) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage01.button08 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage01.button08 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage01 - # - current_state_entity08 - sequence: - - if: - - condition: template - value_template: '{{ entity08 is match "light." and states(entity08) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity08 is match "light." and states(entity08) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage01.button08 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity08 is match "switch." and states(entity08) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity08 is match "switch." and states(entity08) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity08 is match "input_boolean." and states(entity08) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity08 is match "input_boolean." and states(entity08) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity08 is match "cover." and states(entity08) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity08 is match "cover." and states(entity08) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ######################################################################################################################## - - ################################################################################ - ####### buttonpage02.button01 ################################################################# - ################################################################################ - - choose: - ##### buttonpage02.button01 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity09 - sequence: - - if: - - condition: template - value_template: '{{ entity09 is match "light." and states(entity09) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity09 is match "light." and states(entity09) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button01 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity09 is match "switch." and states(entity09) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity09 is match "switch." and states(entity09) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity09 is match "input_boolean." and states(entity09) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity09 is match "input_boolean." and states(entity09) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity09 is match "cover." and states(entity09) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity09 is match "cover." and states(entity09) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button02 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button02 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity10 - sequence: - - if: - - condition: template - value_template: '{{ entity10 is match "light." and states(entity10) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity10 is match "light." and states(entity10) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button02 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity10 is match "switch." and states(entity10) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity10 is match "switch." and states(entity10) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity10 is match "input_boolean." and states(entity10) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity10 is match "input_boolean." and states(entity10) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity10 is match "cover." and states(entity10) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity10 is match "cover." and states(entity10) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button03 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button03 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity11 - sequence: - - if: - - condition: template - value_template: '{{ entity11 is match "light." and states(entity11) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity11 is match "light." and states(entity11) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button03 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity11 is match "switch." and states(entity11) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity11 is match "switch." and states(entity11) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity11 is match "input_boolean." and states(entity11) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity11 is match "input_boolean." and states(entity11) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity11 is match "cover." and states(entity11) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity11 is match "cover." and states(entity11) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button04 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button04 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity12 - sequence: - - if: - - condition: template - value_template: '{{ entity12 is match "light." and states(entity12) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity12 is match "light." and states(entity12) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button04 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity12 is match "switch." and states(entity12) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity12 is match "switch." and states(entity12) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity12 is match "input_boolean." and states(entity12) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity12 is match "input_boolean." and states(entity12) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity12 is match "cover." and states(entity12) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity12 is match "cover." and states(entity12) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button05 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button05 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity13 - sequence: - - if: - - condition: template - value_template: '{{ entity13 is match "light." and states(entity13) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity13 is match "light." and states(entity13) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button05 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity13 is match "switch." and states(entity13) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity13 is match "switch." and states(entity13) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity13 is match "input_boolean." and states(entity13) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity13 is match "input_boolean." and states(entity13) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity13 is match "cover." and states(entity13) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity13 is match "cover." and states(entity13) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button06 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button06 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity14 - sequence: - - if: - - condition: template - value_template: '{{ entity14 is match "light." and states(entity14) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity14 is match "light." and states(entity14) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button06 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity14 is match "switch." and states(entity14) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity14 is match "switch." and states(entity14) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity14 is match "input_boolean." and states(entity14) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity14 is match "input_boolean." and states(entity14) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity14 is match "cover." and states(entity14) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity14 is match "cover." and states(entity14) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button07 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button07 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity15 - sequence: - - if: - - condition: template - value_template: '{{ entity15 is match "light." and states(entity15) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity15 is match "light." and states(entity15) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button07 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity15 is match "switch." and states(entity15) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity15 is match "switch." and states(entity15) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity15 is match "input_boolean." and states(entity15) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity15 is match "input_boolean." and states(entity15) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity15 is match "cover." and states(entity15) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity15 is match "cover." and states(entity15) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage02.button08 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage02.button08 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage02 - # - current_state_entity16 - sequence: - - if: - - condition: template - value_template: '{{ entity16 is match "light." and states(entity16) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity16 is match "light." and states(entity16) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage02.button08 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity16 is match "switch." and states(entity16) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity16 is match "switch." and states(entity16) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity16 is match "input_boolean." and states(entity16) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity16 is match "input_boolean." and states(entity16) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity16 is match "cover." and states(entity16) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity16 is match "cover." and states(entity16) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ######################################################################################################################## - - ################################################################################ - ####### buttonpage03.button01 ################################################################# - ################################################################################ - - choose: - ##### buttonpage03.button01 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity17 - sequence: - - if: - - condition: template - value_template: '{{ entity17 is match "light." and states(entity17) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity17 is match "light." and states(entity17) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button01 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity17 is match "switch." and states(entity17) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity17 is match "switch." and states(entity17) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity17 is match "input_boolean." and states(entity17) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity17 is match "input_boolean." and states(entity17) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity17 is match "cover." and states(entity17) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity17 is match "cover." and states(entity17) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button02 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button02 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity18 - sequence: - - if: - - condition: template - value_template: '{{ entity18 is match "light." and states(entity18) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity18 is match "light." and states(entity18) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button02 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity18 is match "switch." and states(entity18) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity18 is match "switch." and states(entity18) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity18 is match "input_boolean." and states(entity18) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity18 is match "input_boolean." and states(entity18) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity18 is match "cover." and states(entity18) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity18 is match "cover." and states(entity18) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button03 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button03 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity19 - sequence: - - if: - - condition: template - value_template: '{{ entity19 is match "light." and states(entity19) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity19 is match "light." and states(entity19) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button03 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity19 is match "switch." and states(entity19) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity19 is match "switch." and states(entity19) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity19 is match "input_boolean." and states(entity19) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity19 is match "input_boolean." and states(entity19) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity19 is match "cover." and states(entity19) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity19 is match "cover." and states(entity19) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button04 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button04 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity20 - sequence: - - if: - - condition: template - value_template: '{{ entity20 is match "light." and states(entity20) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity20 is match "light." and states(entity20) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button04 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity20 is match "switch." and states(entity20) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity20 is match "switch." and states(entity20) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity20 is match "input_boolean." and states(entity20) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity20 is match "input_boolean." and states(entity20) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity20 is match "cover." and states(entity20) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity20 is match "cover." and states(entity20) == "open" }}' - then: - - 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,"current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button05 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button05 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity21 - sequence: - - if: - - condition: template - value_template: '{{ entity21 is match "light." and states(entity21) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity21 is match "light." and states(entity21) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button05 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity21 is match "switch." and states(entity21) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity21 is match "switch." and states(entity21) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity21 is match "input_boolean." and states(entity21) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity21 is match "input_boolean." and states(entity21) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity21 is match "cover." and states(entity21) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity21 is match "cover." and states(entity21) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button06 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button06 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity22 - sequence: - - if: - - condition: template - value_template: '{{ entity22 is match "light." and states(entity22) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity22 is match "light." and states(entity22) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button06 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity22 is match "switch." and states(entity22) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity22 is match "switch." and states(entity22) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity22 is match "input_boolean." and states(entity22) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity22 is match "input_boolean." and states(entity22) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity22 is match "cover." and states(entity22) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity22 is match "cover." and states(entity22) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button07 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button07 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity23 - sequence: - - if: - - condition: template - value_template: '{{ entity23 is match "light." and states(entity23) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity23 is match "light." and states(entity23) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button07 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity23 is match "switch." and states(entity23) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity23 is match "switch." and states(entity23) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity23 is match "input_boolean." and states(entity23) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity23 is match "input_boolean." and states(entity23) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity23 is match "cover." and states(entity23) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity23 is match "cover." and states(entity23) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage03.button08 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage03.button08 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage03 - # - current_state_entity24 - sequence: - - if: - - condition: template - value_template: '{{ entity24 is match "light." and states(entity24) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity24 is match "light." and states(entity24) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage03.button08 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity24 is match "switch." and states(entity24) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity24 is match "switch." and states(entity24) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity24 is match "input_boolean." and states(entity24) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity24 is match "input_boolean." and states(entity24) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity24 is match "cover." and states(entity24) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity24 is match "cover." and states(entity24) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ######################################################################################################################## - - ################################################################################ - ####### buttonpage04.button01 ################################################################# - ################################################################################ - - choose: - ##### buttonpage04.button01 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity25 - sequence: - - if: - - condition: template - value_template: '{{ entity25 is match "light." and states(entity25) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity25 is match "light." and states(entity25) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button01 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity25 is match "switch." and states(entity25) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity25 is match "switch." and states(entity25) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity25 is match "input_boolean." and states(entity25) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity25 is match "input_boolean." and states(entity25) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity25 is match "cover." and states(entity25) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity25 is match "cover." and states(entity25) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button02 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button02 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity26 - sequence: - - if: - - condition: template - value_template: '{{ entity26 is match "light." and states(entity26) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity26 is match "light." and states(entity26) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button02 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity26 is match "switch." and states(entity26) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity26 is match "switch." and states(entity26) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity26 is match "input_boolean." and states(entity26) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity26 is match "input_boolean." and states(entity26) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity26 is match "cover." and states(entity26) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity26 is match "cover." and states(entity26) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button03 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button03 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity27 - sequence: - - if: - - condition: template - value_template: '{{ entity27 is match "light." and states(entity27) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity27 is match "light." and states(entity27) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button03 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity27 is match "switch." and states(entity27) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity27 is match "switch." and states(entity27) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity27 is match "input_boolean." and states(entity27) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity27 is match "input_boolean." and states(entity27) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity27 is match "cover." and states(entity27) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity27 is match "cover." and states(entity27) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button04 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button04 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity28 - sequence: - - if: - - condition: template - value_template: '{{ entity28 is match "light." and states(entity28) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity28 is match "light." and states(entity28) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button04 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity28 is match "switch." and states(entity28) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity28 is match "switch." and states(entity28) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity28 is match "input_boolean." and states(entity28) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity28 is match "input_boolean." and states(entity28) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity28 is match "cover." and states(entity28) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity28 is match "cover." and states(entity28) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button05 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button05 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity29 - sequence: - - if: - - condition: template - value_template: '{{ entity29 is match "light." and states(entity29) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity29 is match "light." and states(entity29) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button05 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity29 is match "switch." and states(entity29) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity29 is match "switch." and states(entity29) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity29 is match "input_boolean." and states(entity29) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity29 is match "input_boolean." and states(entity29) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity29 is match "cover." and states(entity29) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity29 is match "cover." and states(entity29) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button06 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button06 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity30 - sequence: - - if: - - condition: template - value_template: '{{ entity30 is match "light." and states(entity30) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity30 is match "light." and states(entity30) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button06 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity30 is match "switch." and states(entity30) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity30 is match "switch." and states(entity30) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity30 is match "input_boolean." and states(entity30) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity30 is match "input_boolean." and states(entity30) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity30 is match "cover." and states(entity30) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity30 is match "cover." and states(entity30) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button07 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button07 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity31 - sequence: - - if: - - condition: template - value_template: '{{ entity31 is match "light." and states(entity31) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity31 is match "light." and states(entity31) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button07 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity31 is match "switch." and states(entity31) == "off" }}' - then: - - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity31 is match "switch." and states(entity31) == "on" }}' - then: - - 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 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity31 is match "input_boolean." and states(entity31) == "off" }}' - then: - - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity31 is match "input_boolean." and states(entity31) == "on" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity31 is match "cover." and states(entity31) == "closed" }}' - then: - - 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 ##### - - if: - - condition: template - value_template: '{{ entity31 is match "cover." and states(entity31) == "open" }}' - then: - - 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, "current_position") | int ) |round(0) }}%' - - ################################################################################ - ####### buttonpage04.button08 ######################################################################################## - ################################################################################ - - choose: - ##### buttonpage04.button08 Light OFF ##### - - conditions: - - condition: trigger - id: - - nspanel_boot_buttonpage04 - # - current_state_entity32 - sequence: - - if: - - condition: template - value_template: '{{ entity32 is match "light." and states(entity32) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity32 is match "light." and states(entity32) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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) }}%' - - ##### buttonpage04.button08 Switch OFF ##### - - if: - - condition: template - value_template: '{{ entity32 is match "switch." and states(entity32) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ON ##### - - if: - - condition: template - value_template: '{{ entity32 is match "switch." and states(entity32) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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: " " - - ##### buttonpage04.button08 Input Boolean OFF ##### - - if: - - condition: template - value_template: '{{ entity32 is match "input_boolean." and states(entity32) == "off" }}' - then: - - service: "{{ command_printf }}" - data: - 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 Input Boolean ON ##### - - if: - - condition: template - value_template: '{{ entity32 is match "input_boolean." and states(entity32) == "on" }}' - then: - - service: "{{ command_printf }}" - data: - 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: " " - - ##### buttonpage04.button08 Cover OFF ##### - - if: - - condition: template - value_template: '{{ entity32 is match "cover." and states(entity32) == "closed" }}' - then: - - service: "{{ command_printf }}" - data: - 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 ##### - - if: - - condition: template - value_template: '{{ entity32 is match "cover." and states(entity32) == "open" }}' - then: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button08pic.pic={{ button_cover_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, "current_position") | int ) |round(0) }}%' - - ######################################### - # - # - ############################################################# - ##### CLOSE - HA Button SYNC ##### - ############################################################# - # - ## - ### - ############################################################################################################################################################################################# - ### - ## - # - ############################################################# ##### START - Weather Forcast Meteorologisk HA Default ##### ############################################################# # @@ -12756,7 +4613,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_weather + # - nspanel_boot_weather - weather_update_state - weather_update_time - condition: template @@ -13890,7 +5747,7 @@ action: - conditions: - condition: trigger id: - - nspanel_boot_weather + # - nspanel_boot_weather - weather_update_state - weather_update_time - condition: template