Shelly 1 and Magnetic Door lock (YLI YB-500C) cannot get input status

Hello there!

I have a shelly 1 which controls a YLI YB-500C (Fail secure sturdiness electric bolt with cylinder-意林电锁--YLI Electronic (Asia) Ltd) magnetic door lock with fail secure.

I did the wiring and unlock works. The problem is that if I am trying to read door status (I have 2 wires → NO connected to minus and COM connected to SW) the value shown on MQTT is always 1 even if the status led turns from green to red.

Can someone help me with this?

Thank you,
Bogdan