tomasbedrich/hikconnect — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Python library for talking to Hikvision smart doorbells through the Hik Connect cloud.

I want to be able to use it from my own scripts, log in with my Hik Connect username and password, list my devices, see basic device details like name, serial, version and connected locks, list the cameras for a device, check whether the doorbell is idle, ringing, or in a call, unlock a specific lock channel, and cancel an active call.

Please make it work nicely with async Python, including an easy example using asyncio for people who are not very experienced with async code. It should keep the login session alive and expose a simple way to tell when the login needs refreshing, since that has to happen regularly.

Add basic tests and a clear README showing the common flow from login to listing devices to unlocking. Look up current docs online if you need to.

Want more depth? Deep Reverse