Talking about the Weather

There is a set of recommended codes for weather conditions in Home Assistant weather integrations (recommended because they are included in translation files and will be displayed with the correct icon).

These will appear as the state of the weather entity.

Some of them are challenging for TTS because of the hyphens, and Amazon Polly at least insists on rendering partlycloudy as “partlie cloudy”.

You can iron out most of these problems with a short template:

# Correct text in weather summary that voice assistants find hard to pronounce

template:
  - sensor:
      - name: Weather voice
        state: >
          {% if is_state('weather.your_weather_entity', 'partlycloudy') %}
              partly cloudy
          {% else %}
              {{ states('weather.your_weather_entity') | replace('-', ' ') }}
          {% endif %}

Home Assistant Cookbook - Index

1 Like