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 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}}.