Mushroom lock card - lock vs door position sensor

Hi,
I have a lock card with the Unifi Access Hub on my pedestrian gate.
It has door position sensor attached.
So, while the lock itself is mostly closed, the gate can be left open and I want to see that reflected on the card.
How can I handle this with mushroom lock card?