Similar code from my automations, which works fine every morning:
- service: hangouts.send_message
data_template:
target:
- id: xxxxxxx
message:
- text: Today in my city it will be {{states('sensor.short_summary')}}, with the high of {{states('sensor.temperature_max')}} and a low of {{states('sensor.temperature_min')}} degrees celsius. A chance of rain is {{states('sensor.chance_of_any_rain')}}.
alias: test message
sequence:
- data_template:
message:
- text: On the kitchen {{states('sensor.kitchen_smoke')}} now
target:
- id: aHugesEcreT
service: hangouts.send_message
Works now.
Changed ‘data’ to ‘data_template’ and sensor state code. Perfect. Thanks