Lovelace UI Dynamic Icons

I am trying to find a way to set custom icons in the Lovelace UI that dynamically change per sensor values. When I don’t set an icon for my lock the UI changes the icon for me based on the status of the door. I would like to use my own icons and set different icons per state.

Any thoughts?

Thank you,