IPC-T54IR-ZE-S3 - AI Send Command to Openhab

oak guy

n3wb
Feb 22, 2018
16
4
Hi. My cameras are not behind an NVR. I'm trying to use the SEND COMMAND under the AI IVS settings. I want to send a command to my Openhab server to trigger an item action using it's REST api. When I select the Server (already setup) it populates the first part of the Command field. I copy my CURL command in the next field. My CURL command is not running but is tested outside of the camera interface and works perfectly. Will CURL commands execute this way? The Openhab server is added to the Server Config setup, enabled, and tested ok for communication.


The command string:

curl -X 'POST' \ '' \ -H 'accept: /' \ -H 'Content-Type: text/plain' \ -d 'ON'

Note copying the curl command in proper field changes the formatting then pasting that string into a terminal, I get a malformed URL error:

curl -X 'POST' \ '' \ -H 'accept: /' \ -H 'Content-Type: text/plain' \ -d 'ON'

curl: (3) URL rejected: Malformed input to a URL function

What actually works in a terminal:

1749764538326.png
I must have to insert new line characters?


Any ideas would be great! Below was an attempt to combine both fields if the camera was combining both fields internally.

Screenshot 2025-06-12 at 4.34.07 PM.png

Thanks

Guy