diff --git a/BETA Version/BETA_blueprint.yaml b/BETA Version/BETA_blueprint.yaml index 58e4d6d..00c2d12 100644 --- a/BETA Version/BETA_blueprint.yaml +++ b/BETA Version/BETA_blueprint.yaml @@ -843,6 +843,86 @@ variables: ######################################### trigger: + ##### TFT Upload ##### + - platform: event + event_type: folder_watcher + event_data: + event_type: modified + path: !input "tft_path" + id: tft_upload + + #### NSPanel boot Step 0 - Start #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + id: nspanel_boot_start + + #### NSPanel boot Step 1 - Language #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 5 + id: nspanel_boot_language + + #### NSPanel boot Step 2 - Buttonpage 1 #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 10 + id: nspanel_boot_buttonpage01 + + #### NSPanel boot Step 3 - Buttonpage 2 #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 15 + id: nspanel_boot_buttonpage02 + + #### NSPanel boot Step 4 - Buttonpage 3 #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 20 + id: nspanel_boot_buttonpage03 + + #### NSPanel boot Step 5 - Buttonpage 4 #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 25 + id: nspanel_boot_buttonpage04 + + #### NSPanel boot Step 6 - Weather #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 30 + id: nspanel_boot_weather + + #### NSPanel boot Step 7 - Entities #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 35 + id: nspanel_boot_entities + + #### NSPanel boot Step 8 - Entities #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 50 + id: nspanel_boot_finish + +######################################################################################################################## + ##### Page Button - Trigger ##### - platform: event event_type: state_changed @@ -871,63 +951,27 @@ trigger: entity_id: "{{ last_click_coversettings }}" id: cover_settings - ##### TFT Upload ##### - - platform: event - event_type: folder_watcher - event_data: - event_type: modified - path: !input "tft_path" - id: tft_upload - ##### Page Button Entity sync - Trigger ##### - platform: template value_template: '{{ states(last_click) is match "button" }}' id: button_page - #### NSPanel boot - Trigger #### - # - platform: event - # event_type: state_changed - # event_data: - # entity_id: "{{ nextion_inited }}" - # to: 'on' - # for: - # seconds: 5 - # id: nspanel_boot - #### NSPanel boot Step 1 - Trigger #### - - platform: state - entity_id: !input "nextion_inited" - to: "on" - for: - seconds: 5 - id: nspanel_boot_step1 - #### NSPanel boot Step 2 - Trigger #### - - platform: state - entity_id: !input "nextion_inited" - to: "on" - for: - seconds: 10 - id: nspanel_boot_step2 - #### NSPanel boot Step 3 - Trigger #### - - platform: state - entity_id: !input "nextion_inited" - to: "on" - for: - seconds: 15 - id: nspanel_boot_step3 - #### NSPanel boot Step 4 - Trigger #### - - platform: state - entity_id: !input "nextion_inited" - to: "on" - for: - seconds: 20 - id: nspanel_boot_step4 - #### NSPanel boot Step 5 - Trigger #### - - platform: state - entity_id: !input "nextion_inited" - to: "on" - for: - seconds: 25 - id: nspanel_boot_step5 +######################################################################################################################## + + ##### Time - Trigger ##### + - platform: time_pattern + minutes: "/1" + id: time_state + + #### Weather State - Trigger #### + - platform: template + value_template: '{{ states(last_click) is match "weather" }}' + id: weather_update_state + + #### Weather Time - Trigger #### + - platform: time_pattern + minutes: "10" + id: weather_update_time ##### Humidity - Trigger ##### - platform: event @@ -950,28 +994,17 @@ trigger: entity_id: !input "outdoortemp" id: outdoortemp_state - ##### Time - Trigger ##### - - platform: time_pattern - minutes: "/1" - id: time_state - - #### Weather - Trigger #### - - platform: template - value_template: '{{ states(last_click) is match "weather" }}' - id: weather_update - # - platform: time_pattern - # minutes: "10" - # id: weather_update - ##### Left Button - Trigger ##### - - platform: template - value_template: '{{ left_button == "on" }}' - id: left_button_press +# - platform: template +# value_template: '{{ states(left_button) == "on" }}' +# id: left_button_press ##### Right Button - Trigger ##### - - platform: template - value_template: '{{ states(right_button) == "on" }}' - id: right_button_press +# - platform: template +# value_template: '{{ states(right_button) == "on" }}' +# id: right_button_press + +######################################################################################################################## ##### Button01 Sync - Trigger ##### - platform: state @@ -1262,6 +1295,237 @@ action: {%- elif states(last_click) == "pressbuttonpage04button08" -%} {{ "page buttonpage04" }} {%- endif -%} +######################################################################################################################## + + ##### NSPanel Loading##### + - choose: + - conditions: + - condition: trigger + id: nspanel_boot_start + sequence: + - service: "{{ command_text_printf }}" + data: + component: home.loading + message: "Loading - PLS WAIT!" + + ##### NSPanel Loading##### + - choose: + - conditions: + - condition: trigger + id: nspanel_boot_finish + sequence: + - 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 + - time_state + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: home.a02 + message: "{{ date0_de }}" + - service: "{{ command_text_printf }}" + data: + component: weather01.a02 + message: "{{ date0_de }}" + - service: "{{ command_text_printf }}" + data: + component: weather02.a02 + message: "{{ date1_de }}" + - service: "{{ command_text_printf }}" + data: + component: weather03.a02 + message: "{{ date2_de }}" + - service: "{{ command_text_printf }}" + data: + component: weather04.a02 + message: "{{ date3_de }}" + - service: "{{ command_text_printf }}" + data: + component: weather05.a02 + message: "{{ date4_de }}" + + ##### Date Home Page + Forcast EN ##### + - choose: + - conditions: + - condition: trigger + id: + - nspanel_boot_language + - time_state + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: home.a02 + message: "{{ date0_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather01.a02 + message: "{{ date0_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather02.a02 + message: "{{ date1_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather03.a02 + message: "{{ date2_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather04.a02 + message: "{{ date3_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather05.a02 + message: "{{ date4_de }}" + + ##### Time Home Page Loading##### + - choose: + - conditions: + - condition: trigger + id: + - nspanel_boot_entities + - time_state + sequence: + - service: "{{ command_text_printf }}" + data: + component: home.a01 + message: "{{ time }}" + +######################################################################################################################## + ##### Page Button - SHORT Press - Toggle ##### - choose: - conditions: @@ -1475,43 +1739,7 @@ action: data: cmd: "{{ entity_back }}" - ##### Left Button - Toggle ##### - - choose: - - conditions: - - condition: trigger - id: left_button_press - sequence: - - service: >- - {% if left_button_entity is match 'light.' %} - light.toggle - {% elif left_button_entity is match 'switch.' %} - switch.toggle - {% elif left_button_entity is match 'cover.' %} - cover.toggle - {% elif left_button_entity is match 'input_boolean.' %} - input_boolean.toggle - {% endif %} - data: - entity_id: "{{ left_button_entity }}" - - ##### Right Button - Toggle ##### - - choose: - - conditions: - - condition: trigger - id: right_button_press - sequence: - - service: >- - {% if right_button_entity is match 'light.' %} - light.toggle - {% elif right_button_entity is match 'switch.' %} - switch.toggle - {% elif right_button_entity is match 'cover.' %} - cover.toggle - {% elif right_button_entity is match 'input_boolean.' %} - input_boolean.toggle - {% endif %} - data: - entity_id: "{{ right_button_entity }}" +######################################################################################################################## ##### TFT Upload Automation ##### - choose: @@ -1529,8 +1757,8 @@ action: - conditions: - condition: trigger id: + - nspanel_boot_entities - humidity_state - - nspanel_boot_step5 sequence: - service: "{{ command_text_printf }}" data: @@ -1542,8 +1770,8 @@ action: - conditions: - condition: trigger id: + - nspanel_boot_entities - hotwatertemp_state - - nspanel_boot_step5 - condition: template value_template: '{{ hotwatertemp is match "sensor." }}' sequence: @@ -1564,9 +1792,8 @@ action: - conditions: - condition: trigger id: + - nspanel_boot_entities - outdoortemp_state - - nspanel_boot_step5 - - time_state - condition: template value_template: '{{ outdoortemp is match "sensor." }}' sequence: @@ -1584,8 +1811,8 @@ action: - conditions: - condition: trigger id: - - time_state - - nspanel_boot_step5 + - nspanel_boot_entities + - weather_update_time - condition: template value_template: '{{ outdoortemp == "default" }}' sequence: @@ -1603,8 +1830,8 @@ action: - conditions: - condition: trigger id: - - time_state - - nspanel_boot_step5 + - nspanel_boot_entities + - weather_update_time - condition: template value_template: '{{ outdoortemp == "accuweather" }}' sequence: @@ -1617,212 +1844,50 @@ action: component: thermostat.a07 message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" - ##### Date Home Page + Forcast DE ##### - - choose: - - conditions: - - condition: trigger - id: - - time_state - - nspanel_boot_step4 - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - - service: "{{ command_text_printf }}" - data: - component: home.a02 - message: "{{ date0_de }}" - - service: "{{ command_text_printf }}" - data: - component: weather01.a02 - message: "{{ date0_de }}" - - service: "{{ command_text_printf }}" - data: - component: weather02.a02 - message: "{{ date1_de }}" - - service: "{{ command_text_printf }}" - data: - component: weather03.a02 - message: "{{ date2_de }}" - - service: "{{ command_text_printf }}" - data: - component: weather04.a02 - message: "{{ date3_de }}" - - service: "{{ command_text_printf }}" - data: - component: weather05.a02 - message: "{{ date4_de }}" + ##### Left Button - Toggle ##### +# - choose: +# - conditions: +# - condition: trigger +# id: left_button_press +# sequence: +# - service: >- +# {% if left_button_entity is match 'light.' %} +# light.toggle +# {% elif left_button_entity is match 'switch.' %} +# switch.toggle +# {% elif left_button_entity is match 'cover.' %} +# cover.toggle +# {% elif left_button_entity is match 'input_boolean.' %} +# input_boolean.toggle +# {% endif %} +# data: +# entity_id: "{{ left_button_entity }}" + + ##### Right Button - Toggle ##### +# - choose: +# - conditions: +# - condition: trigger +# id: right_button_press +# sequence: +# - service: >- +# {% if right_button_entity is match 'light.' %} +# light.toggle +# {% elif right_button_entity is match 'switch.' %} +# switch.toggle +# {% elif right_button_entity is match 'cover.' %} +# cover.toggle +# {% elif right_button_entity is match 'input_boolean.' %} +# input_boolean.toggle +# {% endif %} +# data: +# entity_id: "{{ right_button_entity }}" + + + - ##### Date Home Page + Forcast EN ##### - - choose: - - conditions: - - condition: trigger - id: - - time_state - - nspanel_boot_step4 - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - - service: "{{ command_text_printf }}" - data: - component: home.a02 - message: "{{ date0_en }}" - - service: "{{ command_text_printf }}" - data: - component: weather01.a02 - message: "{{ date0_en }}" - - service: "{{ command_text_printf }}" - data: - component: weather02.a02 - message: "{{ date1_en }}" - - service: "{{ command_text_printf }}" - data: - component: weather03.a02 - message: "{{ date2_en }}" - - service: "{{ command_text_printf }}" - data: - component: weather04.a02 - message: "{{ date3_en }}" - - service: "{{ command_text_printf }}" - data: - component: weather05.a02 - message: "{{ date4_de }}" - ##### Time Home Page ##### - - choose: - - conditions: - - condition: trigger - id: - - time_state - - nspanel_boot_step5 - sequence: - - service: "{{ command_text_printf }}" - data: - component: home.a01 - message: "{{ time }}" - ##### language Setting DE ##### - - choose: - - conditions: - - condition: trigger - id: - - nspanel_boot_step3 - - 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_step3 - - 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 ######################################### # @@ -1844,8999 +1909,10191 @@ action: # ######################################### +################################################################################ ####### buttonpage01.button01 ################################################################# +################################################################################ - choose: ##### buttonpage01.button01 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity01 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity01 is match "light." }}' - - condition: state - entity_id: !input entity01 - state: "off" sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button01pic.pic={{ button_light_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01text - message: "{{ entity01_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01bri - message: " " + - if: + - condition: template + value_template: '{{ entity01 is match "light." and states(entity01) == "off" }}' + then: + - service: "{{ command_printf }}" + data: + cmd: buttonpage01.button01pic.pic={{ button_light_off }} + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01text + message: "{{ button_color_1 }}" + ##### + - service: "{{ command_background_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_font_color }}" + data: + component: buttonpage01.button01bri + message: "{{ button_color_2 }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01text + message: "{{ entity01_name }}" + ##### + - service: "{{ command_text_printf }}" + data: + component: buttonpage01.button01bri + message: " " ##### buttonpage01.button01 light ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity01 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity01 is match "light." }}' - - condition: state - entity_id: !input entity01 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity01 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity01 is match "switch." or entity01 is match "input_boolean."}}' - - condition: state - entity_id: !input entity01 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button01pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01text - message: "{{ entity01_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01bri - message: " " - ##### buttonpage01.button01 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity01 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity01 is match "switch." or entity01 is match "input_boolean."}}' - - condition: state - entity_id: !input entity01 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button01pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01text - message: "{{ entity01_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01bri - message: " " + ##### buttonpage01.button01 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity01 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity01 is match "cover." }}' - - condition: state - entity_id: !input entity01 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button01pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01text - message: "{{ entity01_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01bri - message: " " - ##### buttonpage01.button01 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity01 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity01 is match "cover." }}' - - condition: state - entity_id: !input entity01 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button01pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01text - message: "{{ entity01_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button01bri - message: '{{ (state_attr(entity01, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage01.button02 ################################################################# + +################################################################################ + ####### buttonpage01.button02 ######################################################################################## +################################################################################ - choose: ##### buttonpage01.button02 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity02 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity02 is match "light." }}' - - condition: state - entity_id: !input entity02 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity02 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity02 is match "light." }}' - - condition: state - entity_id: !input entity02 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity02 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity02 is match "switch." or entity02 is match "input_boolean."}}' - - condition: state - entity_id: !input entity02 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button02pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02text - message: "{{ entity02_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02bri - message: " " - ##### buttonpage01.button02 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity02 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity02 is match "switch." or entity02 is match "input_boolean."}}' - - condition: state - entity_id: !input entity02 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button02pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02text - message: "{{ entity02_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02bri - message: " " + ##### buttonpage01.button02 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity02 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity02 is match "cover." }}' - - condition: state - entity_id: !input entity02 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button02pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02text - message: "{{ entity02_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02bri - message: " " - ##### buttonpage01.button02 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity02 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity02 is match "cover." }}' - - condition: state - entity_id: !input entity02 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button02pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02text - message: "{{ entity02_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button02bri - message: '{{ (state_attr(entity02, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage01.button03 ################################################################# +################################################################################ + ####### buttonpage01.button03 ######################################################################################## +################################################################################ - choose: - ##### button03 Light OFF ##### + ##### buttonpage01.button03 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity03 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity03 is match "light." }}' - - condition: state - entity_id: !input entity03 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity03 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity03 is match "light." }}' - - condition: state - entity_id: !input entity03 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity03 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity03 is match "switch." or entity03 is match "input_boolean."}}' - - condition: state - entity_id: !input entity03 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button03pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03text - message: "{{ entity03_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03bri - message: " " - ##### buttonpage01.button03 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity03 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity03 is match "switch." or entity03 is match "input_boolean."}}' - - condition: state - entity_id: !input entity03 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button03pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03text - message: "{{ entity03_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03bri - message: " " + ##### buttonpage01.button03 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity03 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity03 is match "cover." }}' - - condition: state - entity_id: !input entity03 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button03pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03text - message: "{{ entity03_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03bri - message: " " - ##### buttonpage01.button03 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity03 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity03 is match "cover." }}' - - condition: state - entity_id: !input entity03 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button03pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03text - message: "{{ entity03_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button03bri - message: '{{ (state_attr(entity03, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### button04 ################################################################# +################################################################################ + ####### buttonpage01.button04 ######################################################################################## +################################################################################ - choose: ##### buttonpage01.button04 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity04 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity04 is match "light." }}' - - condition: state - entity_id: !input entity04 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity04 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity04 is match "light." }}' - - condition: state - entity_id: !input entity04 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity04 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity04 is match "switch." or entity04 is match "input_boolean."}}' - - condition: state - entity_id: !input entity04 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button04pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04text - message: "{{ entity04_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04bri - message: " " - ##### buttonpage01.button04 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity04 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity04 is match "switch." or entity04 is match "input_boolean."}}' - - condition: state - entity_id: !input entity04 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button04pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04text - message: "{{ entity04_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04bri - message: " " + ##### buttonpage01.button04 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity04 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity04 is match "cover." }}' - - condition: state - entity_id: !input entity04 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button04pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04text - message: "{{ entity04_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04bri - message: " " - ##### buttonpage01.button04 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity04 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity04 is match "cover." }}' - - condition: state - entity_id: !input entity04 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button04pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04text - message: "{{ entity04_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button04bri - message: '{{ (state_attr(entity04, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage01.button05 ################################################################# +################################################################################ + ####### buttonpage01.button05 ######################################################################################## +################################################################################ - choose: ##### buttonpage01.button05 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity05 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity05 is match "light." }}' - - condition: state - entity_id: !input entity05 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity05 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity05 is match "light." }}' - - condition: state - entity_id: !input entity05 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity05 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity05 is match "switch." or entity05 is match "input_boolean."}}' - - condition: state - entity_id: !input entity05 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button05pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05text - message: "{{ entity05_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05bri - message: " " - ##### buttonpage01.button05 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity05 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity05 is match "switch." or entity05 is match "input_boolean."}}' - - condition: state - entity_id: !input entity05 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button05pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05text - message: "{{ entity05_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05bri - message: " " + ##### buttonpage01.button05 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity05 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity05 is match "cover." }}' - - condition: state - entity_id: !input entity05 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button05pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05text - message: "{{ entity05_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05bri - message: " " - ##### buttonpage01.button05 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity05 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity05 is match "cover." }}' - - condition: state - entity_id: !input entity05 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button05pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05text - message: "{{ entity05_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button05bri - message: '{{ (state_attr(entity05, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage01.button06 ################################################################# +################################################################################ + ####### buttonpage01.button06 ######################################################################################## +################################################################################ - choose: ##### buttonpage01.button06 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity06 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity06 is match "light." }}' - - condition: state - entity_id: !input entity06 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity06 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity06 is match "light." }}' - - condition: state - entity_id: !input entity06 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity06 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity06 is match "switch." or entity06 is match "input_boolean."}}' - - condition: state - entity_id: !input entity06 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button06pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06text - message: "{{ entity06_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06bri - message: " " - ##### buttonpage01.button06 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity06 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity06 is match "switch." or entity06 is match "input_boolean."}}' - - condition: state - entity_id: !input entity06 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button06pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06text - message: "{{ entity06_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06bri - message: " " + ##### buttonpage01.button06 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity06 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity06 is match "cover." }}' - - condition: state - entity_id: !input entity06 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button06pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06text - message: "{{ entity06_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06bri - message: " " - ##### buttonpage01.button06 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity06 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity06 is match "cover." }}' - - condition: state - entity_id: !input entity06 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button06pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06text - message: "{{ entity06_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button06bri - message: '{{ (state_attr(entity06, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage01.button07 ################################################################# +################################################################################ + ####### buttonpage01.button07 ######################################################################################## +################################################################################ - choose: ##### buttonpage01.button07 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity07 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity07 is match "light." }}' - - condition: state - entity_id: !input entity07 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity07 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity07 is match "light." }}' - - condition: state - entity_id: !input entity07 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity07 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity07 is match "switch." or entity07 is match "input_boolean."}}' - - condition: state - entity_id: !input entity07 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button07pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07text - message: "{{ entity07_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07bri - message: " " - ##### buttonpage01.button07 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity07 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity07 is match "switch." or entity07 is match "input_boolean."}}' - - condition: state - entity_id: !input entity07 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button07pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07text - message: "{{ entity07_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07bri - message: " " + ##### buttonpage01.button07 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity07 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity07 is match "cover." }}' - - condition: state - entity_id: !input entity07 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button07pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07text - message: "{{ entity07_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07bri - message: " " - ##### buttonpage01.button07 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity07 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity07 is match "cover." }}' - - condition: state - entity_id: !input entity07 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button07pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07text - message: "{{ entity07_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button07bri - message: '{{ (state_attr(entity07, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage01.button08 ################################################################# +################################################################################ + ####### buttonpage01.button08 ######################################################################################## +################################################################################ - choose: ##### buttonpage01.button08 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage01 - current_state_entity08 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity08 is match "light." }}' - - condition: state - entity_id: !input entity08 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity08 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity08 is match "light." }}' - - condition: state - entity_id: !input entity08 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity08 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity08 is match "switch." or entity08 is match "input_boolean."}}' - - condition: state - entity_id: !input entity08 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button08pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08text - message: "{{ entity08_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08bri - message: " " - ##### buttonpage01.button08 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity08 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity08 is match "switch." or entity08 is match "input_boolean."}}' - - condition: state - entity_id: !input entity08 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button08pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08text - message: "{{ entity08_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08bri - message: " " + ##### buttonpage01.button08 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity08 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity08 is match "cover." }}' - - condition: state - entity_id: !input entity08 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button08pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08text - message: "{{ entity08_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08bri - message: " " - ##### buttonpage01.button08 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity08 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity08 is match "cover." }}' - - condition: state - entity_id: !input entity08 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage01.button08pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage01.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08text - message: "{{ entity08_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage01.button08bri - message: '{{ (state_attr(entity08, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' +######################################################################################################################## + +################################################################################ ####### buttonpage02.button01 ################################################################# +################################################################################ - choose: ##### buttonpage02.button01 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity09 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity09 is match "light." }}' - - condition: state - entity_id: !input entity09 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity09 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity09 is match "light." }}' - - condition: state - entity_id: !input entity09 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity09 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity09 is match "switch." or entity09 is match "input_boolean."}}' - - condition: state - entity_id: !input entity09 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button01pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01text - message: "{{ entity09_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01bri - message: " " - ##### buttonpage02.button01 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity09 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity09 is match "switch." or entity09 is match "input_boolean."}}' - - condition: state - entity_id: !input entity09 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button01pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01text - message: "{{ entity09_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01bri - message: " " + ##### buttonpage02.button01 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity09 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity09 is match "cover." }}' - - condition: state - entity_id: !input entity09 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button01pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01text - message: "{{ entity09_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01bri - message: " " - ##### buttonpage02.button01 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity09 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity09 is match "cover." }}' - - condition: state - entity_id: !input entity09 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button01pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01text - message: "{{ entity09_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button01bri - message: '{{ (state_attr(entity09, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage02.button02 ################################################################# + +################################################################################ + ####### buttonpage02.button02 ######################################################################################## +################################################################################ - choose: ##### buttonpage02.button02 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity10 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity10 is match "light." }}' - - condition: state - entity_id: !input entity10 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity10 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity10 is match "light." }}' - - condition: state - entity_id: !input entity10 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity10 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity10 is match "switch." or entity10 is match "input_boolean."}}' - - condition: state - entity_id: !input entity10 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button02pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02text - message: "{{ entity10_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02bri - message: " " - ##### buttonpage02.button02 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity10 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity10 is match "switch." or entity10 is match "input_boolean."}}' - - condition: state - entity_id: !input entity10 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button02pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02text - message: "{{ entity10_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02bri - message: " " + ##### buttonpage02.button02 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity10 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity10 is match "cover." }}' - - condition: state - entity_id: !input entity10 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button02pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02text - message: "{{ entity10_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02bri - message: " " - ##### buttonpage02.button02 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity10 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity10 is match "cover." }}' - - condition: state - entity_id: !input entity10 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button02pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02text - message: "{{ entity10_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button02bri - message: '{{ (state_attr(entity10, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage02.button03 ################################################################# +################################################################################ + ####### buttonpage02.button03 ######################################################################################## +################################################################################ - choose: - ##### button03 Light OFF ##### + ##### buttonpage02.button03 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity11 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity11 is match "light." }}' - - condition: state - entity_id: !input entity11 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity11 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity11 is match "light." }}' - - condition: state - entity_id: !input entity11 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity11 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity11 is match "switch." or entity11 is match "input_boolean."}}' - - condition: state - entity_id: !input entity11 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button03pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03text - message: "{{ entity11_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03bri - message: " " - ##### buttonpage02.button03 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity11 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity11 is match "switch." or entity11 is match "input_boolean."}}' - - condition: state - entity_id: !input entity11 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button03pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03text - message: "{{ entity11_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03bri - message: " " + ##### buttonpage02.button03 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity11 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity11 is match "cover." }}' - - condition: state - entity_id: !input entity11 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button03pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03text - message: "{{ entity11_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03bri - message: " " - ##### buttonpage02.button03 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity11 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity11 is match "cover." }}' - - condition: state - entity_id: !input entity11 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button03pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03text - message: "{{ entity11_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button03bri - message: '{{ (state_attr(entity11, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### button04 ################################################################# +################################################################################ + ####### buttonpage02.button04 ######################################################################################## +################################################################################ - choose: ##### buttonpage02.button04 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity12 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity12 is match "light." }}' - - condition: state - entity_id: !input entity12 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity12 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity12 is match "light." }}' - - condition: state - entity_id: !input entity12 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity12 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity12 is match "switch." or entity12 is match "input_boolean."}}' - - condition: state - entity_id: !input entity12 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button04pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04text - message: "{{ entity12_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04bri - message: " " - ##### buttonpage02.button04 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity12 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity12 is match "switch." or entity12 is match "input_boolean."}}' - - condition: state - entity_id: !input entity12 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button04pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04text - message: "{{ entity12_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04bri - message: " " + ##### buttonpage02.button04 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity12 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity12 is match "cover." }}' - - condition: state - entity_id: !input entity12 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button04pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04text - message: "{{ entity12_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04bri - message: " " - ##### buttonpage02.button04 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity12 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity12 is match "cover." }}' - - condition: state - entity_id: !input entity12 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button04pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04text - message: "{{ entity12_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button04bri - message: '{{ (state_attr(entity12, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage02.button05 ################################################################# +################################################################################ + ####### buttonpage02.button05 ######################################################################################## +################################################################################ - choose: ##### buttonpage02.button05 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity13 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity13 is match "light." }}' - - condition: state - entity_id: !input entity13 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity13 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity13 is match "light." }}' - - condition: state - entity_id: !input entity13 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity13 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity13 is match "switch." or entity13 is match "input_boolean."}}' - - condition: state - entity_id: !input entity13 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button05pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05text - message: "{{ entity13_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05bri - message: " " - ##### buttonpage02.button05 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity13 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity13 is match "switch." or entity13 is match "input_boolean."}}' - - condition: state - entity_id: !input entity13 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button05pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05text - message: "{{ entity13_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05bri - message: " " + ##### buttonpage02.button05 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity13 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity13 is match "cover." }}' - - condition: state - entity_id: !input entity13 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button05pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05text - message: "{{ entity13_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05bri - message: " " - ##### buttonpage02.button05 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity13 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity13 is match "cover." }}' - - condition: state - entity_id: !input entity13 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button05pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05text - message: "{{ entity13_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button05bri - message: '{{ (state_attr(entity13, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage02.button06 ################################################################# +################################################################################ + ####### buttonpage02.button06 ######################################################################################## +################################################################################ - choose: ##### buttonpage02.button06 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity14 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity14 is match "light." }}' - - condition: state - entity_id: !input entity14 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity14 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity14 is match "light." }}' - - condition: state - entity_id: !input entity14 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity14 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity14 is match "switch." or entity14 is match "input_boolean."}}' - - condition: state - entity_id: !input entity14 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button06pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06text - message: "{{ entity14_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06bri - message: " " - ##### buttonpage02.button06 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity14 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity14 is match "switch." or entity14 is match "input_boolean."}}' - - condition: state - entity_id: !input entity14 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button06pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06text - message: "{{ entity14_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06bri - message: " " + ##### buttonpage02.button06 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity14 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity14 is match "cover." }}' - - condition: state - entity_id: !input entity14 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button06pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06text - message: "{{ entity14_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06bri - message: " " - ##### buttonpage02.button06 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity14 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity14 is match "cover." }}' - - condition: state - entity_id: !input entity14 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button06pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06text - message: "{{ entity14_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button06bri - message: '{{ (state_attr(entity14, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage02.button07 ################################################################# +################################################################################ + ####### buttonpage02.button07 ######################################################################################## +################################################################################ - choose: ##### buttonpage02.button07 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity15 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity15 is match "light." }}' - - condition: state - entity_id: !input entity15 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity15 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity15 is match "light." }}' - - condition: state - entity_id: !input entity15 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity15 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity15 is match "switch." or entity15 is match "input_boolean."}}' - - condition: state - entity_id: !input entity15 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button07pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07text - message: "{{ entity15_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07bri - message: " " - ##### buttonpage02.button07 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity15 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity15 is match "switch." or entity15 is match "input_boolean."}}' - - condition: state - entity_id: !input entity15 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button07pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07text - message: "{{ entity15_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07bri - message: " " + ##### buttonpage02.button07 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity15 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity15 is match "cover." }}' - - condition: state - entity_id: !input entity15 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button07pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07text - message: "{{ entity15_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07bri - message: " " - ##### buttonpage02.button07 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity15 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity15 is match "cover." }}' - - condition: state - entity_id: !input entity15 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button07pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07text - message: "{{ entity15_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button07bri - message: '{{ (state_attr(entity15, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage02.button08 ################################################################# +################################################################################ + ####### buttonpage02.button08 ######################################################################################## +################################################################################ - choose: ##### buttonpage02.button08 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage02 - current_state_entity16 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity16 is match "light." }}' - - condition: state - entity_id: !input entity16 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity16 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity16 is match "light." }}' - - condition: state - entity_id: !input entity16 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity16 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity16 is match "switch." or entity16 is match "input_boolean."}}' - - condition: state - entity_id: !input entity16 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button08pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08text - message: "{{ entity16_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08bri - message: " " - ##### buttonpage02.button08 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity16 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity16 is match "switch." or entity16 is match "input_boolean."}}' - - condition: state - entity_id: !input entity16 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button08pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08text - message: "{{ entity16_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08bri - message: " " + ##### buttonpage02.button08 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity16 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity16 is match "cover." }}' - - condition: state - entity_id: !input entity16 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button08pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08text - message: "{{ entity16_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08bri - message: " " - ##### buttonpage02.button08 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity16 - - button_page - - nspanel_boot_step1 - - condition: template - value_template: '{{ entity16 is match "cover." }}' - - condition: state - entity_id: !input entity16 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage02.button08pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage02.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08text - message: "{{ entity16_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage02.button08bri - message: '{{ (state_attr(entity16, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' +######################################################################################################################## +################################################################################ ####### buttonpage03.button01 ################################################################# +################################################################################ - choose: ##### buttonpage03.button01 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity17 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity17 is match "light." }}' - - condition: state - entity_id: !input entity17 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity17 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity17 is match "light." }}' - - condition: state - entity_id: !input entity17 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity17 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity17 is match "switch." or entity17 is match "input_boolean."}}' - - condition: state - entity_id: !input entity17 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button01pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01text - message: "{{ entity17_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01bri - message: " " - ##### buttonpage03.button01 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity17 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity17 is match "switch." or entity17 is match "input_boolean."}}' - - condition: state - entity_id: !input entity17 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button01pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01text - message: "{{ entity17_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01bri - message: " " + ##### buttonpage03.button01 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity17 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity17 is match "cover." }}' - - condition: state - entity_id: !input entity17 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button01pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01text - message: "{{ entity17_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01bri - message: " " - ##### buttonpage03.button01 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity17 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity17 is match "cover." }}' - - condition: state - entity_id: !input entity17 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button01pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01text - message: "{{ entity17_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button01bri - message: '{{ (state_attr(entity17, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage03.button02 ################################################################# + +################################################################################ + ####### buttonpage03.button02 ######################################################################################## +################################################################################ - choose: ##### buttonpage03.button02 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity18 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity18 is match "light." }}' - - condition: state - entity_id: !input entity18 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity18 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity18 is match "light." }}' - - condition: state - entity_id: !input entity18 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity18 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity18 is match "switch." or entity18 is match "input_boolean."}}' - - condition: state - entity_id: !input entity18 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button02pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02text - message: "{{ entity18_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02bri - message: " " - ##### buttonpage03.button02 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity18 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity18 is match "switch." or entity18 is match "input_boolean."}}' - - condition: state - entity_id: !input entity18 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button02pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02text - message: "{{ entity18_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02bri - message: " " + ##### buttonpage03.button02 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity18 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity18 is match "cover." }}' - - condition: state - entity_id: !input entity18 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button02pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02text - message: "{{ entity18_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02bri - message: " " - ##### buttonpage03.button02 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity18 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity18 is match "cover." }}' - - condition: state - entity_id: !input entity18 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button02pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02text - message: "{{ entity18_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button02bri - message: '{{ (state_attr(entity18, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage03.button03 ################################################################# +################################################################################ + ####### buttonpage03.button03 ######################################################################################## +################################################################################ - choose: - ##### button03 Light OFF ##### + ##### buttonpage03.button03 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity19 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity19 is match "light." }}' - - condition: state - entity_id: !input entity19 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity19 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity19 is match "light." }}' - - condition: state - entity_id: !input entity19 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity19 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity19 is match "switch." or entity19 is match "input_boolean."}}' - - condition: state - entity_id: !input entity19 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button03pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03text - message: "{{ entity19_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03bri - message: " " - ##### buttonpage03.button03 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity19 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity19 is match "switch." or entity19 is match "input_boolean."}}' - - condition: state - entity_id: !input entity19 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button03pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03text - message: "{{ entity19_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03bri - message: " " + ##### buttonpage03.button03 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity19 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity19 is match "cover." }}' - - condition: state - entity_id: !input entity19 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button03pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03text - message: "{{ entity19_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03bri - message: " " - ##### buttonpage03.button03 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity19 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity19 is match "cover." }}' - - condition: state - entity_id: !input entity19 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button03pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03text - message: "{{ entity19_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button03bri - message: '{{ (state_attr(entity19, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### button04 ################################################################# +################################################################################ + ####### buttonpage03.button04 ######################################################################################## +################################################################################ - choose: ##### buttonpage03.button04 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity20 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity20 is match "light." }}' - - condition: state - entity_id: !input entity20 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity20 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity20 is match "light." }}' - - condition: state - entity_id: !input entity20 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity20 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity20 is match "switch." or entity20 is match "input_boolean."}}' - - condition: state - entity_id: !input entity20 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button04pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04text - message: "{{ entity20_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04bri - message: " " - ##### buttonpage03.button04 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity20 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity20 is match "switch." or entity20 is match "input_boolean."}}' - - condition: state - entity_id: !input entity20 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button04pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04text - message: "{{ entity20_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04bri - message: " " + ##### buttonpage03.button04 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity20 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity20 is match "cover." }}' - - condition: state - entity_id: !input entity20 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button04pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04text - message: "{{ entity20_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04bri - message: " " - ##### buttonpage03.button04 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity20 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity20 is match "cover." }}' - - condition: state - entity_id: !input entity20 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button04pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04text - message: "{{ entity20_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button04bri - message: '{{ (state_attr(entity20, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage03.button05 ################################################################# +################################################################################ + ####### buttonpage03.button05 ######################################################################################## +################################################################################ - choose: ##### buttonpage03.button05 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity21 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity21 is match "light." }}' - - condition: state - entity_id: !input entity21 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity21 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity21 is match "light." }}' - - condition: state - entity_id: !input entity21 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity21 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity21 is match "switch." or entity21 is match "input_boolean."}}' - - condition: state - entity_id: !input entity21 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button05pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05text - message: "{{ entity21_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05bri - message: " " - ##### buttonpage03.button05 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity21 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity21 is match "switch." or entity21 is match "input_boolean."}}' - - condition: state - entity_id: !input entity21 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button05pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05text - message: "{{ entity21_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05bri - message: " " + ##### buttonpage03.button05 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity21 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity21 is match "cover." }}' - - condition: state - entity_id: !input entity21 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button05pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05text - message: "{{ entity21_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05bri - message: " " - ##### buttonpage03.button05 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity21 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity21 is match "cover." }}' - - condition: state - entity_id: !input entity21 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button05pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05text - message: "{{ entity21_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button05bri - message: '{{ (state_attr(entity21, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage03.button06 ################################################################# +################################################################################ + ####### buttonpage03.button06 ######################################################################################## +################################################################################ - choose: ##### buttonpage03.button06 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity22 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity22 is match "light." }}' - - condition: state - entity_id: !input entity22 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity22 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity22 is match "light." }}' - - condition: state - entity_id: !input entity22 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity22 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity22 is match "switch." or entity22 is match "input_boolean."}}' - - condition: state - entity_id: !input entity22 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button06pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06text - message: "{{ entity22_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06bri - message: " " - ##### buttonpage03.button06 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity22 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity22 is match "switch." or entity22 is match "input_boolean."}}' - - condition: state - entity_id: !input entity22 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button06pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06text - message: "{{ entity22_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06bri - message: " " + ##### buttonpage03.button06 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity22 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity22 is match "cover." }}' - - condition: state - entity_id: !input entity22 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button06pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06text - message: "{{ entity22_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06bri - message: " " - ##### buttonpage03.button06 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity22 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity22 is match "cover." }}' - - condition: state - entity_id: !input entity22 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button06pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06text - message: "{{ entity22_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button06bri - message: '{{ (state_attr(entity22, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage03.button07 ################################################################# +################################################################################ + ####### buttonpage03.button07 ######################################################################################## +################################################################################ - choose: ##### buttonpage03.button07 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity23 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity23 is match "light." }}' - - condition: state - entity_id: !input entity23 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity23 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity23 is match "light." }}' - - condition: state - entity_id: !input entity23 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity23 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity23 is match "switch." or entity23 is match "input_boolean."}}' - - condition: state - entity_id: !input entity23 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button07pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07text - message: "{{ entity23_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07bri - message: " " - ##### buttonpage03.button07 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity23 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity23 is match "switch." or entity23 is match "input_boolean."}}' - - condition: state - entity_id: !input entity23 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button07pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07text - message: "{{ entity23_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07bri - message: " " + ##### buttonpage03.button07 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity23 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity23 is match "cover." }}' - - condition: state - entity_id: !input entity23 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button07pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07text - message: "{{ entity23_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07bri - message: " " - ##### buttonpage03.button07 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity23 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity23 is match "cover." }}' - - condition: state - entity_id: !input entity23 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button07pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07text - message: "{{ entity23_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button07bri - message: '{{ (state_attr(entity23, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage03.button08 ################################################################# +################################################################################ + ####### buttonpage03.button08 ######################################################################################## +################################################################################ - choose: ##### buttonpage03.button08 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage03 - current_state_entity24 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity24 is match "light." }}' - - condition: state - entity_id: !input entity24 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity24 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity24 is match "light." }}' - - condition: state - entity_id: !input entity24 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity24 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity24 is match "switch." or entity24 is match "input_boolean."}}' - - condition: state - entity_id: !input entity24 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button08pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08text - message: "{{ entity24_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08bri - message: " " - ##### buttonpage03.button08 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity24 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity24 is match "switch." or entity24 is match "input_boolean."}}' - - condition: state - entity_id: !input entity24 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button08pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08text - message: "{{ entity24_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08bri - message: " " + ##### buttonpage03.button08 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity24 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity24 is match "cover." }}' - - condition: state - entity_id: !input entity24 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button08pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08text - message: "{{ entity24_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08bri - message: " " - ##### buttonpage03.button08 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity24 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity24 is match "cover." }}' - - condition: state - entity_id: !input entity24 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage03.button08pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage03.button08bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08text - message: "{{ entity24_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage03.button08bri - message: '{{ (state_attr(entity24, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' +######################################################################################################################## +################################################################################ ####### buttonpage04.button01 ################################################################# +################################################################################ - choose: ##### buttonpage04.button01 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity25 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity25 is match "light." }}' - - condition: state - entity_id: !input entity25 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity25 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity25 is match "light." }}' - - condition: state - entity_id: !input entity25 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity25 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity25 is match "switch." or entity25 is match "input_boolean."}}' - - condition: state - entity_id: !input entity25 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button01pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01text - message: "{{ entity25_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01bri - message: " " - ##### buttonpage04.button01 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity25 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity25 is match "switch." or entity25 is match "input_boolean."}}' - - condition: state - entity_id: !input entity25 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button01pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01text - message: "{{ entity25_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01bri - message: " " + ##### buttonpage04.button01 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity25 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity25 is match "cover." }}' - - condition: state - entity_id: !input entity25 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button01pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01text - message: "{{ entity25_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01bri - message: " " - ##### buttonpage04.button01 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity25 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity25 is match "cover." }}' - - condition: state - entity_id: !input entity25 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button01pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button01bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01text - message: "{{ entity25_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button01bri - message: '{{ (state_attr(entity25, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage04.button02 ################################################################# + +################################################################################ + ####### buttonpage04.button02 ######################################################################################## +################################################################################ - choose: ##### buttonpage04.button02 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity26 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity26 is match "light." }}' - - condition: state - entity_id: !input entity26 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity26 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity26 is match "light." }}' - - condition: state - entity_id: !input entity26 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity26 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity26 is match "switch." or entity26 is match "input_boolean."}}' - - condition: state - entity_id: !input entity26 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button02pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02text - message: "{{ entity26_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02bri - message: " " - ##### buttonpage04.button02 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity26 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity26 is match "switch." or entity26 is match "input_boolean."}}' - - condition: state - entity_id: !input entity26 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button02pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02text - message: "{{ entity26_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02bri - message: " " + ##### buttonpage04.button02 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity26 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity26 is match "cover." }}' - - condition: state - entity_id: !input entity26 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button02pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02text - message: "{{ entity26_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02bri - message: " " - ##### buttonpage04.button02 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity26 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity26 is match "cover." }}' - - condition: state - entity_id: !input entity26 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button02pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button02bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02text - message: "{{ entity26_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button02bri - message: '{{ (state_attr(entity26, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage04.button03 ################################################################# +################################################################################ + ####### buttonpage04.button03 ######################################################################################## +################################################################################ - choose: - ##### button03 Light OFF ##### + ##### buttonpage04.button03 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity27 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity27 is match "light." }}' - - condition: state - entity_id: !input entity27 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity27 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity27 is match "light." }}' - - condition: state - entity_id: !input entity27 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity27 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity27 is match "switch." or entity27 is match "input_boolean."}}' - - condition: state - entity_id: !input entity27 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button03pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03text - message: "{{ entity27_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03bri - message: " " - ##### buttonpage04.button03 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity27 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity27 is match "switch." or entity27 is match "input_boolean."}}' - - condition: state - entity_id: !input entity27 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button03pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03text - message: "{{ entity27_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03bri - message: " " + ##### buttonpage04.button03 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity27 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity27 is match "cover." }}' - - condition: state - entity_id: !input entity27 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button03pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03text - message: "{{ entity27_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03bri - message: " " - ##### buttonpage04.button03 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity27 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity27 is match "cover." }}' - - condition: state - entity_id: !input entity27 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button03pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button03bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03text - message: "{{ entity27_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button03bri - message: '{{ (state_attr(entity27, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### button04 ################################################################# +################################################################################ + ####### buttonpage04.button04 ######################################################################################## +################################################################################ - choose: ##### buttonpage04.button04 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity28 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity28 is match "light." }}' - - condition: state - entity_id: !input entity28 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity28 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity28 is match "light." }}' - - condition: state - entity_id: !input entity28 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity28 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity28 is match "switch." or entity28 is match "input_boolean."}}' - - condition: state - entity_id: !input entity28 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button04pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04text - message: "{{ entity28_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04bri - message: " " - ##### buttonpage04.button04 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity28 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity28 is match "switch." or entity28 is match "input_boolean."}}' - - condition: state - entity_id: !input entity28 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button04pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04text - message: "{{ entity28_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04bri - message: " " + ##### buttonpage04.button04 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity28 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity28 is match "cover." }}' - - condition: state - entity_id: !input entity28 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button04pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04text - message: "{{ entity28_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04bri - message: " " - ##### buttonpage04.button04 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity28 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity28 is match "cover." }}' - - condition: state - entity_id: !input entity28 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button04pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button04bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04text - message: "{{ entity28_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button04bri - message: '{{ (state_attr(entity28, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage04.button05 ################################################################# +################################################################################ + ####### buttonpage04.button05 ######################################################################################## +################################################################################ - choose: ##### buttonpage04.button05 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity29 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity29 is match "light." }}' - - condition: state - entity_id: !input entity29 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity29 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity29 is match "light." }}' - - condition: state - entity_id: !input entity29 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity29 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity29 is match "switch." or entity29 is match "input_boolean."}}' - - condition: state - entity_id: !input entity29 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button05pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05text - message: "{{ entity29_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05bri - message: " " - ##### buttonpage04.button05 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity29 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity29 is match "switch." or entity29 is match "input_boolean."}}' - - condition: state - entity_id: !input entity29 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button05pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05text - message: "{{ entity29_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05bri - message: " " + ##### buttonpage04.button05 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity29 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity29 is match "cover." }}' - - condition: state - entity_id: !input entity29 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button05pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05text - message: "{{ entity29_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05bri - message: " " - ##### buttonpage04.button05 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity29 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity29 is match "cover." }}' - - condition: state - entity_id: !input entity29 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button05pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button05bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05text - message: "{{ entity29_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button05bri - message: '{{ (state_attr(entity29, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage04.button06 ################################################################# +################################################################################ + ####### buttonpage04.button06 ######################################################################################## +################################################################################ - choose: ##### buttonpage04.button06 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity30 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity30 is match "light." }}' - - condition: state - entity_id: !input entity30 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity30 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity30 is match "light." }}' - - condition: state - entity_id: !input entity30 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity30 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity30 is match "switch." or entity30 is match "input_boolean."}}' - - condition: state - entity_id: !input entity30 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button06pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06text - message: "{{ entity30_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06bri - message: " " - ##### buttonpage04.button06 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity30 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity30 is match "switch." or entity30 is match "input_boolean."}}' - - condition: state - entity_id: !input entity30 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button06pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06text - message: "{{ entity30_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06bri - message: " " + ##### buttonpage04.button06 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity30 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity30 is match "cover." }}' - - condition: state - entity_id: !input entity30 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button06pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06text - message: "{{ entity30_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06bri - message: " " - ##### buttonpage04.button06 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity30 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity30 is match "cover." }}' - - condition: state - entity_id: !input entity30 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button06pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button06bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06text - message: "{{ entity30_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button06bri - message: '{{ (state_attr(entity30, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage04.button07 ################################################################# +################################################################################ + ####### buttonpage04.button07 ######################################################################################## +################################################################################ - choose: ##### buttonpage04.button07 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity31 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity31 is match "light." }}' - - condition: state - entity_id: !input entity31 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity31 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity31 is match "light." }}' - - condition: state - entity_id: !input entity31 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity31 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity31 is match "switch." or entity31 is match "input_boolean."}}' - - condition: state - entity_id: !input entity31 - state: "off" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button07pic.pic={{ button_switch_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07text - message: "{{ entity31_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07bri - message: " " - ##### buttonpage04.button07 Switch / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity31 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity31 is match "switch." or entity31 is match "input_boolean."}}' - - condition: state - entity_id: !input entity31 - state: "on" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button07pic.pic={{ button_switch_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07text - message: "{{ entity31_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07bri - message: " " + ##### buttonpage04.button07 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity31 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity31 is match "cover." }}' - - condition: state - entity_id: !input entity31 - state: "closed" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button07pic.pic={{ button_cover_off }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07text - message: "{{ entity31_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07bri - message: " " - ##### buttonpage04.button07 Cover ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity31 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity31 is match "cover." }}' - - condition: state - entity_id: !input entity31 - state: "open" - sequence: - - service: "{{ command_printf }}" - data: - cmd: buttonpage04.button07pic.pic={{ button_cover_on }} - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07text - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_background_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_1 }}" - ##### - - service: "{{ command_font_color }}" - data: - component: buttonpage04.button07bri - message: "{{ button_color_2 }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07text - message: "{{ entity31_name }}" - ##### - - service: "{{ command_text_printf }}" - data: - component: buttonpage04.button07bri - message: '{{ (state_attr(entity31, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' - ####### buttonpage04.button08 ################################################################# +################################################################################ + ####### buttonpage04.button08 ######################################################################################## +################################################################################ - choose: ##### buttonpage04.button08 Light OFF ##### - conditions: - condition: trigger id: + - nspanel_boot_buttonpage04 - current_state_entity32 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity32 is match "light." }}' - - condition: state - entity_id: !input entity32 - state: "off" sequence: - - 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: " " + - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity32 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity32 is match "light." }}' - - condition: state - entity_id: !input entity32 - state: "on" - sequence: - - 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) }}%' + - 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 / Input boolean OFF ##### - - conditions: - - condition: trigger - id: - - current_state_entity32 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity32 is match "switch." or entity32 is match "input_boolean."}}' - - condition: state - entity_id: !input entity32 - state: "off" - sequence: - - 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 / Input Boolean ON ##### - - conditions: - - condition: trigger - id: - - current_state_entity32 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity32 is match "switch." or entity32 is match "input_boolean."}}' - - condition: state - entity_id: !input entity32 - state: "on" - sequence: - - 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 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity32 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity32 is match "cover." }}' - - condition: state - entity_id: !input entity32 - state: "closed" - sequence: - - 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 ##### - - conditions: - - condition: trigger - id: - - current_state_entity32 - - button_page - - nspanel_boot_step2 - - condition: template - value_template: '{{ entity32 is match "cover." }}' - - condition: state - entity_id: !input entity32 - state: "open" - sequence: - - 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, "position") | int ) |round(0) }}%' + - 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, "position") | int ) |round(0) }}%' ######################################### # @@ -10861,12 +12118,12 @@ action: - conditions: - condition: trigger id: - - weather_update - - nspanel_boot_step4 - - time_state + - nspanel_boot_weather + - weather_update_state + - weather_update_time - condition: template value_template: '{{ weather == "Default" }}' - ##### Weather Icon Home Meteorologisk HA Default ##### +##### Weather Home Page Symbole Home Meteorologisk HA Default ##### sequence: - if: - condition: template @@ -10994,56 +12251,7 @@ action: - service: "{{ command_printf }}" data: cmd: home.a05.pic=15 - ##### Forcast Day 0 Meteorologisk ##### - - 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)}}°' - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a06 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather01.p06.pic=53 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a07 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather01.p07.pic=53 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a08 - message: '{{state_attr(ha_weather,"wind_speed") | round(0)}} km/h' - - service: "{{ command_printf }}" - data: - cmd: weather01.p08.pic=63 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a09 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather01.p09.pic=53 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a10 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather01.p10.pic=53 - ##### ICON ##### +##### Weather Forcast Today Symbole Home Meteorologisk HA Default ##### - if: - condition: template value_template: @@ -11179,60 +12387,11 @@ action: - service: "{{ command_printf }}" data: cmd: weather01.a03.pic=15 - ##### Forcast Day 1 Meteorologisk ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a04 ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[0].templow | round(0)}}°' - - service: "{{ command_text_printf }}" - data: - component: weather02.a05 ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[0].temperature | round(0)}}°' - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a06 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather02.p06.pic=53 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a07 - message: '{{state_attr(ha_weather,"forecast")[0].precipitation| round(1)}} mm' - - service: "{{ command_printf }}" - data: - cmd: weather02.p07.pic=59 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a08 - message: '{{state_attr(ha_weather,"forecast")[0].wind_speed | round(0)}} km/h' - - service: "{{ command_printf }}" - data: - cmd: weather02.p08.pic=63 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a09 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather02.p09.pic=53 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a10 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather02.p10.pic=53 - ##### ICON ##### +##### Weather Forcast Day 1 Symbole Home Meteorologisk HA Default ##### - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''sunny''}}' then: - service: "{{ command_printf }}" @@ -11241,7 +12400,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''cloudy''}}' then: - service: "{{ command_printf }}" @@ -11250,7 +12409,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''rainy''}}' then: - service: "{{ command_printf }}" @@ -11259,7 +12418,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''pouring''}}' then: - service: "{{ command_printf }}" @@ -11268,7 +12427,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''snowy''}}' then: - service: "{{ command_printf }}" @@ -11277,7 +12436,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''hail''}}' then: - service: "{{ command_printf }}" @@ -11286,7 +12445,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''snowy-rainy''}}' then: - service: "{{ command_printf }}" @@ -11295,7 +12454,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''fog''}}' then: - service: "{{ command_printf }}" @@ -11304,7 +12463,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''windy''}}' then: - service: "{{ command_printf }}" @@ -11313,7 +12472,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''windy-variant''}}' then: - service: "{{ command_printf }}" @@ -11322,7 +12481,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''lightning''}}' then: - service: "{{ command_printf }}" @@ -11331,7 +12490,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''partlycloudy''}}' then: - service: "{{ command_printf }}" @@ -11340,7 +12499,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''lightning-rainy''}}' then: - service: "{{ command_printf }}" @@ -11349,7 +12508,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''execptional''}}' then: - service: "{{ command_printf }}" @@ -11358,66 +12517,17 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[0].condition + '{{state_attr(ha_weather,"forecast")[1].condition == ''clear-night''}}' then: - service: "{{ command_printf }}" data: cmd: weather02.a03.pic=15 - ##### Forcast Day 2 Meteorologisk ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a04 ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[1].templow | round(0)}}°' - - service: "{{ command_text_printf }}" - data: - component: weather03.a05 ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°' - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a06 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather03.p06.pic=53 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a07 - message: '{{state_attr(ha_weather,"forecast")[1].precipitation| round(1)}} mm' - - service: "{{ command_printf }}" - data: - cmd: weather03.p07.pic=59 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a08 - message: '{{state_attr(ha_weather,"forecast")[1].wind_speed | round(0)}} km/h' - - service: "{{ command_printf }}" - data: - cmd: weather03.p08.pic=63 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a09 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather03.p09.pic=53 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a10 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather03.p10.pic=53 - ##### ICON ##### +##### Weather Forcast Day 2 Symbole Home Meteorologisk HA Default ##### - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''sunny''}}' then: - service: "{{ command_printf }}" @@ -11426,7 +12536,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''cloudy''}}' then: - service: "{{ command_printf }}" @@ -11435,7 +12545,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''rainy''}}' then: - service: "{{ command_printf }}" @@ -11444,7 +12554,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''pouring''}}' then: - service: "{{ command_printf }}" @@ -11453,7 +12563,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''snowy''}}' then: - service: "{{ command_printf }}" @@ -11462,7 +12572,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''hail''}}' then: - service: "{{ command_printf }}" @@ -11471,7 +12581,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''snowy-rainy''}}' then: - service: "{{ command_printf }}" @@ -11480,7 +12590,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''fog''}}' then: - service: "{{ command_printf }}" @@ -11489,7 +12599,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''windy''}}' then: - service: "{{ command_printf }}" @@ -11498,7 +12608,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''windy-variant''}}' then: - service: "{{ command_printf }}" @@ -11507,7 +12617,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''lightning''}}' then: - service: "{{ command_printf }}" @@ -11516,7 +12626,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''partlycloudy''}}' then: - service: "{{ command_printf }}" @@ -11525,7 +12635,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''lightning-rainy''}}' then: - service: "{{ command_printf }}" @@ -11534,7 +12644,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''execptional''}}' then: - service: "{{ command_printf }}" @@ -11543,66 +12653,17 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[1].condition + '{{state_attr(ha_weather,"forecast")[2].condition == ''clear-night''}}' then: - service: "{{ command_printf }}" data: cmd: weather03.a03.pic=15 - ##### Forcast Day 3 Meteorologisk ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a04 ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[2].templow | round(0)}}°' - - service: "{{ command_text_printf }}" - data: - component: weather04.a05 ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°' - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a06 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather04.p06.pic=53 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a07 - message: '{{state_attr(ha_weather,"forecast")[2].precipitation| round(1)}} mm' - - service: "{{ command_printf }}" - data: - cmd: weather04.p07.pic=59 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a08 - message: '{{state_attr(ha_weather,"forecast")[2].wind_speed | round(0)}} km/h' - - service: "{{ command_printf }}" - data: - cmd: weather04.p08.pic=63 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a09 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather04.p09.pic=53 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a10 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather04.p10.pic=53 - ##### ICON ##### +##### Weather Forcast Day 3 Symbole Home Meteorologisk HA Default ##### - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''sunny''}}' then: - service: "{{ command_printf }}" @@ -11611,7 +12672,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''cloudy''}}' then: - service: "{{ command_printf }}" @@ -11620,7 +12681,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''rainy''}}' then: - service: "{{ command_printf }}" @@ -11629,7 +12690,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''pouring''}}' then: - service: "{{ command_printf }}" @@ -11638,7 +12699,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''snowy''}}' then: - service: "{{ command_printf }}" @@ -11647,7 +12708,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''hail''}}' then: - service: "{{ command_printf }}" @@ -11656,7 +12717,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''snowy-rainy''}}' then: - service: "{{ command_printf }}" @@ -11665,7 +12726,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''fog''}}' then: - service: "{{ command_printf }}" @@ -11674,7 +12735,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''windy''}}' then: - service: "{{ command_printf }}" @@ -11683,7 +12744,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''windy-variant''}}' then: - service: "{{ command_printf }}" @@ -11692,7 +12753,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''lightning''}}' then: - service: "{{ command_printf }}" @@ -11701,7 +12762,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''partlycloudy''}}' then: - service: "{{ command_printf }}" @@ -11710,7 +12771,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''lightning-rainy''}}' then: - service: "{{ command_printf }}" @@ -11719,7 +12780,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''execptional''}}' then: - service: "{{ command_printf }}" @@ -11728,66 +12789,17 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[2].condition + '{{state_attr(ha_weather,"forecast")[3].condition == ''clear-night''}}' then: - service: "{{ command_printf }}" data: cmd: weather04.a03.pic=15 - ##### Forcast Day 4 Meteorologisk ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a04 ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[3].templow | round(0)}}°' - - service: "{{ command_text_printf }}" - data: - component: weather05.a05 ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°' - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a06 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather05.p06.pic=53 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a07 - message: '{{state_attr(ha_weather,"forecast")[3].precipitation| round(1)}} mm' - - service: "{{ command_printf }}" - data: - cmd: weather05.p07.pic=59 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a08 - message: '{{state_attr(ha_weather,"forecast")[3].wind_speed | round(0)}} km/h' - - service: "{{ command_printf }}" - data: - cmd: weather05.p08.pic=63 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a09 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather05.p09.pic=53 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a10 - message: " " - - service: "{{ command_printf }}" - data: - cmd: weather05.p10.pic=53 - ##### ICON ##### +##### Weather Forcast Day 4 Symbole Home Meteorologisk HA Default ##### - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''sunny''}}' then: - service: "{{ command_printf }}" @@ -11796,7 +12808,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''cloudy''}}' then: - service: "{{ command_printf }}" @@ -11805,7 +12817,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''rainy''}}' then: - service: "{{ command_printf }}" @@ -11814,7 +12826,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''pouring''}}' then: - service: "{{ command_printf }}" @@ -11823,7 +12835,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''snowy''}}' then: - service: "{{ command_printf }}" @@ -11832,7 +12844,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''hail''}}' then: - service: "{{ command_printf }}" @@ -11841,7 +12853,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''snowy-rainy''}}' then: - service: "{{ command_printf }}" @@ -11850,7 +12862,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''fog''}}' then: - service: "{{ command_printf }}" @@ -11859,7 +12871,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''windy''}}' then: - service: "{{ command_printf }}" @@ -11868,7 +12880,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''windy-variant''}}' then: - service: "{{ command_printf }}" @@ -11877,7 +12889,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''lightning''}}' then: - service: "{{ command_printf }}" @@ -11886,7 +12898,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''partlycloudy''}}' then: - service: "{{ command_printf }}" @@ -11895,7 +12907,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''lightning-rainy''}}' then: - service: "{{ command_printf }}" @@ -11904,7 +12916,7 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{state_attr(ha_weather,"forecast")[4].condition == ''execptional''}}' then: - service: "{{ command_printf }}" @@ -11913,12 +12925,295 @@ action: - if: - condition: template value_template: - '{{state_attr(ha_weather,"forecast")[3].condition + '{{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)}}°' + +################################################################################ +##### Weather Forcast Details Home Meteorologisk HA Default ################################### +################################################################################ + - choose: + - conditions: + - condition: trigger + id: weather_update_state + - condition: template + value_template: '{{ weather == "Default" }}' +##### Weather Forcast Today "Details" Home Meteorologisk HA Default ##### + sequence: + - if: + - condition: template + value_template: '{{states(last_click) == "weather01"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a06 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p06.pic=53 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a07 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p07.pic=53 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a08 + message: '{{state_attr(ha_weather,"wind_speed") | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather01.p08.pic=63 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a09 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p10.pic=53 +##### Weather Forcast Day 1 "Details" Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather02"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a06 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather02.p06.pic=53 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a07 + message: '{{state_attr(ha_weather,"forecast")[0].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather02.p07.pic=59 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a08 + message: '{{state_attr(ha_weather,"forecast")[0].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather02.p08.pic=63 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a09 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather02.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather02.p10.pic=53 +##### Weather Forcast Day 2 "Details" Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather03"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a06 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather03.p06.pic=53 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a07 + message: '{{state_attr(ha_weather,"forecast")[1].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather03.p07.pic=59 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a08 + message: '{{state_attr(ha_weather,"forecast")[1].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather03.p08.pic=63 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a09 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather03.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather03.p10.pic=53 +##### Weather Forcast Day 3 "Details" Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather04"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a06 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather04.p06.pic=53 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a07 + message: '{{state_attr(ha_weather,"forecast")[2].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather04.p07.pic=59 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a08 + message: '{{state_attr(ha_weather,"forecast")[2].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather04.p08.pic=63 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a09 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather04.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather04.p10.pic=53 +##### Weather Forcast Day 4 "Details" Home Meteorologisk HA Default ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather05"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a06 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather05.p06.pic=53 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a07 + message: '{{state_attr(ha_weather,"forecast")[3].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather05.p07.pic=59 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a08 + message: '{{state_attr(ha_weather,"forecast")[3].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather05.p08.pic=63 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a09 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather05.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather05.p10.pic=53 + ######################################### # # @@ -11942,12 +13237,12 @@ action: - conditions: - condition: trigger id: - - weather_update - - nspanel_boot_step4 - - time_state + - nspanel_boot_weather + - weather_update_state + - weather_update_time - condition: template value_template: '{{ weather == "AccuWeather" }}' - ##### Weather Icon Home AccuWeather ##### +##### Weather Home Page Symbole Home "AccuWeather" ##### sequence: - if: - condition: template @@ -12075,61 +13370,7 @@ action: - service: "{{ command_printf }}" data: cmd: home.a05.pic=15 - - ##### Forcast Day 0 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)}}°" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a06 - message: - '{{ state_attr(accuweather_home,"forecast")[0].precipitation_probability}} - %' - - service: "{{ command_printf }}" - data: - cmd: weather01.p06.pic=59 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a07 - message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h" - - service: "{{ command_printf }}" - data: - cmd: weather01.p07.pic=60 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a08 - message: '{{state_attr(accuweather_uv_index_0d, "level")}} {{states(accuweather_uv_index_0d) | round(0)}}' - - service: "{{ command_printf }}" - data: - cmd: weather01.p08.pic=61 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a09 - message: - "{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}} - %" - - service: "{{ command_printf }}" - data: - cmd: weather01.p09.pic=62 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.a10 - message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h" - - service: "{{ command_printf }}" - data: - cmd: weather01.p10.pic=63 - ##### ICON ##### +##### Weather Forcast Today Symbole "AccuWeather" ##### - if: - condition: template value_template: @@ -12265,60 +13506,7 @@ action: - service: "{{ command_printf }}" data: cmd: weather01.a03.pic=15 - ##### Forcast Day 1 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)}}°" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a06 - message: - '{{ state_attr(accuweather_home,"forecast")[1].precipitation_probability}} - %' - - service: "{{ command_printf }}" - data: - cmd: weather02.p06.pic=59 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a07 - message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h" - - service: "{{ command_printf }}" - data: - cmd: weather02.p07.pic=60 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a08 - message: '{{state_attr(accuweather_uv_index_1d, "level")}} {{states(accuweather_uv_index_1d) | round(0)}}' - - service: "{{ command_printf }}" - data: - cmd: weather02.p08.pic=61 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a09 - message: - "{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}} - %" - - service: "{{ command_printf }}" - data: - cmd: weather02.p09.pic=62 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.a10 - message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h" - - service: "{{ command_printf }}" - data: - cmd: weather02.p10.pic=63 - ##### ICON ##### +##### Weather Forcast Day 1 Symbole "AccuWeather" ##### - if: - condition: template value_template: @@ -12454,60 +13642,7 @@ action: - service: "{{ command_printf }}" data: cmd: weather02.a03.pic=15 - ##### Forcast Day 2 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)}}°" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a06 - message: - '{{ state_attr(accuweather_home,"forecast")[2].precipitation_probability}} - %' - - service: "{{ command_printf }}" - data: - cmd: weather03.p06.pic=59 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a07 - message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h" - - service: "{{ command_printf }}" - data: - cmd: weather03.p07.pic=60 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a08 - message: '{{state_attr(accuweather_uv_index_2d, "level")}} {{states(accuweather_uv_index_2d) | round(0)}}' - - service: "{{ command_printf }}" - data: - cmd: weather03.p08.pic=61 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a09 - message: - "{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}} - %" - - service: "{{ command_printf }}" - data: - cmd: weather03.p09.pic=62 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.a10 - message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h" - - service: "{{ command_printf }}" - data: - cmd: weather03.p10.pic=63 - ##### ICON ##### +##### Weather Forcast Day 2 Symbole "AccuWeather" ##### - if: - condition: template value_template: @@ -12643,60 +13778,7 @@ action: - service: "{{ command_printf }}" data: cmd: weather03.a03.pic=15 - ##### Forcast Day 3 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)}}°" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a06 - message: - '{{ state_attr(accuweather_home,"forecast")[3].precipitation_probability}} - %' - - service: "{{ command_printf }}" - data: - cmd: weather04.p06.pic=59 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a07 - message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h" - - service: "{{ command_printf }}" - data: - cmd: weather04.p07.pic=60 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a08 - message: '{{state_attr(accuweather_uv_index_3d, "level")}} {{states(accuweather_uv_index_3d) | round(0)}}' - - service: "{{ command_printf }}" - data: - cmd: weather04.p08.pic=61 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a09 - message: - "{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}} - %" - - service: "{{ command_printf }}" - data: - cmd: weather04.p09.pic=62 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.a10 - message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h" - - service: "{{ command_printf }}" - data: - cmd: weather04.p10.pic=63 - ##### ICON ##### +##### Weather Forcast Day 3 Symbole "AccuWeather" ##### - if: - condition: template value_template: @@ -12832,60 +13914,7 @@ action: - service: "{{ command_printf }}" data: cmd: weather04.a03.pic=15 - ##### Forcast Day 4 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)}}°" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a06 - message: - '{{ state_attr(accuweather_home,"forecast")[4].precipitation_probability}} - %' - - service: "{{ command_printf }}" - data: - cmd: weather05.p06.pic=59 - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a07 - message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h" - - service: "{{ command_printf }}" - data: - cmd: weather05.p07.pic=60 - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a08 - message: '{{state_attr(accuweather_uv_index_4d, "level")}} {{states(accuweather_uv_index_4d) | round(0)}}' - - service: "{{ command_printf }}" - data: - cmd: weather05.p08.pic=61 - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a09 - message: - "{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}} - %" - - service: "{{ command_printf }}" - data: - cmd: weather05.p09.pic=62 - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.a10 - message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h" - - service: "{{ command_printf }}" - data: - cmd: weather05.p10.pic=63 - ##### ICON ##### +##### Weather Forcast Day 4 Symbole "AccuWeather" ##### - if: - condition: template value_template: @@ -13021,6 +14050,289 @@ action: - 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)}}°" + +################################################################################ +##### Weather Forcast Details "AccuWeather" ################################### +################################################################################ + - choose: + - conditions: + - condition: trigger + id: weather_update_state + - condition: template + value_template: '{{ weather == "AccuWeather" }}' +##### Weather Forcast Today Details "AccuWeather" ##### + sequence: + - if: + - condition: template + value_template: '{{states(last_click) == "weather01"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a06 + message: "{{ state_attr(accuweather_home,'forecast')[0].precipitation_probability}} %" + - service: "{{ command_printf }}" + data: + cmd: weather01.p06.pic=59 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a07 + message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather01.p07.pic=60 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a08 + message: "{{state_attr(accuweather_uv_index_0d, 'level')}} {{states(accuweather_uv_index_0d) | round(0)}}" + - service: "{{ command_printf }}" + data: + cmd: weather01.p08.pic=61 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a09 + message: "{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather01.p09.pic=62 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a10 + message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather01.p10.pic=63 +##### Weather Forcast Day 1 Details "AccuWeather" ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather02"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a06 + message: "{{ state_attr(accuweather_home,'forecast')[1].precipitation_probability}} %" + - service: "{{ command_printf }}" + data: + cmd: weather02.p06.pic=59 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a07 + message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather02.p07.pic=60 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a08 + message: "{{state_attr(accuweather_uv_index_1d, 'level')}} {{states(accuweather_uv_index_1d) | round(0)}}" + - service: "{{ command_printf }}" + data: + cmd: weather02.p08.pic=61 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a09 + message: "{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather02.p09.pic=62 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a10 + message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather02.p10.pic=63 +##### Weather Forcast Day 2 Details "AccuWeather" ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather03"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a06 + message: "{{ state_attr(accuweather_home,'forecast')[2].precipitation_probability}} %" + - service: "{{ command_printf }}" + data: + cmd: weather03.p06.pic=59 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a07 + message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather03.p07.pic=60 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a08 + message: "{{state_attr(accuweather_uv_index_2d, 'level')}} {{states(accuweather_uv_index_2d) | round(0)}}" + - service: "{{ command_printf }}" + data: + cmd: weather03.p08.pic=61 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a09 + message: "{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather03.p09.pic=62 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a10 + message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather03.p10.pic=63 +##### Weather Forcast Day 3 Details "AccuWeather" ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather04"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a06 + message: "{{ state_attr(accuweather_home,'forecast')[3].precipitation_probability}} %" + - service: "{{ command_printf }}" + data: + cmd: weather04.p06.pic=59 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a07 + message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather04.p07.pic=60 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a08 + message: "{{state_attr(accuweather_uv_index_3d, 'level')}} {{states(accuweather_uv_index_3d) | round(0)}}" + - service: "{{ command_printf }}" + data: + cmd: weather04.p08.pic=61 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a09 + message: "{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather04.p09.pic=62 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a10 + message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather04.p10.pic=63 +##### Weather Forcast Day 4 Details "AccuWeather" ##### + - if: + - condition: template + value_template: '{{states(last_click) == "weather05"}}' + then: + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a06 + message: "{{ state_attr(accuweather_home,'forecast')[4].precipitation_probability}} %" + - service: "{{ command_printf }}" + data: + cmd: weather05.p06.pic=59 + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a07 + message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather05.p07.pic=60 + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a08 + message: "{{state_attr(accuweather_uv_index_4d, 'level')}} {{states(accuweather_uv_index_4d) | round(0)}}" + - service: "{{ command_printf }}" + data: + cmd: weather05.p08.pic=61 + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a09 + message: "{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather05.p09.pic=62 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a10 + message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather05.p10.pic=63 + ######################################### # #