Met.no TTS

Hi all,

I am using the Met.no (https://www.home-assistant.io/components/weather.met/) component in Hass.io and I am trying to get a weather forecast via TTS.
Not sure what I should use in the code in order to get a 24-hour forecast.

  • alias: Weather Forecast
    trigger:
    platform: time
    at: ‘17:12:00’
    action:
    • service: media_player.volume_set
      data_template:
      entity_id: media_player.google_home
      volume_level: 0.5
    • service: tts.google_say
      entity_id: media_player.google_home
      data_template:
      message: >
      The weather forecast is {{states (‘weather.metno’) }}

In Hass.io:

You should use some of the SUMMARY sensors, for example (i’m using dark sky) i have:
sensor.dark_sky_daily_summary
and its state is:
Light rain tomorrow, with high temperatures falling to 22°C tomorrow.

Same for the weekly for example (i’m using yweather) and it holds weekly forecast as an array of objects.

Hi, thanks for your reply.
The question is wether Met.no have this option or not. I used the Darkysky sensor before, but it is limited to API usage, hence using Met.no.

I can suggest looking into dev panel to see what parameters are available for the met.no

Did you ever figure this one out @radinsky ? :slight_smile:

Sure, it’s quite basic, you can use some templates like (example for met.no)

message: >
   Current conditions are {{ states('weather.home') }} and the temperature is  {{ state_attr('weather.home', 'temperature') }}