diff --git a/blueprint.yaml b/blueprint.yaml index c22c96f..983e035 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -522,6 +522,14 @@ variables: tft_path: !input 'tft_path' nextion_inited: !input 'nextion_inited' +##### 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,') }}" + + ##### Buttons ##### entity01: !input 'entity01' entity02: !input 'entity02' @@ -613,15 +621,6 @@ trigger: entity_id: !input 'last_click_coversettings' id: cover_settings -#### Weather - Trigger #### - - platform: time_pattern - minutes: '10' - id: weather - - platform: state - entity_id: !input 'nextion_inited' - to: 'on' - id: weather - ##### TFT Upload ##### - platform: event event_type: folder_watcher @@ -630,6 +629,24 @@ trigger: path: !input 'tft_path' id: tft_upload +##### Page Button Entity sync - Trigger ##### + - platform: template + value_template: '{{ states(last_click) is match "button" }}' + id: button_page + +#### Weather - Trigger #### + - platform: time_pattern + minutes: '10' + id: weather_time + +#### Weather - Trigger #### + - platform: state + entity_id: !input 'nextion_inited' + to: 'on' + for: + seconds: 5 + id: weather_boot + ##### Button01 Sync - Trigger ##### - platform: state entity_id: !input 'entity01' @@ -1311,8 +1328,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity01 -# - "{{ is_state('entity01', 'on' or 'open') }}" + id: + - current_state_entity01 + - button_page - condition: state entity_id: !input entity01 state: @@ -1325,7 +1343,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity01 + id: + - current_state_entity01 + - button_page # - "{{ is_state('entity01', 'off' or 'closed') }}" - condition: state entity_id: !input entity01 @@ -1342,7 +1362,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity02 + id: + - current_state_entity02 + - button_page - condition: state entity_id: !input entity02 state: @@ -1355,7 +1377,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity02 + id: + - current_state_entity02 + - button_page - condition: state entity_id: !input entity02 state: @@ -1371,7 +1395,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity03 + id: + - current_state_entity03 + - button_page - condition: state entity_id: !input entity03 state: @@ -1384,7 +1410,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity03 + id: + - current_state_entity03 + - button_page - condition: state entity_id: !input entity03 state: @@ -1400,7 +1428,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity04 + id: + - current_state_entity04 + - button_page - condition: state entity_id: !input entity04 state: @@ -1413,7 +1443,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity04 + id: + - current_state_entity04 + - button_page - condition: state entity_id: !input entity04 state: @@ -1429,7 +1461,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity05 + id: + - current_state_entity05 + - button_page - condition: state entity_id: !input entity05 state: @@ -1442,7 +1476,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity05 + id: + - current_state_entity05 + - button_page - condition: state entity_id: !input entity05 state: @@ -1458,7 +1494,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity06 + id: + - current_state_entity06 + - button_page - condition: state entity_id: !input entity06 state: @@ -1471,7 +1509,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity06 + id: + - current_state_entity06 + - button_page - condition: state entity_id: !input entity06 state: @@ -1487,7 +1527,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity07 + id: + - current_state_entity07 + - button_page - condition: state entity_id: !input entity07 state: @@ -1500,7 +1542,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity07 + id: + - current_state_entity07 + - button_page - condition: state entity_id: !input entity07 state: @@ -1516,7 +1560,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity08 + id: + - current_state_entity08 + - button_page - condition: state entity_id: !input entity08 state: @@ -1529,7 +1575,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity08 + id: + - current_state_entity08 + - button_page - condition: state entity_id: !input entity08 state: @@ -1545,7 +1593,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity09 + id: + - current_state_entity09 + - button_page - condition: state entity_id: !input entity09 state: @@ -1558,7 +1608,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity09 + id: + - current_state_entity09 + - button_page - condition: state entity_id: !input entity09 state: @@ -1574,7 +1626,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity10 + id: + - current_state_entity10 + - button_page - condition: state entity_id: !input entity10 state: @@ -1587,7 +1641,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity10 + id: + - current_state_entity10 + - button_page - condition: state entity_id: !input entity10 state: @@ -1603,7 +1659,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity11 + id: + - current_state_entity11 + - button_page - condition: state entity_id: !input entity11 state: @@ -1616,7 +1674,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity11 + id: + - current_state_entity11 + - button_page - condition: state entity_id: !input entity11 state: @@ -1632,7 +1692,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity12 + id: + - current_state_entity12 + - button_page - condition: state entity_id: !input entity12 state: @@ -1645,7 +1707,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity12 + id: + - current_state_entity12 + - button_page - condition: state entity_id: !input entity12 state: @@ -1661,7 +1725,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity13 + id: + - current_state_entity13 + - button_page - condition: state entity_id: !input entity13 state: @@ -1674,7 +1740,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity13 + id: + - current_state_entity13 + - button_page - condition: state entity_id: !input entity13 state: @@ -1690,7 +1758,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity14 + id: + - current_state_entity14 + - button_page - condition: state entity_id: !input entity14 state: @@ -1703,7 +1773,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity14 + id: + - current_state_entity14 + - button_page - condition: state entity_id: !input entity14 state: @@ -1719,7 +1791,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity15 + id: + - current_state_entity15 + - button_page - condition: state entity_id: !input entity15 state: @@ -1732,9 +1806,11 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity16 + id: + - current_state_entity15 + - button_page - condition: state - entity_id: !input entity16 + entity_id: !input entity15 state: - "off" - "closed" @@ -1748,7 +1824,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity16 + id: + - current_state_entity16 + - button_page - condition: state entity_id: !input entity16 state: @@ -1761,7 +1839,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity16 + id: + - current_state_entity16 + - button_page - condition: state entity_id: !input entity16 state: @@ -1777,7 +1857,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity17 + id: + - current_state_entity17 + - button_page - condition: state entity_id: !input entity17 state: @@ -1790,7 +1872,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity17 + id: + - current_state_entity17 + - button_page - condition: state entity_id: !input entity17 state: @@ -1806,7 +1890,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity18 + id: + - current_state_entity18 + - button_page - condition: state entity_id: !input entity18 state: @@ -1819,7 +1905,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity18 + id: + - current_state_entity18 + - button_page - condition: state entity_id: !input entity18 state: @@ -1835,7 +1923,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity19 + id: + - current_state_entity19 + - button_page - condition: state entity_id: !input entity19 state: @@ -1848,7 +1938,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity19 + id: + - current_state_entity19 + - button_page - condition: state entity_id: !input entity19 state: @@ -1864,7 +1956,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity20 + id: + - current_state_entity20 + - button_page - condition: state entity_id: !input entity20 state: @@ -1877,7 +1971,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity20 + id: + - current_state_entity20 + - button_page - condition: state entity_id: !input entity20 state: @@ -1893,7 +1989,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity21 + id: + - current_state_entity21 + - button_page - condition: state entity_id: !input entity21 state: @@ -1906,7 +2004,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity21 + id: + - current_state_entity21 + - button_page - condition: state entity_id: !input entity21 state: @@ -1922,7 +2022,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity22 + id: + - current_state_entity22 + - button_page - condition: state entity_id: !input entity22 state: @@ -1935,7 +2037,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity22 + id: + - current_state_entity22 + - button_page - condition: state entity_id: !input entity22 state: @@ -1951,7 +2055,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity23 + id: + - current_state_entity23 + - button_page - condition: state entity_id: !input entity23 state: @@ -1964,7 +2070,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity23 + id: + - current_state_entity23 + - button_page - condition: state entity_id: !input entity23 state: @@ -1980,7 +2088,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity24 + id: + - current_state_entity24 + - button_page - condition: state entity_id: !input entity24 state: @@ -1993,7 +2103,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity24 + id: + - current_state_entity24 + - button_page - condition: state entity_id: !input entity24 state: @@ -2009,7 +2121,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity25 + id: + - current_state_entity25 + - button_page - condition: state entity_id: !input entity25 state: @@ -2022,7 +2136,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity25 + id: + - current_state_entity25 + - button_page - condition: state entity_id: !input entity25 state: @@ -2038,7 +2154,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity26 + id: + - current_state_entity26 + - button_page - condition: state entity_id: !input entity26 state: @@ -2051,7 +2169,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity26 + id: + - current_state_entity26 + - button_page - condition: state entity_id: !input entity26 state: @@ -2067,7 +2187,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity27 + id: + - current_state_entity27 + - button_page - condition: state entity_id: !input entity27 state: @@ -2080,7 +2202,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity27 + id: + - current_state_entity27 + - button_page - condition: state entity_id: !input entity27 state: @@ -2096,7 +2220,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity28 + id: + - current_state_entity28 + - button_page - condition: state entity_id: !input entity28 state: @@ -2109,7 +2235,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity28 + id: + - current_state_entity28 + - button_page - condition: state entity_id: !input entity28 state: @@ -2125,7 +2253,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity29 + id: + - current_state_entity29 + - button_page - condition: state entity_id: !input entity29 state: @@ -2138,7 +2268,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity29 + id: + - current_state_entity29 + - button_page - condition: state entity_id: !input entity29 state: @@ -2154,7 +2286,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity30 + id: + - current_state_entity30 + - button_page - condition: state entity_id: !input entity30 state: @@ -2167,7 +2301,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity30 + id: + - current_state_entity30 + - button_page - condition: state entity_id: !input entity30 state: @@ -2183,7 +2319,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity31 + id: + - current_state_entity31 + - button_page - condition: state entity_id: !input entity31 state: @@ -2196,7 +2334,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity31 + id: + - current_state_entity31 + - button_page - condition: state entity_id: !input entity31 state: @@ -2212,7 +2352,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity32 + id: + - current_state_entity32 + - button_page - condition: state entity_id: !input entity32 state: @@ -2225,7 +2367,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity32 + id: + - current_state_entity32 + - button_page - condition: state entity_id: !input entity32 state: @@ -2241,7 +2385,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity33 + id: + - current_state_entity33 + - button_page - condition: state entity_id: !input entity33 state: @@ -2254,7 +2400,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity33 + id: + - current_state_entity33 + - button_page - condition: state entity_id: !input entity33 state: @@ -2270,7 +2418,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity34 + id: + - current_state_entity34 + - button_page - condition: state entity_id: !input entity34 state: @@ -2283,7 +2433,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity34 + id: + - current_state_entity34 + - button_page - condition: state entity_id: !input entity34 state: @@ -2299,7 +2451,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity35 + id: + - current_state_entity35 + - button_page - condition: state entity_id: !input entity35 state: @@ -2312,7 +2466,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity35 + id: + - current_state_entity35 + - button_page - condition: state entity_id: !input entity35 state: @@ -2328,7 +2484,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity36 + id: + - current_state_entity36 + - button_page - condition: state entity_id: !input entity36 state: @@ -2341,7 +2499,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity36 + id: + - current_state_entity36 + - button_page - condition: state entity_id: !input entity36 state: @@ -2357,7 +2517,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity37 + id: + - current_state_entity37 + - button_page - condition: state entity_id: !input entity37 state: @@ -2370,7 +2532,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity37 + id: + - current_state_entity37 + - button_page - condition: state entity_id: !input entity37 state: @@ -2386,7 +2550,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity38 + id: + - current_state_entity38 + - button_page - condition: state entity_id: !input entity38 state: @@ -2399,7 +2565,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity38 + id: + - current_state_entity38 + - button_page - condition: state entity_id: !input entity38 state: @@ -2415,7 +2583,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity39 + id: + - current_state_entity39 + - button_page - condition: state entity_id: !input entity39 state: @@ -2428,7 +2598,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity39 + id: + - current_state_entity39 + - button_page - condition: state entity_id: !input entity39 state: @@ -2444,7 +2616,9 @@ action: - choose: - conditions: - condition: trigger - id: current_state_entity40 + id: + - current_state_entity40 + - button_page - condition: state entity_id: !input entity40 state: @@ -2457,7 +2631,9 @@ action: message: 1 - conditions: - condition: trigger - id: current_state_entity40 + id: + - current_state_entity40 + - button_page - condition: state entity_id: !input entity40 state: @@ -2488,848 +2664,9 @@ action: # # ######################################### - - choose: - - conditions: - - condition: trigger - id: weather - sequence: - - service: !input command_text_printf - data: - component: weather01.a02 - message: '{{states("sensor.wochentag")}}' - - service: !input command_text_printf - data: - component: weather01.a04 - message: '{{states("sensor.home_wetter_realfeel_temperature_min_0d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather01.a05 - message: '{{states("sensor.home_wetter_realfeel_temperature_max_0d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather01.a06 - message: '{{ state_attr("weather.home_wetter","forecast")[0].precipitation_probability}} - %' - - service: !input command_text_printf - data: - component: weather01.a07 - message: '{{states("sensor.home_wetter_hours_of_sun_0d") | round(0)}} h' - - service: !input command_text_printf - data: - component: weather01.a08 - message: '{{state_attr("sensor.home_wetter_uv_index_0d", "level")}}' - - service: !input command_text_printf - data: - component: weather01.a09 - message: '{{states("sensor.home_wetter_uv_index_0d") | round(0)}}' - - service: !input command_text_printf - data: - component: weather01.a10 - message: '{{states("sensor.home_wetter_thunderstorm_probability_day_0d") | round(0)}} - %' - - service: !input command_text_printf - data: - component: weather01.a11 - message: '{{states("sensor.home_wetter_wind_day_0d") | round(0)}} km/h' - - service: !input command_text_printf - data: - component: weather01.a12 - message: '{{states("sensor.home_wetter_thunderstorm_probability_night_0d") | - round(0)}} %' - - service: !input command_text_printf - data: - component: weather01.a13 - message: '{{states("sensor.home_wetter_wind_night_0d") | round(0)}} km/h' - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''sunny''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=2 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''cloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=3 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=4 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''pouring''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=5 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''snowy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=6 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''hail''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''snowy-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''fog''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=8 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''windy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''windy-variant''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''lightning''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=10 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''partlycloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=11 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''lightning-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''execptional''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[0].condition - == ''clear-night''}}' - then: - - service: !input command_printf - data: - cmd: weather01.a03.pic=15 - - service: !input command_text_printf - data: - component: weather02.a02 - message: '{{states("sensor.wochentag01")}}' - - service: !input command_text_printf - data: - component: weather02.a04 - message: '{{states("sensor.home_wetter_realfeel_temperature_min_1d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather02.a05 - message: '{{states("sensor.home_wetter_realfeel_temperature_max_1d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather02.a06 - message: '{{ state_attr("weather.home_wetter","forecast")[1].precipitation_probability}} - %' - - service: !input command_text_printf - data: - component: weather02.a07 - message: '{{states("sensor.home_wetter_hours_of_sun_1d") | round(0)}} h' - - service: !input command_text_printf - data: - component: weather02.a08 - message: '{{state_attr("sensor.home_wetter_uv_index_1d", "level")}}' - - service: !input command_text_printf - data: - component: weather02.a09 - message: '{{states("sensor.home_wetter_uv_index_1d") | round(0)}}' - - service: !input command_text_printf - data: - component: weather02.a10 - message: '{{states("sensor.home_wetter_thunderstorm_probability_day_1d") | round(0)}} - %' - - service: !input command_text_printf - data: - component: weather02.a11 - message: '{{states("sensor.home_wetter_wind_day_1d") | round(0)}} km/h' - - service: !input command_text_printf - data: - component: weather02.a12 - message: '{{states("sensor.home_wetter_thunderstorm_probability_night_1d") | - round(0)}} %' - - service: !input command_text_printf - data: - component: weather02.a13 - message: '{{states("sensor.home_wetter_wind_night_1d") | round(0)}} km/h' - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''sunny''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=2 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''cloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=3 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=4 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''pouring''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=5 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''snowy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=6 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''hail''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''snowy-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''fog''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=8 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''windy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''windy-variant''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''lightning''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=10 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''partlycloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=11 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''lightning-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''execptional''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[1].condition - == ''clear-night''}}' - then: - - service: !input command_printf - data: - cmd: weather02.a03.pic=15 - - service: !input command_text_printf - data: - component: weather03.a02 - message: '{{states("sensor.wochentag02")}}' - - service: !input command_text_printf - data: - component: weather03.a04 - message: '{{states("sensor.home_wetter_realfeel_temperature_min_2d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather03.a05 - message: '{{states("sensor.home_wetter_realfeel_temperature_max_2d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather03.a06 - message: '{{ state_attr("weather.home_wetter","forecast")[2].precipitation_probability}} - %' - - service: !input command_text_printf - data: - component: weather03.a07 - message: '{{states("sensor.home_wetter_hours_of_sun_2d") | round(0)}} h' - - service: !input command_text_printf - data: - component: weather03.a08 - message: '{{state_attr("sensor.home_wetter_uv_index_2d", "level")}}' - - service: !input command_text_printf - data: - component: weather03.a09 - message: '{{states("sensor.home_wetter_uv_index_2d") | round(0)}}' - - service: !input command_text_printf - data: - component: weather03.a10 - message: '{{states("sensor.home_wetter_thunderstorm_probability_day_2d") | round(0)}} - %' - - service: !input command_text_printf - data: - component: weather03.a11 - message: '{{states("sensor.home_wetter_wind_day_2d") | round(0)}} km/h' - - service: !input command_text_printf - data: - component: weather03.a12 - message: '{{states("sensor.home_wetter_thunderstorm_probability_night_2d") | - round(0)}} %' - - service: !input command_text_printf - data: - component: weather03.a13 - message: '{{states("sensor.home_wetter_wind_night_2d") | round(0)}} km/h' - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''sunny''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=2 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''cloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=3 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=4 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''pouring''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=5 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''snowy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=6 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''hail''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''snowy-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''fog''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=8 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''windy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''windy-variant''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''lightning''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=10 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''partlycloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=11 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''lightning-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''execptional''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[2].condition - == ''clear-night''}}' - then: - - service: !input command_printf - data: - cmd: weather03.a03.pic=15 - - service: !input command_text_printf - data: - component: weather04.a02 - message: '{{states("sensor.wochentag03")}}' - - service: !input command_text_printf - data: - component: weather04.a04 - message: '{{states("sensor.home_wetter_realfeel_temperature_min_3d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather04.a05 - message: '{{states("sensor.home_wetter_realfeel_temperature_max_3d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather04.a06 - message: '{{ state_attr("weather.home_wetter","forecast")[3].precipitation_probability}} - %' - - service: !input command_text_printf - data: - component: weather04.a07 - message: '{{states("sensor.home_wetter_hours_of_sun_3d") | round(0)}} h' - - service: !input command_text_printf - data: - component: weather04.a08 - message: '{{state_attr("sensor.home_wetter_uv_index_3d", "level")}}' - - service: !input command_text_printf - data: - component: weather04.a09 - message: '{{states("sensor.home_wetter_uv_index_3d") | round(0)}}' - - service: !input command_text_printf - data: - component: weather04.a10 - message: '{{states("sensor.home_wetter_thunderstorm_probability_day_3d") | round(0)}} - %' - - service: !input command_text_printf - data: - component: weather04.a11 - message: '{{states("sensor.home_wetter_wind_day_3d") | round(0)}} km/h' - - service: !input command_text_printf - data: - component: weather04.a12 - message: '{{states("sensor.home_wetter_thunderstorm_probability_night_3d") | - round(0)}} %' - - service: !input command_text_printf - data: - component: weather04.a13 - message: '{{states("sensor.home_wetter_wind_night_3d") | round(0)}} km/h' - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''sunny''}}' - then: - - service: !input command_printf - data: - md: weather04.a03.pic=2 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''cloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=3 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=4 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''pouring''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=5 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''snowy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=6 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''hail''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''snowy-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''fog''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=8 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''windy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''windy-variant''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''lightning''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=10 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''partlycloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=11 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''lightning-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''execptional''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[3].condition - == ''clear-night''}}' - then: - - service: !input command_printf - data: - cmd: weather04.a03.pic=15 - - service: !input command_text_printf - data: - component: weather05.a02 - message: '{{states("sensor.wochentag04")}}' - - service: !input command_text_printf - data: - component: weather05.a04 - message: '{{states("sensor.home_wetter_realfeel_temperature_min_4d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather05.a05 - message: '{{states("sensor.home_wetter_realfeel_temperature_max_4d") | round(0)}}°' - - service: !input command_text_printf - data: - component: weather05.a06 - message: '{{ state_attr("weather.home_wetter","forecast")[4].precipitation_probability}} - %' - - service: !input command_text_printf - data: - component: weather05.a07 - message: '{{states("sensor.home_wetter_hours_of_sun_4d") | round(0)}} h' - - service: !input command_text_printf - data: - component: weather05.a08 - message: '{{state_attr("sensor.home_wetter_uv_index_4d", "level")}}' - - service: !input command_text_printf - data: - component: weather05.a09 - message: '{{states("sensor.home_wetter_uv_index_4d") | round(0)}}' - - service: !input command_text_printf - data: - component: weather05.a10 - message: '{{states("sensor.home_wetter_thunderstorm_probability_day_4d") | round(0)}} - %' - - service: !input command_text_printf - data: - component: weather05.a11 - message: '{{states("sensor.home_wetter_wind_day_4d") | round(0)}} km/h' - - service: !input command_text_printf - data: - component: weather05.a12 - message: '{{states("sensor.home_wetter_thunderstorm_probability_night_4d") | - round(0)}} %' - - service: !input command_text_printf - data: - component: weather05.a13 - message: '{{states("sensor.home_wetter_wind_night_4d") | round(0)}} km/h' - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''sunny''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=2 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''cloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=3 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=4 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''pouring''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=5 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''snowy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=6 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''hail''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''snowy-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=7 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''fog''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=8 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''windy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''windy-variant''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=9 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''lightning''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=10 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''partlycloudy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=11 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''lightning-rainy''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''execptional''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=13 - - if: - - condition: template - value_template: '{{state_attr(''weather.home_wetter'',''forecast'')[4].condition - == ''clear-night''}}' - then: - - service: !input command_printf - data: - cmd: weather05.a03.pic=15 - ######################################### + +######################################### # # ############################################################# @@ -3338,4 +2675,4 @@ action: # ## ### -############################################################################################################################################################################################# \ No newline at end of file +#############################################################################################################################################################################################