Hello! I have a temperature sensor:
outdoor_temperature:
value_template: '{{ states.weather.home_assistant.attributes.temperature }}'
entity_id: weather.home_assistant
device_class: temperature
And I would like my speaker to pronauns the wether when it wakes me up. So I have this:
'15517202925102':
alias: Say test
sequence:
service: tts.google_translate_say
entity_id: media_player.kabin
data_template:
message: "В Москве {{states('sensor.outdoor_temperature')}} градусов."
It works, but the issue is that temperature is 18.0 and it is read exactly like that. I do not need .0, how can I avoid that and hear only 18?