TTS problem

Have the following code in place. But instead of the numbers i get google saying state dot sensor dot mys e.t.c

- service: tts.google_say
    entity_id: media_player.vannaya
    data:
      message: "Happy you are home. Temperature {{ states.sensor.mys_zal_temp.state }} Humidity {{ states.sensor.mys_zal_hum.state }} "
  - delay: 00:10:00

Replace data: with template_data:

1 Like

data_template:
YES! Thank you. Once again missed this one!

1 Like

Hello. I’m a beginner. I can not get the temperature of a sensor. If I do a test here image, it reads my test completely. The name of the sensor I got from here image.
What do I have to do, do I have to activate other functions? I do not understand where “date_template:” should appear.