Hikvision doorbells with Door Lock

Hi everyone

I have a Hikvision Doorbell, DS-KV6113-WPE1(B), which has a built-in relay to unlock doors. It's easy to unlock it using HTTP PUT with ISAPI. How I didn't find any driver that do the same, I developed it.

It's simple, just send a HTTP PUT to the IP, however I'd like to insert the lock/unlock state based on Door/Window sensor. How could I get this state from another connected Hubitat device (such Zigbe) and add it in Locker status created by this driver?