TSS with sensor information


#1

Hi,
i am trying to add a script that tell you the temperature in the google home mini, but it say the name of the sensor instead the value, i have tried many options but non of them works
can some help me please?

  • data:
    entity_id: media_player.kitchen_speaker
    message: “‘The temperature is’ sensor.dht_sensor_temperature”
    service: tts.google_say

#2

Did you try using template?

data_template:
  message:  "The temperature is {{ states('sensor.dht_sensor_temperature') }}"

#3

Yes, i have tried, didn’t work.
It work only with sending html5 messages to my phone


#4

Well, the docs give this example:

service: tts.google_say
data_template:
  message: "Temperature is {{states('sensor.temperature')}}."
  cache: false

#5

didn’t worked