Use the lock.lock service call.
lock.lock
then: - service: lock.lock target: entity_id: lock.fordpass_doorlock