My configuration.yaml does not include the port line (8080 is the default), but otherwise is much the same. Seems to work well. Is your indentation right? Hard to tell in these posts.
I have got the same Issues since the last two Firmware Updates on the Lock. Adding the Port to my config changed nothing.
The Lock is unavailable in Home Assistant. Doesn’t seem to come back. That means for me, either i will stop my automations or switch the Lock for something else.
It worked like a charm until like two weeks ago. Even in the Nuki app it is offline many times.
Home Assistant log says a lot of timeout errors like “socket.timeout: timed out”