Device completely embedded in the heart wall