fix: wrong accuweather outdoor temp

This commit is contained in:
Chris
2022-11-12 21:10:05 +01:00
parent ca7ece8121
commit 315df6e3ad

View File

@@ -1848,7 +1848,7 @@ action:
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: home.outdoor_temp component: home.outdoor_temp
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°'
# - delay: # - delay:
# milliseconds: "{{ delay_value }}" # milliseconds: "{{ delay_value }}"
# - service: "{{ command_text_printf }}" # - service: "{{ command_text_printf }}"
@@ -2968,12 +2968,12 @@ action:
data: data:
component: home.outdoor_temp component: home.outdoor_temp
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
- delay: # - delay:
milliseconds: "{{ delay_value }}" # milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}" # - service: "{{ command_text_printf }}"
data: # data:
component: climate.outdoor_temp # component: climate.outdoor_temp
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°' # message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
##### Outdoor Temp Accuweather ##### ##### Outdoor Temp Accuweather #####
- conditions: - conditions:
@@ -2983,13 +2983,13 @@ action:
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: home.outdoor_temp component: home.outdoor_temp
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°'
- delay: # - delay:
milliseconds: "{{ delay_value }}" # milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}" # - service: "{{ command_text_printf }}"
data: # data:
component: climate.outdoor_temp # component: climate.outdoor_temp
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" # message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
@@ -4474,6 +4474,13 @@ action:
alias: 'climate page' alias: 'climate page'
sequence: sequence:
- choose: - 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" }}' - conditions: '{{ weather == "Default" }}'
alias: 'default-weather' alias: 'default-weather'
sequence: sequence:
@@ -4487,7 +4494,7 @@ action:
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: outdoor_temp component: outdoor_temp
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" message: '{{state_attr(accuweather_value,"temperature") | round(0)}}°'
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: current_temp component: current_temp