TTS google_say template not decoded

Hi,

I’ve an action to read the Wounderground states but in place of saying the actual states it’s spelling the template.
Any ideas?

            action:
                - service: media_player.media_play_pause                  
                  entity_id: media_player.mpd_pirate_radio
                - service: tts.google_say                                 
                  entity_id: media_player.mpd_pirate_radio
                     data:                                                      
                        message:  " it's {{states('sensor.pws_weather_temp_high_1d_cw')}} degree outside"                                                      

Ok found out that I had to use data_template, but this gives an unknown state

note to myself: rtfm

I had it working with data_template, but not anymore, are yours still working?

For PWS (Wounderground), it’s not working any more as they stopped their free api. I’m using Dark Sky and Openweather now. It’s not as complete as with PWS, but I can still make it say the weather forecast in the morning.

It doesn’t matter the source of the info to be said.
The issue is with templating the message…the same tamplate works for the persistent notification but no for the TTS

Hi. I can´t get TTS service to read templates. Any light on the subjet? “data_template” on the service data is not allowed.

Hi,
I don’t use TTS anymore, but I found an old back up from when I did (pardon my french):

action:
    - service: snips.say # or tts.google_say
      data_template:
        text: >
          {%- if is_state("calendar.nixekinder", "on") -%}
          {%- set al=states.calendar.nixekinder.attributes.message -%}
          {%- set alerte= "Attention, Ne pas oublier, aujourd'hui " ~ al -%}
          {%- else -%}
          {%- set alerte= "Rien dans l'agenda aujourd'hui." -%}
          {%- endif -%}
                Bonjour. il est {{ now().strftime('%Hh%M') }}. 
                La météo pour aujourd'hui: actuellement il fait {{states.sensor.luftdaten_temp.state}} °C dehors. 
                Prévision {{states.sensor.dark_sky_daily_summary.state}}. 
                Risque de pluie {{states('sensor.dark_sky_precip_probability_0d')}} %. {{alerte}}.

Perhaps this works with your TTS setting.