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

Hello fellow HA peeps! Have you or anyone else figured this out? I have a Shelly 1PM or I could use a 2.5 and I would love to know how to hook it up to unlock an NC magnetic lock with an access control power supply (K80), and a keypad (Diginex), and an exit button (Gagalor 6 wire LED). Can someone graciously help me out with a wiring diagram? I have used 3 different AIs and they messed me up with very wrong information.