Integrating Hikvision IP Camera with Homey Flow for PTZ Control

Hey everyone, I’m really excited to explore the possibilities of integrating my Hikvision IP camera with Homey Flow. I’ve been wanting to automate some camera movements based on sensor triggers, and I think this could be a great way to enhance my smart home setup. Here’s what I’ve been working on:

I’ve discovered that Hikvision cameras require a PUT request to adjust their PTZ positions, which is a bit different from the usual GET requests. The goal is to trigger a PTZ preset when a PIR sensor detects motion. For example, when someone enters the room, the camera could automatically adjust to a preset position to capture the best angle.

I’ve set up a working PUT command that looks like this: http://CameraIP/channels/1/presets/PresetNumber/goto. This works perfectly when I test it manually, but I’m struggling to get it to work seamlessly within a Homey Flow. I’ve tried various combinations of actions and triggers, but I’m not quite there yet.

I’m curious if anyone has successfully integrated Hikvision cameras with Homey Flow for similar purposes. Any tips, tricks, or best practices would be incredibly helpful! I’m especially interested in how others handle authentication within the PUT request and ensure the flow runs smoothly without any hiccups.

If you’ve tackled something like this before, I’d love to hear about your approach. Maybe there’s a smarter way to structure the flow or a specific app that simplifies the process. Let’s collaborate and make this happen!

Cheers,
[Your Name]