diff --git a/blueprint.yaml b/blueprint.yaml index 1cb0b45..4b22405 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -744,11 +744,20 @@ trigger_variables: nextion_inited_trigger: "switch.{{ nspanel_name_trigger }}_nextion_inited" current_page: "sensor.{{ nspanel_name_trigger }}_current_page" + ##### WEATHER Trigger ##### + weather: !input "weather" + ha_weather: "weather.home" + accuweather: !input "accuweather" + accuweather_value: "weather.{{ accuweather }}" + weather_entity: >- + {%- if weather == "Default" -%} {{ ha_weather }} + {%- elif weather == "AccuWeather" -%} {{ accuweather_value }} + {%- endif -%} + variables: ##### GENERAL ##### nspanel_name: !input "nspanel_name" time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}" - weather: !input "weather" language: !input "language" ##### PUSH TO NEXTION DISPLAY ##### @@ -789,8 +798,8 @@ variables: button_switch_on: "65" button_cover_off: "66" button_cover_on: "67" - hardware_button_pic_off: "115" - hardware_button_pic_on: "116" + hardware_button_pic_off: "98" + hardware_button_pic_on: "99" cover_pic_closed: "78" cover_pic_open: "79" battery_icon: "80" @@ -825,6 +834,15 @@ variables: weather_icon_lightning: "55" weather_icon_wind: "56" + # hotw_bt_pic + hotw_bt_blank: "100" + hotw_bt_off: "101" + hotw_bt_on: "102" + + # heating_bt_pic + heating_bt_pic_off: "103" + heating_bt_pic_on: "104" + ###### NEXTION COLOR MAPPING ##### button_color_1: "65535" button_color_2: "10597" @@ -866,40 +884,62 @@ variables: warm-white-middle: "1" warm-white-strong: "1" - ##### DATE - DE ##### - date01_de: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" - date02_de: "{{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" - date03_de: "{{ ((as_timestamp(now()) + 172800) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" - date04_de: "{{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" - date05_de: "{{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" + ##### MUI Multilingual User Interface (DE/EN) ##### + date01_mui: >- + {%- if language == "DE" -%} {{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }} + {%- elif language == "EN" -%} {{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }} + {%- endif -%} + date02_mui: >- + {%- if language == "DE" -%} {{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }} + {%- elif language == "EN" -%} {{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }} + {%- endif -%} + date03_mui: >- + {%- if language == "DE" -%} {{ ((as_timestamp(now()) + 172800) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }} + {%- elif language == "EN" -%} {{ ((as_timestamp(now()) + 172800) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }} + {%- endif -%} + date04_mui: >- + {%- if language == "DE" -%} {{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }} + {%- elif language == "EN" -%} {{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }} + {%- endif -%} + date05_mui: >- + {%- if language == "DE" -%} {{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }} + {%- elif language == "EN" -%} {{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }} + {%- endif -%} + day01_mui: >- + {%- if language == "DE" -%} Heute + {%- elif language == "EN" -%} Today + {%- endif -%} + day02_mui: >- + {%- if language == "DE" -%} Morgen + {%- elif language == "EN" -%} Tomorrow + {%- endif -%} + day03_mui: >- + {%- if language == "DE" -%} in 2 Tagen + {%- elif language == "EN" -%} in 2 Days + {%- endif -%} + day04_mui: >- + {%- if language == "DE" -%} in 3 Tagen + {%- elif language == "EN" -%} in 3 Days + {%- endif -%} + day05_mui: >- + {%- if language == "DE" -%} in 4 Tagen + {%- elif language == "EN" -%} in 4 Days + {%- endif -%} + on_mui: >- + {%- if language == "DE" -%} ein + {%- elif language == "EN" -%} on + {%- endif -%} + off_mui: >- + {%- if language == "DE" -%} aus + {%- elif language == "EN" -%} off + {%- endif -%} + heat_mui: >- + {%- if language == "DE" -%} heizen + {%- elif language == "EN" -%} heat + {%- endif -%} + - ##### DATE - EN ##### - date01_en: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}" - date02_en: "{{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}" - date03_en: "{{ ((as_timestamp(now()) + 172800) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}" - date04_en: "{{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}" - date05_en: "{{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}" - ##### DAY WEATHER FORCAST - DE ##### - day01_de: "Heute" - day02_de: "Morgen" - day03_de: "in 2 Tagen" - day04_de: "in 3 Tagen" - day05_de: "in 4 tagen" - - ##### DAY WEATHER FORCAST - EN ##### - day01_en: "Today" - day02_en: "Tomorrow" - day03_en: "in 2 Days" - day04_en: "in 3 Days" - day05_en: "in 4 Days" - - ##### WEATHER INTEGRATION - METEOROLOGISK HA DEFAULT ##### - ha_weather: "weather.home" - - ##### WEATHER INTEGRATION _ ACCUWEATHER ##### - accuweather: !input "accuweather" - accuweather_value: "weather.{{ accuweather }}" ##### FORCAST ACCUWEATHER - DAY 0 ##### accuweather_realfeel_temperature_min_0d: "sensor.{{ accuweather }}_realfeel_temperature_min_0d" @@ -1050,20 +1090,12 @@ trigger: minutes: "/1" id: time_state - #### Weather Temp - Trigger "weather_temp_state" #### - - platform: time_pattern - minutes: "10" - id: weather_temp_state - - #### Weather State - Trigger "weather_update_state" #### - - platform: template - value_template: '{{ states(last_click) is match "weather" }}' - id: weather_update_state - - #### Weather Time - Trigger "weather_update_time" #### -> kann gelöscht werden nah weather umbau - - platform: time_pattern - minutes: "10" - id: weather_update_time + #### Weather state changed ####### + - platform: event + event_type: state_changed + event_data: + entity_id: '{{ weather_entity }}' + id: weather_state_change ##### Humidity - Trigger "humidity_state" ##### - platform: event @@ -1458,91 +1490,13 @@ action: component: home.loading message: "Loading - PLS WAIT!" - ##### NSPanel boot init language ##### + ##### NSPanel boot init Date ##### - delay: milliseconds: "{{ delay_value }}" - - choose: - ##### NSPanel boot init language DE ##### DONE - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - ####### Date ##### - - service: "{{ command_text_printf }}" - data: - component: home.date - message: "{{ date01_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather01.a02 - message: "{{ date01_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather02.a02 - message: "{{ date02_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather03.a02 - message: "{{ date03_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather04.a02 - message: "{{ date04_de }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather05.a02 - message: "{{ date05_de }}" - - ##### NSPanel boot init language EN ##### DONE - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - ##### Date ##### - - service: "{{ command_text_printf }}" - data: - component: home.date - message: "{{ date01_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather01.a02 - message: "{{ date01_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather02.a02 - message: "{{ date02_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather03.a02 - message: "{{ date03_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather04.a02 - message: "{{ date04_en }}" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: weather05.a02 - message: "{{ date05_de }}" + - service: "{{ command_text_printf }}" + data: + component: home.date + message: "{{ date01_mui }}" ##### NSPanel boot init buttons ##### - delay: @@ -1773,143 +1727,50 @@ action: data: component: home.hotwater_temp message: "{{ states(hotwatertemp) |round(1) }}°" - # - delay: - # milliseconds: "{{ delay_value }}" - # - service: "{{ command_text_printf }}" - # data: - # component: climate.hotwater_temp - # message: "{{ states(hotwatertemp) |round(1) }}°" ##### NSPanel boot init - Outdoor Temp ##### - - choose: - ##### Outdoor Temp Entity ##### - - conditions: - - condition: template - value_template: '{{ outdoortemp is match "sensor." }}' - sequence: - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: home.outdoor_temp - message: "{{ states(outdoortemp) |round(0) }}°" - # - delay: - # milliseconds: "{{ delay_value }}" - # - service: "{{ command_text_printf }}" - # data: - # component: climate.outdoor_temp - # message: "{{ states(outdoortemp) |round(0) }}°" - - ##### Outdoor Temp Default ##### - - conditions: - - condition: template - value_template: '{{ outdoortemp != "sensor." and weather == "Default" }}' - sequence: - ##### Outdoor Temp Default ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: home.outdoor_temp - message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' - # - delay: - # milliseconds: "{{ delay_value }}" - # - service: "{{ command_text_printf }}" - # data: - # component: climate.outdoor_temp - # message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' - - ##### Outdoor TempAccuweather ##### - - conditions: - - condition: template - value_template: '{{ outdoortemp != "sensor." and weather == "AccuWeather" }}' - sequence: - ### Outdoor TempAccuweather - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: home.outdoor_temp - message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°' - # - delay: - # milliseconds: "{{ delay_value }}" - # - service: "{{ command_text_printf }}" - # data: - # component: climate.outdoor_temp - # message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + - variables: + outdoor_temp: >- + {%- if outdoortemp is match "sensor." -%} {{ states(outdoortemp) |round(0) }} + {%- elif weather == "Default" -%} {{state_attr(ha_weather,"temperature") | round(0)}} + {%- elif weather == "AccuWeather" -%} {{state_attr(accuweather_value,"temperature") | round(0)}} + {%- endif -%} + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.outdoor_temp + message: "{{ outdoor_temp }}°" ##### Weather Icon Home Page - - choose: - ##### Weather PIC - DEFAULT HA ##### - - conditions: - - condition: template - value_template: '{{ weather == "Default" }}' - sequence: - - variables: - # weather PIC - weather_pic: >- - {%- 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 #### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: home.weather.pic={{ weather_pic }} - - ##### Weather PIC - ACCUWEATHER ##### - - conditions: - - condition: template - value_template: '{{ weather == "AccuWeather" }}' - sequence: - - variables: - # weather PIC - weather_pic: >- - {%- if states(accuweather_value) == 'sunny' -%} {{ weather_sunny }} - {%- elif states(accuweather_value) == 'cloudy' -%} {{ weather_cloudy }} - {%- elif states(accuweather_value) == 'rainy' -%} {{ weather_rainy }} - {%- elif states(accuweather_value) == 'pouring' -%} {{ weather_pouring }} - {%- elif states(accuweather_value) == 'snowy' -%} {{ weather_snowy }} - {%- elif states(accuweather_value) == 'hail' -%} {{ weather_hail }} - {%- elif states(accuweather_value) == 'snowy-rainy' -%} {{ weather_snowy_rainy }} - {%- elif states(accuweather_value) == 'fog' -%} {{ weather_fog }} - {%- elif states(accuweather_value) == 'windy' -%} {{ weather_windy }} - {%- elif states(accuweather_value) == 'windy-variant' -%} {{ weather_windy-variant }} - {%- elif states(accuweather_value) == 'lightning' -%} {{ weather_lightning }} - {%- elif states(accuweather_value) == 'partlycloudy' and states('sun.sun') == 'above_horizon' -%} {{ weather_partlycloudy_day }} - {%- elif states(accuweather_value) == 'partlycloudy' and states('sun.sun') == 'below_horizon' -%} {{ weather_partlycloudy_night }} - {%- elif states(accuweather_value) == 'lightning-rainy' and states('sun.sun') == 'above_horizon' -%} {{ weather_lightning_rainy_day }} - {%- elif states(accuweather_value) == 'lightning-rainy' and states('sun.sun') == 'below_horizon' -%} {{ weather_lightning_rainy_night }} - {%- elif states(accuweather_value) == 'execptional' and states('sun.sun') == 'above_horizon' -%} {{ weather_execptional_day }} - {%- elif states(accuweather_value) == 'execptional' and states('sun.sun') == 'below_horizon' -%} {{ weather_execptional_night }} - {%- elif states(accuweather_value) == 'clear-night' -%} {{ weather_clear_night }} - {%- endif -%} - - ##### SET weather PIC on Home Page #### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" - data: - cmd: home.weather.pic={{ weather_pic }} + - variables: + weather_pic: >- + {%- if states(weather_entity) == 'sunny' -%} {{ weather_sunny }} + {%- elif states(weather_entity) == 'cloudy' -%} {{ weather_cloudy }} + {%- elif states(weather_entity) == 'rainy' -%} {{ weather_rainy }} + {%- elif states(weather_entity) == 'pouring' -%} {{ weather_pouring }} + {%- elif states(weather_entity) == 'snowy' -%} {{ weather_snowy }} + {%- elif states(weather_entity) == 'hail' -%} {{ weather_hail }} + {%- elif states(weather_entity) == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif states(weather_entity) == 'fog' -%} {{ weather_fog }} + {%- elif states(weather_entity) == 'windy' -%} {{ weather_windy }} + {%- elif states(weather_entity) == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif states(weather_entity) == 'lightning' -%} {{ weather_lightning }} + {%- elif states(weather_entity) == 'partlycloudy' and states('sun.sun') == 'above_horizon' -%} {{ weather_partlycloudy_day }} + {%- elif states(weather_entity) == 'partlycloudy' and states('sun.sun') == 'below_horizon' -%} {{ weather_partlycloudy_night }} + {%- elif states(weather_entity) == 'lightning-rainy' and states('sun.sun') == 'above_horizon' -%} {{ weather_lightning_rainy_day }} + {%- elif states(weather_entity) == 'lightning-rainy' and states('sun.sun') == 'below_horizon' -%} {{ weather_lightning_rainy_night }} + {%- elif states(weather_entity) == 'execptional' and states('sun.sun') == 'above_horizon' -%} {{ weather_execptional_day }} + {%- elif states(weather_entity) == 'execptional' and states('sun.sun') == 'below_horizon' -%} {{ weather_execptional_night }} + {%- elif states(weather_entity) == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: home.weather.pic={{ weather_pic }} + ##### NSPanel boot init - Left Button Name ##### - if: - condition: template @@ -1961,9 +1822,6 @@ action: cmd: home.right_bt_pic.pic={{ right_hardware_button_state }} - - - ##### NSPanel boot init finished ##### - delay: milliseconds: "{{ delay_value }}" @@ -1984,7 +1842,6 @@ action: data: {} - ##### Update Button Page and Lightsettings / Coversettings Page ##### DONE - conditions: - condition: trigger @@ -2388,7 +2245,6 @@ action: message: '0 %' - ##### Page Button - SHORT Press - Toggle Enities ##### DONE - conditions: - condition: trigger @@ -2444,7 +2300,6 @@ action: entity_id: "{{ entity_short }}" - ##### Page Button - LONG Press - JUMP to Page Lightsettings / Coversettings ##### DONE - conditions: - condition: trigger @@ -2624,7 +2479,6 @@ action: cmd: coversettings.cover_status.pic={{ cover_pic_closed }} - ##### LASTCLICK_LIGHTSETTINGS - Changes on page Light-Settings ##### DONE - conditions: - condition: trigger @@ -2695,7 +2549,6 @@ action: cmd: "{{ entity_back }}" - ##### LASTCLICK_COVERSETTINGS - Changes on page Cover-Settings ##### DONE - conditions: - condition: trigger @@ -2782,7 +2635,6 @@ action: milliseconds: "{{ delay_value }}" - ##### Left button State ##### DONE - conditions: - condition: trigger @@ -2793,8 +2645,8 @@ action: - variables: # Hardware Button PIC left_hardware_button_state: >- - {%- if states(left_button_entity) == 'off' -%} {{ hardware_button_pic_off }} - {%- elif states(left_button_entity) == 'on' -%} {{ hardware_button_pic_on }} + {%- if trigger.event.data.new_state.state == 'off' -%} {{ hardware_button_pic_off }} + {%- elif trigger.event.data.new_state.state == 'on' -%} {{ hardware_button_pic_on }} {%- endif -%} ##### SET Right hardware Button PIC on Home Page #### @@ -2803,7 +2655,6 @@ action: cmd: home.left_bt_pic.pic={{ left_hardware_button_state }} - ##### Right button press ##### DONE - conditions: - condition: trigger @@ -2823,7 +2674,6 @@ action: entity_id: "{{ right_button_entity }}" - ##### Right button State ##### DONE - conditions: - condition: trigger @@ -2834,8 +2684,8 @@ action: - variables: # Hardware Button PIC right_hardware_button_state: >- - {%- if states(right_button_entity) == 'off' -%} {{ hardware_button_pic_off }} - {%- elif states(right_button_entity) == 'on' -%} {{ hardware_button_pic_on }} + {%- if trigger.event.data.new_state.state == 'off' -%} {{ hardware_button_pic_off }} + {%- elif trigger.event.data.new_state.state == 'on' -%} {{ hardware_button_pic_on }} {%- endif -%} ##### SET Right hardware Button PIC on Home Page #### @@ -2844,7 +2694,6 @@ action: cmd: home.right_bt_pic.pic={{ right_hardware_button_state }} - ##### Date and Time Home Page ##### DONE - conditions: - condition: trigger @@ -2855,32 +2704,12 @@ action: data: component: home.time message: "{{ time }}" - - - choose: - ##### Date Home Page + Forcast DE ##### - - conditions: - - condition: template - value_template: '{{ language == "DE" }}' - sequence: - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: home.date - message: "{{ date01_de }}" - - ##### Date Home Page + Forcast EN ##### - - conditions: - - condition: template - value_template: '{{ language == "EN" }}' - sequence: - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: home.date - message: "{{ date0_en }}" - + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.date + message: "{{ date01_mui }}" ##### Humidity ##### DONE @@ -2891,8 +2720,7 @@ action: - service: "{{ command_text_printf }}" data: component: home.humidity_state - message: "{{ states(humidity) |round(0) }}%" - + message: "{{ trigger.event.data.new_state.state |round(0) }}%" ##### Hotwater Temp ##### DONE @@ -2903,13 +2731,13 @@ action: - service: "{{ command_text_printf }}" data: component: home.hotwater_temp - message: "{{ states(hotwatertemp) |round(1) }}°" + message: "{{ trigger.event.data.new_state.state |round(1) }}°" - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_text_printf }}" data: component: climate.hotwater_temp - message: "{{ states(hotwatertemp) |round(1) }}°" + message: "{{ trigger.event.data.new_state.state |round(1) }}°" - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_printf }}" @@ -2917,7 +2745,6 @@ action: cmd: home.hotwater_pic.pic={{ hotwater_pic_on }} - ##### Outdoor Temp Entity ##### DONE - conditions: - condition: trigger @@ -2926,54 +2753,57 @@ action: - service: "{{ command_text_printf }}" data: component: home.outdoor_temp - message: "{{ states(outdoortemp) |round(0) }}°" + message: "{{ trigger.event.data.new_state.state |round(0) }}°" - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_text_printf }}" data: component: climate.outdoor_temp - message: "{{ states(outdoortemp) |round(0) }}°" + message: "{{ trigger.event.data.new_state.state |round(0) }}°" - ##### Outdoor Temp Weather Integration ##### DONE + ##### Weather state change update ##### - conditions: - condition: trigger - id: weather_temp_time + id: weather_state_change sequence: - - choose: - - conditions: - ##### Outdoor Temp Default ##### - - condition: template - value_template: '{{ outdoortemp != "sensor." and weather == "Default" }}' - sequence: - - service: "{{ command_text_printf }}" - data: - component: home.outdoor_temp - message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' - # - delay: - # milliseconds: "{{ delay_value }}" - # - service: "{{ command_text_printf }}" - # data: - # component: climate.outdoor_temp - # message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' - - ##### Outdoor Temp Accuweather ##### - - conditions: - - condition: template - value_template: '{{ outdoortemp != "sensor." and weather == "AccuWeather" }}' - sequence: - - service: "{{ command_text_printf }}" - data: - component: home.outdoor_temp - message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°' - # - delay: - # milliseconds: "{{ delay_value }}" - # - service: "{{ command_text_printf }}" - # data: - # component: climate.outdoor_temp - # message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" - - + - if: + - condition: template + value_template: '{{ outdoortemp is not match "sensor." }}' + then: + - service: "{{ command_text_printf }}" + data: + component: home.outdoor_temp + message: '{{trigger.event.data.new_state.attributes.temperature | round(0)}}°' + - service: "{{ command_text_printf }}" + data: + component: climate.outdoor_temp + message: '{{trigger.event.data.new_state.attributes.temperature | round(0)}}°' + + - variables: + weather_pic: >- + {%- if trigger.event.data.new_state.state == 'sunny' -%} {{ weather_sunny }} + {%- elif trigger.event.data.new_state.state == 'cloudy' -%} {{ weather_cloudy }} + {%- elif trigger.event.data.new_state.state == 'rainy' -%} {{ weather_rainy }} + {%- elif trigger.event.data.new_state.state == 'pouring' -%} {{ weather_pouring }} + {%- elif trigger.event.data.new_state.state == 'snowy' -%} {{ weather_snowy }} + {%- elif trigger.event.data.new_state.state == 'hail' -%} {{ weather_hail }} + {%- elif trigger.event.data.new_state.state == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif trigger.event.data.new_state.state == 'fog' -%} {{ weather_fog }} + {%- elif trigger.event.data.new_state.state == 'windy' -%} {{ weather_windy }} + {%- elif trigger.event.data.new_state.state == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif trigger.event.data.new_state.state == 'lightning' -%} {{ weather_lightning }} + {%- elif trigger.event.data.new_state.state == 'partlycloudy' and states('sun.sun') == 'above_horizon' -%} {{ weather_partlycloudy_day }} + {%- elif trigger.event.data.new_state.state == 'partlycloudy' and states('sun.sun') == 'below_horizon' -%} {{ weather_partlycloudy_night }} + {%- elif trigger.event.data.new_state.state == 'lightning-rainy' and states('sun.sun') == 'above_horizon' -%} {{ weather_lightning_rainy_day }} + {%- elif trigger.event.data.new_state.state == 'lightning-rainy' and states('sun.sun') == 'below_horizon' -%} {{ weather_lightning_rainy_night }} + {%- elif trigger.event.data.new_state.state == 'execptional' and states('sun.sun') == 'above_horizon' -%} {{ weather_execptional_day }} + {%- elif trigger.event.data.new_state.state == 'execptional' and states('sun.sun') == 'below_horizon' -%} {{ weather_execptional_night }} + {%- elif trigger.event.data.new_state.state == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} + - service: "{{ command_printf }}" + data: + cmd: home.weather.pic={{ weather_pic }} ##### Page changed ##### - conditions: @@ -2984,6 +2814,139 @@ action: ## home ## - conditions: '{{ trigger.event.data.new_state.state == page_home }}' sequence: + ##### NSPanel Date ##### + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.date + message: "{{ date01_mui }}" + + ##### NSPanel Time ##### + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.time + message: "{{ time }}" + + ##### NSPanel Humidity ##### + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.humidity_state + message: "{{ states(humidity) |round(0) }}%" + + ##### NSPanel Hotwater ##### + - if: + - condition: template + value_template: '{{ hotwatertemp is match "sensor." }}' + then: + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: home.hotwater_pic.pic={{ hotwater_pic_on }} + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.hotwater_temp + message: "{{ states(hotwatertemp) |round(1) }}°" + + ##### NSPanel Outdoor Temp ##### + - variables: + outdoor_temp: >- + {%- if outdoortemp is match "sensor." -%} {{ states(outdoortemp) |round(0) }} + {%- elif weather == "Default" -%} {{state_attr(ha_weather,"temperature") | round(0)}} + {%- elif weather == "AccuWeather" -%} {{state_attr(accuweather_value,"temperature") | round(0)}} + {%- endif -%} + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.outdoor_temp + message: "{{ outdoor_temp }}°" + + ##### Weather Icon Home Page + - variables: + weather_pic: >- + {%- if states(weather_entity) == 'sunny' -%} {{ weather_sunny }} + {%- elif states(weather_entity) == 'cloudy' -%} {{ weather_cloudy }} + {%- elif states(weather_entity) == 'rainy' -%} {{ weather_rainy }} + {%- elif states(weather_entity) == 'pouring' -%} {{ weather_pouring }} + {%- elif states(weather_entity) == 'snowy' -%} {{ weather_snowy }} + {%- elif states(weather_entity) == 'hail' -%} {{ weather_hail }} + {%- elif states(weather_entity) == 'snowy-rainy' -%} {{ weather_snowy_rainy }} + {%- elif states(weather_entity) == 'fog' -%} {{ weather_fog }} + {%- elif states(weather_entity) == 'windy' -%} {{ weather_windy }} + {%- elif states(weather_entity) == 'windy-variant' -%} {{ weather_windy-variant }} + {%- elif states(weather_entity) == 'lightning' -%} {{ weather_lightning }} + {%- elif states(weather_entity) == 'partlycloudy' and states('sun.sun') == 'above_horizon' -%} {{ weather_partlycloudy_day }} + {%- elif states(weather_entity) == 'partlycloudy' and states('sun.sun') == 'below_horizon' -%} {{ weather_partlycloudy_night }} + {%- elif states(weather_entity) == 'lightning-rainy' and states('sun.sun') == 'above_horizon' -%} {{ weather_lightning_rainy_day }} + {%- elif states(weather_entity) == 'lightning-rainy' and states('sun.sun') == 'below_horizon' -%} {{ weather_lightning_rainy_night }} + {%- elif states(weather_entity) == 'execptional' and states('sun.sun') == 'above_horizon' -%} {{ weather_execptional_day }} + {%- elif states(weather_entity) == 'execptional' and states('sun.sun') == 'below_horizon' -%} {{ weather_execptional_night }} + {%- elif states(weather_entity) == 'clear-night' -%} {{ weather_clear_night }} + {%- endif -%} + + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: home.weather.pic={{ weather_pic }} + + ##### NSPanel Left Button Name ##### + - if: + - condition: template + value_template: '{{ left_button_name |length > 0 }}' + then: + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.left_bt_text + message: "{{ left_button_name }}" + + ##### SET Left Hardware Button PIC on Home Page #### + - variables: + # Hardware Button PIC + left_hardware_button_state: >- + {%- if states(left_button_entity) == 'off' -%} {{ hardware_button_pic_off }} + {%- elif states(left_button_entity) == 'on' -%} {{ hardware_button_pic_on }} + {%- endif -%} + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: home.left_bt_pic.pic={{ left_hardware_button_state }} + + ##### NSPanel Right Button Name ##### + - if: + - condition: template + value_template: '{{ right_button_name |length > 0 }}' + then: + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_text_printf }}" + data: + component: home.right_bt_text + message: "{{ right_button_name }}" + + ###### SET Right Hardware Button PIC on Home Page ##### + - variables: + # Hardware Button PIC + right_hardware_button_state: >- + {%- if states(right_button_entity) == 'off' -%} {{ hardware_button_pic_off }} + {%- elif states(right_button_entity) == 'on' -%} {{ hardware_button_pic_on }} + {%- endif -%} + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_printf }}" + data: + cmd: home.right_bt_pic.pic={{ right_hardware_button_state }} ## weather01 ## - conditions: '{{ trigger.event.data.new_state.state == page_weather01 }}' @@ -3029,49 +2992,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.day + message: "{{ day01_mui }}" + - 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 }}" - - ##### 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_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### @@ -3147,49 +3082,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.day + message: "{{ day01_mui }}" + - 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 }}" - - ##### 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_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### - service: "{{ command_text_printf }}" @@ -3316,49 +3223,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.day + message: "{{ day02_mui }}" + - 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 }}" - - ##### 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_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### @@ -3445,49 +3324,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.day + message: "{{ day02_mui }}" + - 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 }}" - - ##### 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_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### - service: "{{ command_text_printf }}" @@ -3614,49 +3465,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.day + message: "{{ day03_mui }}" + - 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 }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.date + message: "{{ date03_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### @@ -3743,49 +3566,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.day + message: "{{ day03_mui }}" + - 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 }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.date + message: "{{ date03_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### - service: "{{ command_text_printf }}" @@ -3912,49 +3707,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.day + message: "{{ day04_mui }}" + - 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 }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.date + message: "{{ date04_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### @@ -4041,49 +3808,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.day + message: "{{ day04_mui }}" + - 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 }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.date + message: "{{ date04_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### - service: "{{ command_text_printf }}" @@ -4210,49 +3949,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.day + message: "{{ day05_mui }}" + - 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 }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.date + message: "{{ date05_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### @@ -4339,49 +4050,21 @@ action: - 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 Name ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.day + message: "{{ day05_mui }}" + - 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 }}" + ##### Day Date ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.date + message: "{{ date05_mui }}" + - delay: + milliseconds: "{{ delay_value }}" ##### field 1 ##### - service: "{{ command_text_printf }}" @@ -4464,10 +4147,8 @@ action: {%- elif weather == "AccuWeather" -%} {{state_attr(accuweather_value,"temperature") | round(0)}} {%- endif -%} heating_state: >- - {%- if hvac_mode == "off" and language == "DE" -%} aus - {%- elif hvac_mode == "off" and language == "EN" -%} off - {%- elif hvac_mode != "off" and language == "DE" -%} heizen - {%- elif hvac_mode != "off" and language == "EN" -%} heat + {%- if hvac_mode == "off" -%} {{ off_mui }} + {%- elif hvac_mode != "off" -%} {{ heat_mui }} {%- endif -%} - service: "{{ command_text_printf }}" @@ -4487,7 +4168,7 @@ action: value: "{{target_temp}}" - service: "{{ command_text_printf }}" data: - component: thermostat.heating_state + component: heating_state message: "{{heating_state}}" - if: - condition: template @@ -4534,14 +4215,8 @@ action: ## buttonpage04 ## - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage04 }}' sequence: - - ####################### CHANGE ME ################################################# - - - - ##### Open Climate Settings ##### - conditions: - condition: trigger diff --git a/nspanel.tft b/nspanel.tft index 47db28f..9ebed29 100644 Binary files a/nspanel.tft and b/nspanel.tft differ