In your browser, open the developer console with context menu on the capability icon.
Now you can see the HTML details:
Then use “my.homey.app” and append the icon url:
https://my.homey.app/assets/alarm_contact-e8cb0a3b.svg
You can also check the network traffic to get the url: