Please have a read of point 11 here, then edit your message to format your pasted config correctly.
Your template format is not quite correct, this
{% if {{states.sensor.main_door_operator.state}} = Manual Lock %}
should be:
{% if states('sensor.main_door_operator) = 'Manual Lock' %}
Likewise for your elif template.
Note that you are only triggering on the “to unlock” state, so it will never execute the “Manual Lock” message. If you want to trigger on both the lock and unlock events you will need something like this:
trigger:
platform: state
entity_id: lock.main_door # triggers on all changes of state and attribute changes.
condition:
...etc
If you only want to trigger on the lock/unlock events and not attribute changes:
trigger:
platform: state
entity_id: lock.main_door
to:
- 'locked'
- 'unlocked'
condition:
...etc