From eb1db5d54bacad4dd27933ea347fdbc9429d5107 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 12 Nov 2022 21:00:12 +0100 Subject: [PATCH 1/2] upd: remove unnecessary service calls --- blueprint.yaml | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/blueprint.yaml b/blueprint.yaml index 4229ff3..3cfe4c9 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -1791,8 +1791,8 @@ action: data: component: home.hotwater_temp message: "{{ states(hotwatertemp) |round(1) }}°" - - delay: - milliseconds: "{{ delay_value }}" + # - delay: + # milliseconds: "{{ delay_value }}" # - service: "{{ command_text_printf }}" # data: # component: climate.hotwater_temp @@ -1811,12 +1811,12 @@ action: 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) }}°" + # - delay: + # milliseconds: "{{ delay_value }}" + # - service: "{{ command_text_printf }}" + # data: + # component: climate.outdoor_temp + # message: "{{ states(outdoortemp) |round(0) }}°" ##### Outdoor Temp Default ##### - conditions: @@ -1830,12 +1830,12 @@ action: 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)}}°' + # - delay: + # milliseconds: "{{ delay_value }}" + # - service: "{{ command_text_printf }}" + # data: + # component: climate.outdoor_temp + # message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' ##### Outdoor TempAccuweather ##### - conditions: @@ -1849,12 +1849,12 @@ action: data: component: home.outdoor_temp message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: climate.outdoor_temp - message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + # - delay: + # milliseconds: "{{ delay_value }}" + # - service: "{{ command_text_printf }}" + # data: + # component: climate.outdoor_temp + # message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" ##### Weather Icon Home Page - choose: @@ -4541,6 +4541,12 @@ action: - conditions: '{{ trigger.event.data.new_state.state == page_buttonpage04 }}' sequence: + + + ####################### CHANGE ME ################################################# + + + ##### Open Climate Settings ##### - conditions: @@ -4554,7 +4560,8 @@ action: - service: "{{ command_printf }}" data: cmd: "page {{ page_climate }}" - + + ############################################################# ##### CLOSE - Action ##### From 315df6e3adede0006684905e1e4cb0c7cae0b9b3 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 12 Nov 2022 21:10:05 +0100 Subject: [PATCH 2/2] fix: wrong accuweather outdoor temp --- blueprint.yaml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/blueprint.yaml b/blueprint.yaml index 3cfe4c9..618c4ee 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -1848,7 +1848,7 @@ action: - service: "{{ command_text_printf }}" data: component: home.outdoor_temp - message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°' # - delay: # milliseconds: "{{ delay_value }}" # - service: "{{ command_text_printf }}" @@ -2968,12 +2968,12 @@ action: 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)}}°' + # - 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: @@ -2983,13 +2983,13 @@ action: - service: "{{ command_text_printf }}" data: component: home.outdoor_temp - message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: climate.outdoor_temp - message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + 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)}}°" @@ -4474,6 +4474,13 @@ action: alias: 'climate page' sequence: - choose: + - conditions: '{{ outdoortemp is match "sensor." }}' + alias: 'outdoor-sensor' + sequence: + - service: "{{ command_text_printf }}" + data: + component: outdoor_temp + message: "{{ states(outdoortemp) |round(0) }}°" - conditions: '{{ weather == "Default" }}' alias: 'default-weather' sequence: @@ -4487,7 +4494,7 @@ action: - service: "{{ command_text_printf }}" data: component: outdoor_temp - message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" + message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°' - service: "{{ command_text_printf }}" data: component: current_temp