This is what I use as the intent for “Alexa, ask Home Assistant for the temperature of .”
speech:
type: plaintext
text: >
The {{ Room }} temperature is
{{ states("sensor." + Room.replace(" ", "_") + "_temperature") }}
degrees.
Or, for a more detailed sensor example that doesn’t have a variable input, here’s what I use for “Alexa, ask Home Assistant about the weather.”:
speech:
type: plaintext
text: >
{%- set temp = states('sensor.dark_sky_temperature') | round -%}
{%- set t_hi = states('sensor.dark_sky_daily_high_temperature') | round -%}
{%- set t_low = states('sensor.dark_sky_daily_low_temperature') | round -%}
{%- set feel = states('sensor.dark_sky_apparent_temperature') | round -%}
{%- set humid = states('sensor.dark_sky_humidity') | round -%}
{%- set now = states('sensor.dark_sky_summary') -%}
{%- set hourly = states('sensor.dark_sky_hourly_summary') -%}
{%- set daily = states('sensor.dark_sky_daily_summary') -%}
Right now, it is {{ temp }} degrees out
{%- if temp != feel -%}
but it feels like {{ feel }} degrees
{%- endif -%}.
The current humidity is {{ humid }}%.
Right now, conditions are {{ now }}.
For today, {{ hourly }}.
Today's high is {{ t_hi }} and the low is {{ t_low }}.
The forecast calls for {{ daily }}.