Reolink PTZ - How to send HTTP in HE

I'm trying to send an HTTP GET to my Reolink camera's API to set the Pan/Tilt to a preset position. I have the code working in postman.

Not sure of the best way to get to work in HE, so I can have dashboard buttons for: position 1, position 2, position 3... Each button would send a HTTP message to set the camera's position.

Would be great to be able to share these buttons with Homekit, so I could change the camera's position on my Apple TV.

I'm new to HE, thanks for pointing this out.

I need to pass headers and a json body, I assume I need to write a device driver to do that...... (yes/no)?

Here is what I'm using in postman:

GET /cgi-bin/api.cgi?user=admin&password=MyPassword HTTP/1.1
Host: 192.168.1.25
Content-Type: application/json
Content-Length: 189

[
    {
        "cmd": "PtzCtrl",
        "action": 0,
        "param": {
            "channel": 0,
            "id": 1,
            "op": "ToPos",
            "speed": 10
        }
    }
]
1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.