From ae81df86d0f4a7f25c7555f1dd33f016a355656c Mon Sep 17 00:00:00 2001 From: Blackymas <41958506+Blackymas@users.noreply.github.com> Date: Wed, 12 Oct 2022 21:51:14 +0200 Subject: [PATCH] Update BETA_blueprint.yaml --- BETA Version/BETA_blueprint.yaml | 587 +++++++++++++++++++++++++------ 1 file changed, 486 insertions(+), 101 deletions(-) diff --git a/BETA Version/BETA_blueprint.yaml b/BETA Version/BETA_blueprint.yaml index 0209f6d..6a8ce89 100644 --- a/BETA Version/BETA_blueprint.yaml +++ b/BETA Version/BETA_blueprint.yaml @@ -8,6 +8,14 @@ blueprint: description: Name NSPanel selector: text: {} + language: + name: Language for NSPanel (coming soon) + description: select your language for the values on the NSPanel display + selector: + select: + options: + - DE + - EN tft_path: name: Nextion TFT File Folder for the service Folder Watcher description: 'TFT Path where the Nextion TFT File is stored (same NSPanel as **"last click"**) Example *"/config/www/nspanel/buero/nspanel_buero.tft"*' @@ -28,6 +36,11 @@ blueprint: default: [] selector: text: {} + nextion_inited: + name: NSPanel "Nextion Switch - nextion_inited" + description: 'nextion_inited is set up via esphome and shows the state of the Nspanel - NSPanel ready after Reboot (same NSPanel as **"last click"**) Example *"switch.nspanel_buro_nextion_inited"*' + selector: + entity: {} outdoortemp: name: Outdoor Temperature Sensor (Optional) description: select the Temperature Sensor. If no outdoor sensor available write "default" or "accuweather" to use the outdoor temperature of the selected Weather Integration. This value is displayed on the Home Page an Thermostat Page @@ -522,7 +535,6 @@ trigger_variables: last_click: "sensor.{{ nspanel_trigger }}_last_click" last_click_lightsettings: "sensor.{{ nspanel_trigger }}_last_click_lightsettings" last_click_coversettings: "sensor.{{ nspanel_trigger }}_last_click_coversettings" - nextion_inited: "switch.{{ nspanel_trigger }}_nextion_inited" variables: nspanel_name: !input "nspanel_name" @@ -530,19 +542,28 @@ variables: command_value: "esphome.{{ nspanel_name }}_send_command_value" command_printf: "esphome.{{ nspanel_name }}_send_command_printf" tft_path: !input "tft_path" - # nextion_inited: !input 'nextion_inited' humidity: !input "humidity" hotwatertemp: !input "hotwatertemp" outdoortemp: !input "outdoortemp" time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}" weather: !input "weather" + # nextion_inited: "switch.{{ nspanel_name }}_nextion_inited" + nextion_inited: !input "nextion_inited" + language: !input "language" - ##### Weather ##### - date0: "{{ ((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,') }}" - date1: "{{ ((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,') }}" - date2: "{{ ((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,') }}" - date3: "{{ ((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,') }}" - date4: "{{ ((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,') }}" + ##### Weather DE ##### + date0_de: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" + date1_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,') }}" + date2_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,') }}" + date3_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,') }}" + date4_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,') }}" + + ##### Weather EN ##### + date0_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,') }}" + date1_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,') }}" + date2_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,') }}" + date3_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,') }}" + date4_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,') }}" ##### Meteorologisk HA Default ##### ha_weather: "weather.home" @@ -701,13 +722,20 @@ trigger: id: button_page #### NSPanel boot - Trigger #### - - platform: event - event_type: state_changed - event_data: - entity_id: "{{ nextion_inited }}" - # to: 'on' - # for: - # seconds: 5 + # - platform: event + # event_type: state_changed + # event_data: + # entity_id: "{{ nextion_inited }}" + # to: 'on' + # for: + # seconds: 5 + # id: nspanel_boot + #### NSPanel boot - Trigger #### + - platform: state + entity_id: !input "nextion_inited" + to: "on" + for: + seconds: 5 id: nspanel_boot ##### Humidity - Trigger ##### @@ -1207,7 +1235,7 @@ action: - service: "{{ command_text_printf }}" data: component: lightsettings.a03 - message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }}' + message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }} %' - service: "{{ command_text_printf }}" data: component: lightsettings.a04 @@ -1241,7 +1269,7 @@ action: - service: "{{ command_text_printf }}" data: component: lightsettings.a03 - message: '{{ states(last_click_lightsettings) |replace("brightness","") | int }}' + message: '{{ states(last_click_lightsettings) |replace("brightness","") | int }} %' ##### Page Lightsettings - Color_Temp Slider ##### - choose: @@ -1289,7 +1317,7 @@ action: - service: "{{ command_text_printf }}" data: component: lightsettings.a03 - message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }}' + message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }} %' - service: "{{ command_text_printf }}" data: component: lightsettings.a04 @@ -1321,11 +1349,11 @@ action: - service: "{{ command_text_printf }}" data: component: coversettings.a03 - message: '{{ (state_attr(entity_long, "position") | int ) |round(0) }}' + message: '{{ (state_attr(entity_long, "position") | int ) |round(0) }} %' - service: "{{ command_text_printf }}" data: component: coversettings.a04 - message: '{{ (state_attr(entity_long, "battery") | int ) |round(0) }}' + message: '{{ (state_attr(entity_long, "battery") | int ) |round(0) }} %' ##### Page Coversettings - SYNC Cover Button ON / OFF ##### - choose: @@ -1355,7 +1383,7 @@ action: - service: "{{ command_text_printf }}" data: component: coversettings.a03 - message: '{{ states(last_click_coversettings) |replace("coverposition","") | int }}' + message: '{{ states(last_click_coversettings) |replace("coverposition","") | int }} %' ##### Page Coversettings - Toggle Cover ##### - choose: @@ -1373,7 +1401,7 @@ action: - service: "{{ command_text_printf }}" data: component: coversettings.a03 - message: '{{ (state_attr(entity_long, "position") | int ) |round(0) }}' + message: '{{ (state_attr(entity_long, "position") | int ) |round(0) }} %' ##### Page Coversettings - Close Coversettings ##### - choose: @@ -1418,6 +1446,8 @@ action: id: - hotwatertemp_state - nspanel_boot + - condition: template + value_template: '{{ hotwatertemp is match "sensor." }}' sequence: - service: "{{ command_text_printf }}" data: @@ -1427,6 +1457,9 @@ action: data: component: thermostat.a08 message: "{{ states(hotwatertemp) |round(1) }}°" + - service: "{{ command_printf }}" + data: + cmd: home.p01.pic=68 ##### Outdoor Temp Entity ##### - choose: @@ -1486,38 +1519,75 @@ action: component: thermostat.a07 message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" - ##### Date Home Page + Forcast ##### + ##### Date Home Page + Forcast DE ##### - choose: - conditions: - condition: trigger id: - time_state - nspanel_boot + - condition: template + value_template: '{{ language == "DE" }}' sequence: - service: "{{ command_text_printf }}" data: component: home.a02 - message: "{{ date0 }}" + message: "{{ date0_de }}" - service: "{{ command_text_printf }}" data: component: weather01.a02 - message: "{{ date0 }}" + message: "{{ date0_de }}" - service: "{{ command_text_printf }}" data: component: weather02.a02 - message: "{{ date1 }}" + message: "{{ date1_de }}" - service: "{{ command_text_printf }}" data: component: weather03.a02 - message: "{{ date2 }}" + message: "{{ date2_de }}" - service: "{{ command_text_printf }}" data: component: weather04.a02 - message: "{{ date3 }}" + message: "{{ date3_de }}" - service: "{{ command_text_printf }}" data: component: weather05.a02 - message: "{{ date4 }}" + message: "{{ date4_de }}" + + ##### Date Home Page + Forcast EN ##### + - choose: + - conditions: + - condition: trigger + id: + - time_state + - nspanel_boot + - condition: template + value_template: '{{ language == "EN" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: home.a02 + message: "{{ date0_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather01.a02 + message: "{{ date0_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather02.a02 + message: "{{ date1_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather03.a02 + message: "{{ date2_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather04.a02 + message: "{{ date3_en }}" + - service: "{{ command_text_printf }}" + data: + component: weather05.a02 + message: "{{ date4_de }}" ##### Time Home Page ##### - choose: @@ -1532,6 +1602,69 @@ action: component: home.a01 message: "{{ time }}" + ##### language Setting DE ##### + - choose: + - conditions: + - condition: trigger + id: + - nspanel_boot + - condition: template + value_template: '{{ language == "DE" }}' + sequence: + - service: "{{ command_text_printf }}" + data: + component: weather01.a01 + message: Heute + - service: "{{ command_text_printf }}" + data: + component: weather02.a01 + message: Morgen + - service: "{{ command_text_printf }}" + data: + component: weather03.a01 + message: in 2 Tagen + - service: "{{ command_text_printf }}" + data: + component: weather04.a01 + message: in 3 Tagen + - service: "{{ command_text_printf }}" + data: + component: weather05.a01 + message: in 4 Tagen + - service: "{{ command_text_printf }}" + data: + component: settings.a06 + message: Neustart + - service: "{{ command_text_printf }}" + data: + component: settings.a07 + message: Sleep + - service: "{{ command_text_printf }}" + data: + component: settings.a08 + message: Helligkeit + - service: "{{ command_text_printf }}" + data: + component: settings.a09 + message: Dimmen + - service: "{{ command_text_printf }}" + data: + component: coversettings.a07 + message: Rollo + - service: "{{ command_text_printf }}" + data: + component: coversettings.a08 + message: Position + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a07 + message: Licht + - service: "{{ command_text_printf }}" + data: + component: lightsettings.a08 + message: Helligkeit + + ######################################### # # @@ -3061,25 +3194,46 @@ action: cmd: home.a05.pic=10 - if: - condition: template - value_template: "{{states(ha_weather) == 'partlycloudy'}}" + value_template: "{{states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'above_horizon' }}" then: - service: "{{ command_printf }}" data: cmd: home.a05.pic=11 - if: - condition: template - value_template: "{{states(ha_weather) == 'lightning-rainy'}}" + value_template: "{{states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'below_horizon' }}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=12 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'above_horizon'}}" then: - service: "{{ command_printf }}" data: cmd: home.a05.pic=13 - if: - condition: template - value_template: "{{states(ha_weather) == 'execptional'}}" + value_template: "{{states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'execptional' and states('sun.sun') == 'above_horizon'}}" then: - service: "{{ command_printf }}" data: cmd: home.a05.pic=13 + - if: + - condition: template + value_template: "{{states(ha_weather) == 'execptional' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 - if: - condition: template value_template: "{{states(ha_weather) == 'clear-night'}}" @@ -3096,26 +3250,47 @@ action: data: component: weather01.a05 ### Temperature MAX ### message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a06 ### field 1 ### + component: weather01.a06 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p06.pic=53 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a07 ### field 2 ### + component: weather01.a07 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p07.pic=53 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a08 ### field 3 ### - message: " " - - service: "{{ command_text_printf }}" - data: - component: weather01.a09 ### field 4 ### + component: weather01.a08 message: '{{state_attr(ha_weather,"wind_speed") | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather01.p08.pic=63 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a10 ### Field 5 ### + component: weather01.a09 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather01.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather01.p10.pic=53 + ##### ICON ##### - if: - condition: template value_template: @@ -3260,26 +3435,47 @@ action: data: component: weather02.a05 ### Temperature MAX ### message: '{{state_attr(ha_weather,"forecast")[0].temperature | round(0)}}°' + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a06 ### field 1 ### + component: weather02.a06 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather02.p06.pic=53 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a07 ### field 2 ### - message: "-" - - service: "{{ command_text_printf }}" - data: - component: weather02.a08 ### field 3 ### + component: weather02.a07 message: '{{state_attr(ha_weather,"forecast")[0].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather02.p07.pic=59 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a09 ### field 4 ### + component: weather02.a08 message: '{{state_attr(ha_weather,"forecast")[0].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather02.p08.pic=63 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a10 ### field 5 ### + component: weather02.a09 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather02.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather02.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather02.p10.pic=53 + ##### ICON ##### - if: - condition: template value_template: @@ -3424,26 +3620,47 @@ action: data: component: weather03.a05 ### Temperature MAX ### message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°' + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a06 ### field 1 ### + component: weather03.a06 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather03.p06.pic=53 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a07 ### field 2 ### - message: " " - - service: "{{ command_text_printf }}" - data: - component: weather03.a08 ### field 3 ### + component: weather03.a07 message: '{{state_attr(ha_weather,"forecast")[1].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather03.p07.pic=59 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a09 ### field 4 ### + component: weather03.a08 message: '{{state_attr(ha_weather,"forecast")[1].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather03.p08.pic=63 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a10 ### field 5 ### + component: weather03.a09 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather03.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather03.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather03.p10.pic=53 + ##### ICON ##### - if: - condition: template value_template: @@ -3588,26 +3805,47 @@ action: data: component: weather04.a05 ### Temperature MAX ### message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°' + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a06 ### field 1 ### + component: weather04.a06 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather04.p06.pic=53 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a07 ### field 2 ### - message: " " - - service: "{{ command_text_printf }}" - data: - component: weather04.a08 ### field 3 ### + component: weather04.a07 message: '{{state_attr(ha_weather,"forecast")[2].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather04.p07.pic=59 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a09 ### field 4 ### + component: weather04.a08 message: '{{state_attr(ha_weather,"forecast")[2].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather04.p08.pic=63 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a10 ### field 5 ### + component: weather04.a09 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather04.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather04.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather04.p10.pic=53 + ##### ICON ##### - if: - condition: template value_template: @@ -3752,26 +3990,47 @@ action: data: component: weather05.a05 ### Temperature MAX ### message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°' + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a06 ### field 1 ### + component: weather05.a06 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather05.p06.pic=53 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a07 ### field 2 ### - message: " " - - service: "{{ command_text_printf }}" - data: - component: weather05.a08 ### field 3 ### + component: weather05.a07 message: '{{state_attr(ha_weather,"forecast")[3].precipitation| round(1)}} mm' + - service: "{{ command_printf }}" + data: + cmd: weather05.p07.pic=59 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a09 ### field 4 ### + component: weather05.a08 message: '{{state_attr(ha_weather,"forecast")[3].wind_speed | round(0)}} km/h' + - service: "{{ command_printf }}" + data: + cmd: weather05.p08.pic=63 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a10 ### field 5 ### + component: weather05.a09 message: " " + - service: "{{ command_printf }}" + data: + cmd: weather05.p09.pic=53 + ##### field 5 ##### + - service: "{{ command_text_printf }}" + data: + component: weather05.a10 + message: " " + - service: "{{ command_printf }}" + data: + cmd: weather05.p10.pic=53 + ##### ICON ##### - if: - condition: template value_template: @@ -4016,25 +4275,46 @@ action: cmd: home.a05.pic=10 - if: - condition: template - value_template: "{{states(accuweather_home) == 'partlycloudy'}}" + value_template: "{{states(accuweather_home) == 'partlycloudy' and states('sun.sun') == 'above_horizon' }}" then: - service: "{{ command_printf }}" data: cmd: home.a05.pic=11 - if: - condition: template - value_template: "{{states(accuweather_home) == 'lightning-rainy'}}" + value_template: "{{states(accuweather_home) == 'partlycloudy' and states('sun.sun') == 'below_horizon' }}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=12 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'lightning-rainy' and states('sun.sun') == 'above_horizon'}}" then: - service: "{{ command_printf }}" data: cmd: home.a05.pic=13 - if: - condition: template - value_template: "{{states(accuweather_home) == 'execptional'}}" + value_template: "{{states(accuweather_home) == 'lightning-rainy' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'execptional' and states('sun.sun') == 'above_horizon'}}" then: - service: "{{ command_printf }}" data: cmd: home.a05.pic=13 + - if: + - condition: template + value_template: "{{states(accuweather_home) == 'execptional' and states('sun.sun') == 'below_horizon'}}" + then: + - service: "{{ command_printf }}" + data: + cmd: home.a05.pic=14 - if: - condition: template value_template: "{{states(accuweather_home) == 'clear-night'}}" @@ -4052,30 +4332,51 @@ action: data: component: weather01.a05 ### Temperature MAX ### message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a06 ### field 1 ### + component: weather01.a06 message: '{{ state_attr(accuweather_home,"forecast")[0].precipitation_probability}} %' + - service: "{{ command_printf }}" + data: + cmd: weather01.p06.pic=59 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a07 ### field 2 ### + component: weather01.a07 message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather01.p07.pic=60 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a08 ### field 3 ### + component: weather01.a08 message: '{{state_attr(accuweather_uv_index_0d, "level")}} {{states(accuweather_uv_index_0d) | round(0)}}' + - service: "{{ command_printf }}" + data: + cmd: weather01.p08.pic=61 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a09 ### field 4 ### + component: weather01.a09 message: "{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather01.p09.pic=62 + ##### field 5 ##### - service: "{{ command_text_printf }}" data: - component: weather01.a10 ### field 5 ### + component: weather01.a10 message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather01.p10.pic=63 + ##### ICON ##### - if: - condition: template value_template: @@ -4220,30 +4521,51 @@ action: data: component: weather02.a05 ### Temperature MAX ### message: "{{states(accuweather_realfeel_temperature_max_1d) | round(0)}}°" + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a06 ### field 1 ### + component: weather02.a06 message: '{{ state_attr(accuweather_home,"forecast")[1].precipitation_probability}} %' + - service: "{{ command_printf }}" + data: + cmd: weather02.p06.pic=59 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a07 ### field 2 ### + component: weather02.a07 message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather02.p07.pic=60 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a08 ### field 3 ### + component: weather02.a08 message: '{{state_attr(accuweather_uv_index_1d, "level")}} {{states(accuweather_uv_index_1d) | round(0)}}' + - service: "{{ command_printf }}" + data: + cmd: weather02.p08.pic=61 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a09 ### field 4 ### + component: weather02.a09 message: "{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather02.p09.pic=62 + ##### field 5 ##### - service: "{{ command_text_printf }}" data: - component: weather02.a10 ### field 5 ### + component: weather02.a10 message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather02.p10.pic=63 + ##### ICON ##### - if: - condition: template value_template: @@ -4388,30 +4710,51 @@ action: data: component: weather03.a05 ### Temperature MAX ### message: "{{states(accuweather_realfeel_temperature_max_2d) | round(0)}}°" + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a06 ### field 1 ### + component: weather03.a06 message: '{{ state_attr(accuweather_home,"forecast")[2].precipitation_probability}} %' + - service: "{{ command_printf }}" + data: + cmd: weather03.p06.pic=59 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a07 ### field 2 ### + component: weather03.a07 message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather03.p07.pic=60 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a08 ### field 3 ### + component: weather03.a08 message: '{{state_attr(accuweather_uv_index_2d, "level")}} {{states(accuweather_uv_index_2d) | round(0)}}' + - service: "{{ command_printf }}" + data: + cmd: weather03.p08.pic=61 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a09 ### field 4 ### + component: weather03.a09 message: "{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather03.p09.pic=62 + ##### field 5 ##### - service: "{{ command_text_printf }}" data: - component: weather03.a10 ### field 5 ### + component: weather03.a10 message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather03.p10.pic=63 + ##### ICON ##### - if: - condition: template value_template: @@ -4556,30 +4899,51 @@ action: data: component: weather04.a05 ### Temperature MAX ### message: "{{states(accuweather_realfeel_temperature_max_3d) | round(0)}}°" + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a06 ### field 1 ### + component: weather04.a06 message: '{{ state_attr(accuweather_home,"forecast")[3].precipitation_probability}} %' + - service: "{{ command_printf }}" + data: + cmd: weather04.p06.pic=59 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a07 ### field 2 ### + component: weather04.a07 message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather04.p07.pic=60 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a08 ### field 3 ### + component: weather04.a08 message: '{{state_attr(accuweather_uv_index_3d, "level")}} {{states(accuweather_uv_index_3d) | round(0)}}' + - service: "{{ command_printf }}" + data: + cmd: weather04.p08.pic=61 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a09 ### field 4 ### + component: weather04.a09 message: "{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather04.p09.pic=62 + ##### field 5 ##### - service: "{{ command_text_printf }}" data: - component: weather04.a10 ### field 5 ### + component: weather04.a10 message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather04.p10.pic=63 + ##### ICON ##### - if: - condition: template value_template: @@ -4724,30 +5088,51 @@ action: data: component: weather05.a05 ### Temperature MAX ### message: "{{states(accuweather_realfeel_temperature_max_4d) | round(0)}}°" + ##### field 1 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a06 ### field 1 ### + component: weather05.a06 message: '{{ state_attr(accuweather_home,"forecast")[4].precipitation_probability}} %' + - service: "{{ command_printf }}" + data: + cmd: weather05.p06.pic=59 + ##### field 2 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a07 ### field 2 ### + component: weather05.a07 message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h" + - service: "{{ command_printf }}" + data: + cmd: weather05.p07.pic=60 + ##### field 3 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a08 ### field 3 ### - message: '{{state_attr(accuweather_uv_index_4d, "level")}} {{states(accuweather_uv_index_0d) | round(0)}}' + component: weather05.a08 + message: '{{state_attr(accuweather_uv_index_4d, "level")}} {{states(accuweather_uv_index_4d) | round(0)}}' + - service: "{{ command_printf }}" + data: + cmd: weather05.p08.pic=61 + ##### field 4 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a09 ### field 4 ### + component: weather05.a09 message: "{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}} %" + - service: "{{ command_printf }}" + data: + cmd: weather05.p09.pic=62 + ##### field 5 ##### - service: "{{ command_text_printf }}" data: - component: weather05.a10 ### field 5 ### + component: weather05.a10 message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h" + - service: "{{ command_printf }}" + data: + cmd: weather05.p10.pic=63 + ##### ICON ##### - if: - condition: template value_template: