Passing entity values to a notification

I think I’m just missing something in the syntax and could use the help. I’d like to pass the thermostats value in a message to my phone. This is the automoation’s yaml:

description: “”
mode: single
trigger:

  • platform: state
    entity_id:
    • sensor.kitchen_thermostat_air_temperature
      to: null
      condition:
      action:
  • service: notify.mobile_app_mobile_myphone
    data:
    message: " {{ sensor.kitchen_thermostat_air_temperature }} "
    alias: air temp

Thanks

...
    message: "{{ states('sensor.kitchen_thermostat_air_temperature') }}"
...

Works perfect. Thank you for the help! :slight_smile: