Send the value through message

I have an automation. I want to send the value of the door to telegram.

I wrote this in action but it does not working.

service: notify.telegram
data:
  title: Main Entrance
  message: Main entrance door is {{ binary_sensor.lumi_main_entrance_door_on_off }}

I found the solution. It works like this:

Main entrance door is {{ states('binary_sensor.lumi_main_entrance_door_on_off') }}