Struggling with automation Visual Editor and sending smtp service 'data' field sensor value

I have been trying add a sensors value as a number after the message body of an email sent via Gmail using the notify: smtp platform, and having trouble getting a sensor value sent like I did previously using a yaml expression using same service and smtp platform and the yaml editor.

Anyone know the syntax required to send a sensor value in the ‘data’ field below ?
Not sure why I find this un-intuitive but I do and I’ve tried a few variations…

I should add, I get the emails fine, with title and message body, but no sensor value…

You can use the value directly in the message field:


Battery is {{ states('sensor.xyz') }}

Yes thanks, that’s how I was doing it before the Visual Editor was a thing.
So, it still can’t be done by directly placing syntax in the ‘data’ field then I take it ?
If so I’ll go back to the clunky template in YAML way :slight_smile:

I don’t know.