intents icon indicating copy to clipboard operation
intents copied to clipboard

[DE] getweather is missing weather condition

Open henne49 opened this issue 1 year ago • 2 comments

Only temperature is played not condition. Tried for weather from met.no as well as others.

It works when switching to English

henne49 avatar Jan 02 '24 18:01 henne49

any update here, this is still an issue. Not only in German but also other languages (e.g. see https://github.com/home-assistant/intents/issues/2377)

hille721 avatar Jan 02 '25 16:01 hille721

I'm also seeing this for the English language for certain weather conditions.

e.g. If I ask assist for the weather I get the following

Image

But if use the developer tools to manually run the response template I get the expected text.

{% set state = states.weather.pirateweather_home %}
{% set weather_condition = {
  'clear': 'and clear',
  'clear-night': 'and clear',
  'cloudy': 'and cloudy',
  'exceptional': 'and exceptional',
  'fog': 'with fog',
  'hail': 'with hail',
  'lightning': 'with lightning',
  'lightning-rainy': 'with lightning and rain',
  'partlycloudy': 'and partly cloudy',
  'pouring': 'and pouring rain',
  'rainy': 'and raining',
  'snowy': 'and snowing',
  'snowy-rainy': 'with snow and rain',
  'sunny': 'and sunny',
  'windy': 'and windy',
  'windy-variant': 'with wind and clouds'
} %}
{{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }}

Evaluates to

38 °F and partly cloudy

This is on HA 2025.1.2 which should include intents 2025.1.1.

I've attached the conversation debug for this query too.

conversation.json

mill1000 avatar Jan 24 '25 17:01 mill1000