Verisure lock code in Homekit

Hi,

I have Verisure set up in HomeKit. I can turn on and turn off the alarm without problems. I assume that the code i HA is somehow included. However, the opposite seems to be true for the Yale doorman lock. When I toggle the lock on and off nothing happens. What do I need to do to solve this. Can the lock code somehow be embedded in the lock entity or should I use a switch or a script?

Thanks for help