#Message to response_variable:

1 messages · Page 1 of 1 (latest)

ancient reef
#

How can I make the message a response variable so I can use it elsewhere in the script?

action: "{{ state_attr('sensor.alexa_last_called', 'Notify') }}"
data:
  data:
    type: tts
  message: >-
    Right now its {{ state_attr('binary_sensor.current_weather','Temperature')
    }}, and {{ state_attr('binary_sensor.current_weather','Forecast') }}. Today
    you can expect a high of {{ states('sensor.outside_max_temp') | round(0)
    }}degrees and a low of {{
    state_attr('binary_sensor.current_weather','Minimum') }}, with {{
    state_attr('binary_sensor.current_weather','Rain') }} percent chance of
    rain. The pollen forecast and the radiation index for today is {{
    state_attr('binary_sensor.current_weather','Pollen') }}.
alias: RAIN, POLLEN&UV
response_variable: weather ```
ancient reef
#

I want to be able to store the whole message in a variable

feral saddle
#

Add a variable block and create the message there and then pass that to your TTS.