diff --git a/blueprint.yaml b/blueprint.yaml index 6694a28..4229ff3 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -840,22 +840,22 @@ variables: button_color_2: "10597" ###### NEXTION PAGE MAPPING ##### - page_home: 0 - page_weather01: 1 - page_weather02: 2 - page_weather03: 3 - page_weather04: 4 - page_weather05: 5 - page_climate: 6 - page_settings: 7 - page_boot: 8 - page_screensaver: 9 - page_lightsettings: 10 - page_coversettings: 11 - page_buttonpage01: 12 - page_buttonpage02: 13 - page_buttonpage03: 14 - page_buttonpage04: 15 + page_home: "0" + page_weather01: "1" + page_weather02: "2" + page_weather03: "3" + page_weather04: "4" + page_weather05: "5" + page_climate: "6" + page_settings: "7" + page_boot: "8" + page_screensaver: "9" + page_lightsettings: "10" + page_coversettings: "11" + page_buttonpage01: "12" + page_buttonpage02: "13" + page_buttonpage03: "14" + page_buttonpage04: "15" ##### COLOR PICKER COLOR MAPPING - color_name ##### yellow: "yellow" @@ -1153,12 +1153,12 @@ trigger: entity_id: "{{ last_click_coversettings }}" id: cover_settings - ##### Page Weather Forcast - Trigger "weather_settings" - Changes Weather Page via "Current Page 1, 2, 3, 4, 5 ##### + ##### Current page changed ##### - platform: event event_type: state_changed event_data: - entity_id: "{{ current_page in [1,2,3,4,5] }}" - id: weather_settings + entity_id: "{{ current_page }}" + id: current_page_changed ##### Page Button - Trigger "button_page" Entity sync ##### - platform: template @@ -1766,7 +1766,7 @@ action: data: component: home.humidity_state message: "{{ states(humidity) |round(0) }}%" - + ##### NSPanel boot init - NSPanel Temp ##### - delay: milliseconds: "{{ delay_value }}" @@ -1793,10 +1793,10 @@ action: message: "{{ states(hotwatertemp) |round(1) }}°" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: climate.hotwater_temp - message: "{{ states(hotwatertemp) |round(1) }}°" + # - service: "{{ command_text_printf }}" + # data: + # component: climate.hotwater_temp + # message: "{{ states(hotwatertemp) |round(1) }}°" ##### NSPanel boot init - Outdoor Temp ##### - choose: @@ -2993,1474 +2993,1553 @@ action: - ##### Weather Forcast ##### + ##### Page changed ##### - conditions: - condition: trigger - id: weather_settings + id: current_page_changed sequence: - choose: - ##### Weather - DEFAULT HA ##### - - conditions: - - condition: template - value_template: '{{ weather == "Default" }}' + ## home ## + - conditions: '{{ trigger.event.data.new_state.state == page_home }}' + sequence: + + ## weather01 ## + - conditions: '{{ trigger.event.data.new_state.state == page_weather01 }}' sequence: - choose: - ##### Weather Page - 01 - HA DEFAULT ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "1" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if states(ha_weather) == 'sunny' -%} {{ weather_sunny }} - {%- elif states(ha_weather) == 'cloudy' -%} {{ weather_cloudy }} - {%- elif states(ha_weather) == 'rainy' -%} {{ weather_rainy }} - {%- elif states(ha_weather) == 'pouring' -%} {{ weather_pouring }} - {%- elif states(ha_weather) == 'snowy' -%} {{ weather_snowy }} - {%- elif states(ha_weather) == 'hail' -%} {{ weather_hail }} - {%- elif states(ha_weather) == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif states(ha_weather) == 'fog' -%} {{ weather_fog }} - {%- elif states(ha_weather) == 'windy' -%} {{ weather_windy }} - {%- elif states(ha_weather) == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif states(ha_weather) == 'lightning' -%} {{ weather_lightning }} - {%- elif states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'above_horizon' -%} {{ weather_partlycloudy_day }} - {%- elif states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'below_horizon' -%} {{ weather_partlycloudy_night }} - {%- elif states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'above_horizon' -%} {{ weather_lightning_rainy_day }} - {%- elif states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'below_horizon' -%} {{ weather_lightning_rainy_night }} - {%- elif states(ha_weather) == 'execptional' and states('sun.sun') == 'above_horizon' -%} {{ weather_execptional_day }} - {%- elif states(ha_weather) == 'execptional' and states('sun.sun') == 'below_horizon' -%} {{ weather_execptional_night }} - {%- elif states(ha_weather) == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + - conditions: '{{ weather == "Default" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if states(ha_weather) == 'sunny' -%} {{ weather_sunny }} + {%- elif states(ha_weather) == 'cloudy' -%} {{ weather_cloudy }} + {%- elif states(ha_weather) == 'rainy' -%} {{ weather_rainy }} + {%- elif states(ha_weather) == 'pouring' -%} {{ weather_pouring }} + {%- elif states(ha_weather) == 'snowy' -%} {{ weather_snowy }} + {%- elif states(ha_weather) == 'hail' -%} {{ weather_hail }} + {%- elif states(ha_weather) == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif states(ha_weather) == 'fog' -%} {{ weather_fog }} + {%- elif states(ha_weather) == 'windy' -%} {{ weather_windy }} + {%- elif states(ha_weather) == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif states(ha_weather) == 'lightning' -%} {{ weather_lightning }} + {%- elif states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'above_horizon' -%} {{ weather_partlycloudy_day }} + {%- elif states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'below_horizon' -%} {{ weather_partlycloudy_night }} + {%- elif states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'above_horizon' -%} {{ weather_lightning_rainy_day }} + {%- elif states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'below_horizon' -%} {{ weather_lightning_rainy_night }} + {%- elif states(ha_weather) == 'execptional' and states('sun.sun') == 'above_horizon' -%} {{ weather_execptional_day }} + {%- elif states(ha_weather) == 'execptional' and states('sun.sun') == 'below_horizon' -%} {{ weather_execptional_night }} + {%- elif states(ha_weather) == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather01.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather01.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather01.temp_max ### Temperature MAX ### - message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather01.temp_max ### Temperature MAX ### + message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.day - message: "{{ day01_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.day + message: "{{ day01_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.date - message: "{{ date01_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.date + message: "{{ date01_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.day - message: "{{ day01_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.day + message: "{{ day01_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.date - message: "{{ date01_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.date + message: "{{ date01_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### + ##### field 1 ##### - ##### field 2 ##### + ##### field 2 ##### - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.value03 - message: '{{state_attr(ha_weather,"wind_speed") | round(0)}} km/h' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather01.value03_pic.pic={{ weather_icon_wind }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.value03 + message: '{{state_attr(ha_weather,"wind_speed") | round(0)}} km/h' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather01.value03_pic.pic={{ weather_icon_wind }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### + ##### field 4 ##### - ##### field 5 ##### + ##### field 5 ##### + + - conditions: '{{ weather == "AccuWeather" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(accuweather_value,"forecast")[0].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### Weather Page - 02 - HA DEFAULT ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "2" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(ha_weather,"forecast")[0].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(ha_weather,"forecast")[0].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather01.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather02.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather01.temp_min ### Temperature MIN ### + message: '{{states(accuweather_realfeel_temperature_min_0d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather02.temp_min ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[0].templow | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather01.temp_max ### Temperature MAX ### + message: '{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather02.temp_max ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[0].temperature | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.day + message: "{{ day01_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.day - message: "{{ day02_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.date + message: "{{ date01_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.date - message: "{{ date02_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.day + message: "{{ day01_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.day - message: "{{ day02_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.date + message: "{{ date01_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.date - message: "{{ date02_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.value01 + message: "{{ state_attr(accuweather_value,'forecast')[0].precipitation_probability}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather01.value01_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.value02 + message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather01.value02_pic.pic={{ weather_icon_sun }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value02 - message: '{{state_attr(ha_weather,"forecast")[0].precipitation| round(1)}} mm' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value02_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.value03 + message: "{{state_attr(accuweather_uv_index_0d, 'level')}} {{states(accuweather_uv_index_0d) | round(0)}}" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather01.value03_pic.pic={{ weather_icon_protect }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value03 - message: '{{state_attr(ha_weather,"forecast")[0].wind_speed | round(1)}} km/h' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value03_pic.pic={{ weather_icon_wind }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.value04 + message: "{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather01.value04_pic.pic={{ weather_icon_lightning }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.value05 + message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather01.value05_pic.pic={{ weather_icon_wind }} - ##### field 5 ##### + default: + - service: "{{ command_printf }}" + data: + cmd: "page {{ page_home }}" - ##### Weather Page - 03 - HA DEFAULT ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "3" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(ha_weather,"forecast")[1].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(ha_weather,"forecast")[1].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} - - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather03.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather03.temp_min ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[1].templow | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather03.temp_max ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.day - message: "{{ day03_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.date - message: "{{ date03_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.day - message: "{{ day03_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.date - message: "{{ date03_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 1 ##### - - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value02 - message: '{{state_attr(ha_weather,"forecast")[1].precipitation| round(1)}} mm' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value02_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value03 - message: '{{state_attr(ha_weather,"forecast")[1].wind_speed | round(1)}} km/h' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value03_pic.pic={{ weather_icon_wind }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 4 ##### - - ##### field 5 ##### - - ##### Weather Page - 04 - HA DEFAULT ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "4" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(ha_weather,"forecast")[2].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(ha_weather,"forecast")[2].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} - - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather04.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather04.temp_min ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[2].templow | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather04.temp_max ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.day - message: "{{ day04_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.date - message: "{{ date04_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.day - message: "{{ day04_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.date - message: "{{ date04_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 1 ##### - - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value02 - message: '{{state_attr(ha_weather,"forecast")[2].precipitation| round(1)}} mm' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value02_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value03 - message: '{{state_attr(ha_weather,"forecast")[2].wind_speed | round(1)}} km/h' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value03_pic.pic={{ weather_icon_wind }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 4 ##### - - ##### field 5 ##### - - ##### Weather Page - 05 - HA DEFAULT ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "5" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(ha_weather,"forecast")[3].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(ha_weather,"forecast")[3].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} - - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather05.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather05.temp_min ### Temperature MIN ### - message: '{{state_attr(ha_weather,"forecast")[3].templow | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather05.temp_max ### Temperature MAX ### - message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.day - message: "{{ day05_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.date - message: "{{ date05_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.day - message: "{{ day05_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.date - message: "{{ date05_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 1 ##### - - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value02 - message: '{{state_attr(ha_weather,"forecast")[3].precipitation| round(1)}} mm' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value02_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value03 - message: '{{state_attr(ha_weather,"forecast")[3].wind_speed | round(1)}} km/h' - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value03_pic.pic={{ weather_icon_wind }} - - delay: - milliseconds: "{{ delay_value }}" - - ##### field 4 ##### - - ##### field 5 ##### - - ##### Weather - Accuweather ##### - - conditions: - - condition: template - value_template: '{{ weather == "AccuWeather" }}' + ## weather02 ## + - conditions: '{{ trigger.event.data.new_state.state == page_weather02 }}' sequence: - choose: - ##### Weather Page - 01 - ACCUWEATHER ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "1" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(accuweather_value,"forecast")[0].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(accuweather_value,"forecast")[0].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + - conditions: '{{ weather == "Default" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(ha_weather,"forecast")[0].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(ha_weather,"forecast")[0].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather01.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather02.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather01.temp_min ### Temperature MIN ### - message: '{{states(accuweather_realfeel_temperature_min_0d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather02.temp_min ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[0].templow | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather01.temp_max ### Temperature MAX ### - message: '{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather02.temp_max ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[0].temperature | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.day - message: "{{ day01_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.day + message: "{{ day02_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.date - message: "{{ date01_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.date + message: "{{ date02_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.day - message: "{{ day01_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.day + message: "{{ day02_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.date - message: "{{ date01_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.date + message: "{{ date02_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.value01 - message: "{{ state_attr(accuweather_value,'forecast')[0].precipitation_probability}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather01.value01_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 1 ##### - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.value02 - message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather01.value02_pic.pic={{ weather_icon_sun }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value02 + message: '{{state_attr(ha_weather,"forecast")[0].precipitation| round(1)}} mm' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value02_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.value03 - message: "{{state_attr(accuweather_uv_index_0d, 'level')}} {{states(accuweather_uv_index_0d) | round(0)}}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather01.value03_pic.pic={{ weather_icon_protect }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value03 + message: '{{state_attr(ha_weather,"forecast")[0].wind_speed | round(1)}} km/h' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value03_pic.pic={{ weather_icon_wind }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.value04 - message: "{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather01.value04_pic.pic={{ weather_icon_lightning }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 4 ##### - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather01.value05 - message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather01.value05_pic.pic={{ weather_icon_wind }} + ##### field 5 ##### + + - conditions: '{{ weather == "AccuWeather" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(accuweather_value,"forecast")[1].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### Weather Page - 02 - ACCUWEATHER ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "2" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(accuweather_value,"forecast")[1].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(accuweather_value,"forecast")[1].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather02.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather02.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather02.temp_min ### Temperature MIN ### + message: '{{states(accuweather_realfeel_temperature_min_1d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather02.temp_min ### Temperature MIN ### - message: '{{states(accuweather_realfeel_temperature_min_1d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather02.temp_max ### Temperature MAX ### + message: '{{states(accuweather_realfeel_temperature_max_1d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather02.temp_max ### Temperature MAX ### - message: '{{states(accuweather_realfeel_temperature_max_1d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.day + message: "{{ day02_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.day - message: "{{ day02_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.date + message: "{{ date02_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.date - message: "{{ date02_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.day + message: "{{ day02_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.day - message: "{{ day02_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.date + message: "{{ date02_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.date - message: "{{ date02_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value01 + message: "{{ state_attr(accuweather_value,'forecast')[1].precipitation_probability}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value01_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value01 - message: "{{ state_attr(accuweather_value,'forecast')[1].precipitation_probability}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value01_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value02 + message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value02_pic.pic={{ weather_icon_sun }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value02 - message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value02_pic.pic={{ weather_icon_sun }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value03 + message: "{{state_attr(accuweather_uv_index_1d, 'level')}} {{states(accuweather_uv_index_1d) | round(0)}}" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value03_pic.pic={{ weather_icon_protect }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value03 - message: "{{state_attr(accuweather_uv_index_1d, 'level')}} {{states(accuweather_uv_index_1d) | round(0)}}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value03_pic.pic={{ weather_icon_protect }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value04 + message: "{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value04_pic.pic={{ weather_icon_lightning }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value04 - message: "{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value04_pic.pic={{ weather_icon_lightning }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.value05 + message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather02.value05_pic.pic={{ weather_icon_wind }} - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather02.value05 - message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather02.value05_pic.pic={{ weather_icon_wind }} + default: + - service: "{{ command_printf }}" + data: + cmd: "page {{ page_home }}" - ##### Weather Page - 03 - ACCUWEATHER ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "3" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(accuweather_value,"forecast")[2].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + ## weather03 ## + - conditions: '{{ trigger.event.data.new_state.state == page_weather03 }}' + sequence: + - choose: + - conditions: '{{ weather == "Default" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(ha_weather,"forecast")[1].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(ha_weather,"forecast")[1].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather03.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather03.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather03.temp_min ### Temperature MIN ### - message: '{{states(accuweather_realfeel_temperature_min_2d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather03.temp_min ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[1].templow | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather03.temp_max ### Temperature MAX ### - message: '{{states(accuweather_realfeel_temperature_max_2d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather03.temp_max ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.day - message: "{{ day03_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.day + message: "{{ day03_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.date - message: "{{ date03_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.date + message: "{{ date03_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.day - message: "{{ day03_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.day + message: "{{ day03_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.date - message: "{{ date03_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.date + message: "{{ date03_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value01 - message: "{{ state_attr(accuweather_value,'forecast')[2].precipitation_probability}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value01_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 1 ##### - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value02 - message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value02_pic.pic={{ weather_icon_sun }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value02 + message: '{{state_attr(ha_weather,"forecast")[1].precipitation| round(1)}} mm' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value02_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value03 - message: "{{state_attr(accuweather_uv_index_2d, 'level')}} {{states(accuweather_uv_index_2d) | round(0)}}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value03_pic.pic={{ weather_icon_protect }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value03 + message: '{{state_attr(ha_weather,"forecast")[1].wind_speed | round(1)}} km/h' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value03_pic.pic={{ weather_icon_wind }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value04 - message: "{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value04_pic.pic={{ weather_icon_lightning }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 4 ##### - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather03.value05 - message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather03.value05_pic.pic={{ weather_icon_wind }} + ##### field 5 ##### + + - conditions: '{{ weather == "AccuWeather" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(accuweather_value,"forecast")[2].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(accuweather_value,"forecast")[2].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### Weather Page - 04 - ACCUWEATHER ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "4" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(accuweather_value,"forecast")[3].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather03.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather04.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather03.temp_min ### Temperature MIN ### + message: '{{states(accuweather_realfeel_temperature_min_2d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather04.temp_min ### Temperature MIN ### - message: '{{states(accuweather_realfeel_temperature_min_3d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather03.temp_max ### Temperature MAX ### + message: '{{states(accuweather_realfeel_temperature_max_2d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather04.temp_max ### Temperature MAX ### - message: '{{states(accuweather_realfeel_temperature_max_3d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.day + message: "{{ day03_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.day - message: "{{ day04_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.date + message: "{{ date03_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.date - message: "{{ date04_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.day + message: "{{ day03_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.day - message: "{{ day04_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.date + message: "{{ date03_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.date - message: "{{ date04_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value01 + message: "{{ state_attr(accuweather_value,'forecast')[2].precipitation_probability}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value01_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value01 - message: "{{ state_attr(accuweather_value,'forecast')[3].precipitation_probability}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value01_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value02 + message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value02_pic.pic={{ weather_icon_sun }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value02 - message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value02_pic.pic={{ weather_icon_sun }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value03 + message: "{{state_attr(accuweather_uv_index_2d, 'level')}} {{states(accuweather_uv_index_2d) | round(0)}}" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value03_pic.pic={{ weather_icon_protect }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value03 - message: "{{state_attr(accuweather_uv_index_3d, 'level')}} {{states(accuweather_uv_index_3d) | round(0)}}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value03_pic.pic={{ weather_icon_protect }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value04 + message: "{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value04_pic.pic={{ weather_icon_lightning }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value04 - message: "{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value04_pic.pic={{ weather_icon_lightning }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.value05 + message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather03.value05_pic.pic={{ weather_icon_wind }} - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather04.value05 - message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather04.value05_pic.pic={{ weather_icon_wind }} + default: + - service: "{{ command_printf }}" + data: + cmd: "page {{ page_home }}" - ##### Weather Page - 05 - ACCUWEATHER ##### - - conditions: - - condition: template - value_template: '{{ states(current_page) == "5" }}' - sequence: - - variables: - # weather PIC - weather_icon: >- - {%- if state_attr(accuweather_value,"forecast")[4].condition == 'sunny' -%} {{ weather_sunny }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'cloudy' -%} {{ weather_cloudy }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'rainy' -%} {{ weather_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'pouring' -%} {{ weather_pouring }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'snowy' -%} {{ weather_snowy }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'hail' -%} {{ weather_hail }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'fog' -%} {{ weather_fog }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'windy' -%} {{ weather_windy }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'lightning' -%} {{ weather_lightning }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'execptional' -%} {{ weather_execptional_day }} - {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} + ## weather04 ## + - conditions: '{{ trigger.event.data.new_state.state == page_weather04 }}' + sequence: + - choose: + - conditions: '{{ weather == "Default" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(ha_weather,"forecast")[2].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(ha_weather,"forecast")[2].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} - ##### SET weather PIC on Home Page #### - - service: "{{ command_printf }}" - data: - cmd: weather05.weather_icon.pic={{ weather_icon }} - - delay: - milliseconds: "{{ delay_value }}" + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather04.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MIN #### - - service: "{{ command_text_printf }}" - data: - component: weather05.temp_min ### Temperature MIN ### - message: '{{states(accuweather_realfeel_temperature_min_4d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" - - ##### Slash ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.slash - message: '/' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather04.temp_min ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[2].templow | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET TEMP MAX #### - - service: "{{ command_text_printf }}" - data: - component: weather05.temp_max ### Temperature MAX ### - message: '{{states(accuweather_realfeel_temperature_max_4d) | round(0)}}°' - - delay: - milliseconds: "{{ delay_value }}" + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather04.temp_max ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" - ##### SET Language DE / EN ##### - - choose: - ##### Language DE for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.day - message: "{{ day05_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.day + message: "{{ day04_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.date - message: "{{ date05_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.date + message: "{{ date04_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Language EN for Day Name and Date ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Day Name ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.day - message: "{{ day05_de }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.day + message: "{{ day04_de }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### Day Date ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.date - message: "{{ date05_en }}" - - delay: - milliseconds: "{{ delay_value }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.date + message: "{{ date04_en }}" + - delay: + milliseconds: "{{ delay_value }}" - ##### field 1 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value01 - message: "{{ state_attr(accuweather_value,'forecast')[4].precipitation_probability}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value01_pic.pic={{ weather_icon_rain }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 1 ##### - ##### field 2 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value02 - message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value02_pic.pic={{ weather_icon_sun }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value02 + message: '{{state_attr(ha_weather,"forecast")[2].precipitation| round(1)}} mm' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value02_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 3 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value03 - message: "{{state_attr(accuweather_uv_index_4d, 'level')}} {{states(accuweather_uv_index_4d) | round(0)}}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value03_pic.pic={{ weather_icon_protect }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value03 + message: '{{state_attr(ha_weather,"forecast")[2].wind_speed | round(1)}} km/h' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value03_pic.pic={{ weather_icon_wind }} + - delay: + milliseconds: "{{ delay_value }}" - ##### field 4 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value04 - message: "{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}} %" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value04_pic.pic={{ weather_icon_lightning }} - - delay: - milliseconds: "{{ delay_value }}" + ##### field 4 ##### - ##### field 5 ##### - - service: "{{ command_text_printf }}" - data: - component: weather05.value05 - message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: weather05.value05_pic.pic={{ weather_icon_wind }} + ##### field 5 ##### + + - conditions: '{{ weather == "AccuWeather" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(accuweather_value,"forecast")[3].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(accuweather_value,"forecast")[3].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} + + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather04.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather04.temp_min ### Temperature MIN ### + message: '{{states(accuweather_realfeel_temperature_min_3d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather04.temp_max ### Temperature MAX ### + message: '{{states(accuweather_realfeel_temperature_max_3d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.day + message: "{{ day04_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.date + message: "{{ date04_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.day + message: "{{ day04_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.date + message: "{{ date04_en }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value01 + message: "{{ state_attr(accuweather_value,'forecast')[3].precipitation_probability}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value01_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value02 + message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value02_pic.pic={{ weather_icon_sun }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value03 + message: "{{state_attr(accuweather_uv_index_3d, 'level')}} {{states(accuweather_uv_index_3d) | round(0)}}" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value03_pic.pic={{ weather_icon_protect }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value04 + message: "{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value04_pic.pic={{ weather_icon_lightning }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.value05 + message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather04.value05_pic.pic={{ weather_icon_wind }} + + default: + - service: "{{ command_printf }}" + data: + cmd: "page {{ page_home }}" + + ## weather05 ## + - conditions: '{{ trigger.event.data.new_state.state == page_weather05 }}' + sequence: + - choose: + - conditions: '{{ weather == "Default" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(ha_weather,"forecast")[3].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(ha_weather,"forecast")[3].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} + + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather05.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather05.temp_min ### Temperature MIN ### + message: '{{state_attr(ha_weather,"forecast")[3].templow | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather05.temp_max ### Temperature MAX ### + message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.day + message: "{{ day05_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.date + message: "{{ date05_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.day + message: "{{ day05_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.date + message: "{{ date05_en }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 1 ##### + + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value02 + message: '{{state_attr(ha_weather,"forecast")[3].precipitation| round(1)}} mm' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value02_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value03 + message: '{{state_attr(ha_weather,"forecast")[3].wind_speed | round(1)}} km/h' + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value03_pic.pic={{ weather_icon_wind }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 4 ##### + + ##### field 5 ##### + + - conditions: '{{ weather == "AccuWeather" }}' + sequence: + - variables: + # weather PIC + weather_icon: >- + {%- if state_attr(accuweather_value,"forecast")[4].condition == 'sunny' -%} {{ weather_sunny }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'cloudy' -%} {{ weather_cloudy }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'rainy' -%} {{ weather_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'pouring' -%} {{ weather_pouring }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'snowy' -%} {{ weather_snowy }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'hail' -%} {{ weather_hail }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'fog' -%} {{ weather_fog }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'windy' -%} {{ weather_windy }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'lightning' -%} {{ weather_lightning }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'partlycloudy' -%} {{ weather_partlycloudy_day }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'lightning-rainy' -%} {{ weather_lightning_rainy_day }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'execptional' -%} {{ weather_execptional_day }} + {%- elif state_attr(accuweather_value,"forecast")[4].condition == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} + + ##### SET weather PIC on Home Page #### + - service: "{{ command_printf }}" + data: + cmd: weather05.weather_icon.pic={{ weather_icon }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET TEMP MIN #### + - service: "{{ command_text_printf }}" + data: + component: weather05.temp_min ### Temperature MIN ### + message: '{{states(accuweather_realfeel_temperature_min_4d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### Slash ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.slash + message: '/' + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET TEMP MAX #### + - service: "{{ command_text_printf }}" + data: + component: weather05.temp_max ### Temperature MAX ### + message: '{{states(accuweather_realfeel_temperature_max_4d) | round(0)}}°' + - delay: + milliseconds: "{{ delay_value }}" + + ##### SET Language DE / EN ##### + - choose: + ##### Language DE for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.day + message: "{{ day05_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.date + message: "{{ date05_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Language EN for Day Name and Date ##### + - conditions: + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + ##### Day Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.day + message: "{{ day05_de }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.date + message: "{{ date05_en }}" + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 1 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value01 + message: "{{ state_attr(accuweather_value,'forecast')[4].precipitation_probability}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value01_pic.pic={{ weather_icon_rain }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 2 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value02 + message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value02_pic.pic={{ weather_icon_sun }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 3 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value03 + message: "{{state_attr(accuweather_uv_index_4d, 'level')}} {{states(accuweather_uv_index_4d) | round(0)}}" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value03_pic.pic={{ weather_icon_protect }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 4 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value04 + message: "{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}} %" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value04_pic.pic={{ weather_icon_lightning }} + - delay: + milliseconds: "{{ delay_value }}" + + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.value05 + message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h" + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: weather05.value05_pic.pic={{ weather_icon_wind }} + + default: + - service: "{{ command_printf }}" + data: + cmd: "page {{ page_home }}" + + ## climate ## + - conditions: '{{ trigger.event.data.new_state.state == page_climate }}' + alias: 'climate page' + sequence: + - choose: + - conditions: '{{ weather == "Default" }}' + alias: 'default-weather' + sequence: + - service: "{{ command_text_printf }}" + data: + component: outdoor_temp + message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' + - conditions: '{{ weather == "AccuWeather" }}' + alias: 'AccuWeather' + sequence: + - service: "{{ command_text_printf }}" + data: + component: outdoor_temp + message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + - service: "{{ command_text_printf }}" + data: + component: current_temp + message: "{{state_attr(climate, 'current_temperature') | round(1)}}°" + - service: "{{ command_text_printf }}" + data: + component: target_temp + message: "{{state_attr(climate, 'temperature') | round(0)}}°" + - if: + - condition: template + value_template: '{{ hotwatertemp is match "sensor." }}' + then: + - service: "{{ command_text_printf }}" + data: + component: climate.hotwater_temp + message: "{{ states(hotwatertemp) |round(1) }}°" + + ## settings ## + - conditions: '{{ trigger.event.data.new_state.state == page_settings }}' + sequence: + + ## boot ## + - conditions: '{{ trigger.event.data.new_state.state == page_boot }}' + sequence: + + ## screensaver ## + - conditions: '{{ trigger.event.data.new_state.state == page_screensaver }}' + sequence: + + ## lightsettings ## + - conditions: '{{ trigger.event.data.new_state.state == page_lightsettings }}' + sequence: + + ## coversettings ## + - conditions: '{{ trigger.event.data.new_state.state == page_coversettings }}' + sequence: + + ## buttonpage01 ## + - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage01 }}' + sequence: + + ## buttonpage02 ## + - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage01 }}' + sequence: + + ## buttonpage03 ## + - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage03 }}' + sequence: + + ## buttonpage04 ## + - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage04 }}' + sequence: ##### Open Climate Settings ##### @@ -4475,7 +4554,7 @@ action: - service: "{{ command_printf }}" data: cmd: "page {{ page_climate }}" - + ############################################################# ##### CLOSE - Action #####