Show last triggered camera on lovelace picture entity card

Hi!

Is it possible to change camera that I show in a picture entity card depending which one that was last triggered? I have sensors for all my cameras, but I need to know how to change the camera in the picture entity card depending on which sensor was last triggered.

Best Regards
Ekstrom