Alarm sensor on door connected to Hikvision camera to turn off outlet

I am looking for a way to turn off an electrical outlet (Air Conditioner) in my office when the door is open for more than 60 seconds. I was thinking about the camera because it does have an alarm sensor and the camera is right above the door so utilizing the alarm sensor made sense but their might be another option. I just dont know if there is an integration with hikvision that will allow me to use the alarm to trigger a electrical outlet to turn off or on.