I don’t think I fully understood the question: there’s no registry. The callback is done by the bridge, that calls an HTTP url pointing to HA, basically it refreshes the status of the lock/doorsensor immediately.
Yes it happened to me too yesterday, and I found the problem in my case: HA is not resolving DNS names, it happens every 1 hour:
➜ ~ curl -X GET 'http://nuki-bridge.axel.dom:8080/callback/list?token=tyzyzyz'
{"callbacks": [{"id": 0, "url": "http://hass.axel.dom:8123/api/webhook/xTE4NzYzzzzzzzzzzsImlhdCI6MTYyMTcyODg0MSwiyyyyyyyxxxxxxRJwRTfJsoW-Rrrrrrrrrrrrr"}]}
➜ ~ date
Wed Jul 21 05:41:03 CEST 2021
➜ ~ curl -X GET 'http://nuki-bridge.axel.dom:8080/callback/list?token=tyzyzyz'
curl: (6) Could not resolve host: nuki-bridge.axel.dom
➜ ~ curl -X GET 'http://nuki-bridge.axel.dom:8080/callback/list?token=tyzyzyz'
curl: (6) Could not resolve host: nuki-bridge.axel.dom
➜ ~ ha dns restart
Processing... Done.
Command completed successfully.
➜ ~ curl -X GET 'http://nuki-bridge.axel.dom:8080/callback/list?token=tyzyzyz'
{"callbacks": [{"id": 0, "url": "http://hass.axel.dom:8123/api/webhook/xTE4NzYzzzzzzzzzzsImlhdCI6MTYyMTcyODg0MSwiyyyyyyyxxxxxxRJwRTfJsoW-Rrrrrrrrrrrrr"}]}
It never happened to me before, and it seems that many users are having this issue and the solution is not available yet. (in case someone’s interested, I’m discussing the issue in this old thread).
So back to the Nuki Card bug: the code regarding the reconfiguration of the bridge didn’t take into account several things, I’m modifying it so it can be more resilient to these issues.
In your case, it would be interesting to see what happened: for sure HA was not able to communicate with the bridge, that’s what triggers the bug. While I complete the new version, you can delete the 2 duplicated callback entries from the bridge manually (use curl).
Can you show me your nuki_bridge_url in the secrets?
One workaround, while I complete the updated version, if the problem is the DNS, is using the ip address:
so, from this:
nuki_bridge_url: "http://nuki-bridge.axel.dom:8080"
to this:
nuki_bridge_url: "http://10.1.10.126:8080"
Sorry and thanks for the feedback…
Alessandro