Get a boolean output from the Hikvision node

Hi,

With the node "node-red-contrib-hikvision-ultimate" i can move my camera with the "PTZ" node.
After moving the camera stops in his new position. How can I get the the boolean out of PIN1?
I will use it for my dashboard to indicate that the camera is reached the preset position.

output PIN1

msg = {
{
"payload": true, // true after the camera has reached the PTZ preset position
"_msgid": "b07e50f6.86a72"
}

Gr. Johannes

You might want to ask the author about that on GitHub

Do you mean that you have got a message with the payload true or false and want to know how to access that?

Hi,

Yes there is only a message in the payload during moving the camera. When the camera has the correct position the message is dissapeared in the debug node.

I cannot reached that

What does the last message in the debug node show?

See below the info from the debug node.
the message is: "isDataRetransmission: false" (what is dissapearing after movement of the camera)

2-3-2026, 17:32:40node: debug 10Car Garage : msg.payload : Object

object

ipAddress: "192.168.1.110"

ipv6Address: "::ffff:192.168.1.110"

portNo: 80

protocol: "HTTP"

macAddress: "09:4a:c2:af:77:ca"

channelID: 1

dateTime: "2026-03-12T17:35:18+01:00"

activePostCount: 1

isDataRetransmission: false

eventState: "active"

channelName: "Toegangshek nr.9"

eventType: "GISInfo"

eventDescription: "GISInfo"

GISInfo: object

What comes out of pin 1 of the PTZ node when you send it the Set Preset command?

What I have shown above

Which one?

All the messages

I don't understand. Please create a simple flow with an Inject node, the PTZ node and two Debug nodes on the outputs, each set to Output Complete Message. Configure the inject node with the Preset Set command. Also connect the Inject node to another debug node, and then click the inject node. Take a screenshot with the flow and the debug output and paste the image here.

Hi, below all the info.
debug 11 & 12 no info shown.

[
    {
        "id": "518ea733398df3e9",
        "type": "hikvisionUltimatePTZ",
        "z": "db037f2986eecdd1",
        "name": "Car Garage",
        "topic": "",
        "server": "880115bdb5c70e2b",
        "channelID": "3",
        "PTZPreset": "1",
        "x": 920,
        "y": 2040,
        "wires": [
            [
                "e2aae9a675dcd61a"
            ],
            [
                "f09c1736fcbc6708"
            ]
        ]
    },
    {
        "id": "e2aae9a675dcd61a",
        "type": "debug",
        "z": "db037f2986eecdd1",
        "name": "debug 9",
        "active": true,
        "tosidebar": true,
        "console": true,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1250,
        "y": 2040,
        "wires": []
    },
    {
        "id": "f09c1736fcbc6708",
        "type": "debug",
        "z": "db037f2986eecdd1",
        "name": "debug 11",
        "active": true,
        "tosidebar": true,
        "console": true,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1250,
        "y": 2100,
        "wires": []
    },
    {
        "id": "a7a706817dcd6a1d",
        "type": "debug",
        "z": "db037f2986eecdd1",
        "name": "debug 12",
        "active": true,
        "tosidebar": true,
        "console": true,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1250,
        "y": 2160,
        "wires": []
    },
    {
        "id": "ca6fa52950f73dec",
        "type": "change",
        "z": "db037f2986eecdd1",
        "name": "payload.channelID",
        "rules": [
            {
                "t": "set",
                "p": "payload.channelID",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 690,
        "y": 2040,
        "wires": [
            [
                "518ea733398df3e9"
            ]
        ]
    },
    {
        "id": "ca4ed05ff5ca13dd",
        "type": "change",
        "z": "db037f2986eecdd1",
        "name": "Set to channelID",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.channelID",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 470,
        "y": 2040,
        "wires": [
            [
                "ca6fa52950f73dec"
            ]
        ]
    },
    {
        "id": "2a98e614254e1b59",
        "type": "inject",
        "z": "db037f2986eecdd1",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 250,
        "y": 2100,
        "wires": [
            [
                "ca4ed05ff5ca13dd",
                "a7a706817dcd6a1d"
            ]
        ]
    },
    {
        "id": "880115bdb5c70e2b",
        "type": "Hikvision-config",
        "host": "192.168.1.67",
        "port": 80,
        "name": "Camera bij hek nr. 9",
        "authentication": "digest",
        "protocol": "http",
        "heartbeattimerdisconnectionlimit": 2,
        "deviceinfo": {},
        "debuglevel": "yes",
        "streamtimeout": 3
    },
    {
        "id": "9b519a6806df9b3d",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-contrib-hikvision-ultimate": "1.2.20"
        }
    }
]

12-3-2026, 18:49:10node: debug 9Car Garage : msg : Object

object

topic: "Car Garage"

payload: object

type: "event"

_msgid: "5b03d72961764830"

12-3-2026, 18:49:11node: debug 12msg.payload : boolean

true

If i understand correctly, try a trigger node set to send nothing, if msg received extend delay, then send latest msg. Set delay to say 1 second.

That should pass on msg when PZT movement stops.

I meant that one of the debug nodes should show what you are sending to the ptz node. Move Debug 12 so that it shows what is going into the PTZ node. Also then click on the payload object in debug 9 output to see what is there.

Your first Change node is doing nothing.

Also, are you sure the output from pin 1 is caused by clicking the inject? According to the timestamps the output on pin1 is before clicking the inject.

Also try setting the preset number.

The output of the PTZ node is always "true" (debug 9)

The input of the PTZ node (moved debug node 12):

12-3-2026, 20:15:29node: debug 12msg.payload : Object

{ channelID: 1 }

When I remove the first change node, the PTZ node is not trigger the PTZ node.
(I check also the movement of the camera)

I have tried to set the trigger node as explaned by E1cid, but the output of the PTZ node is not changed

Debug 13 & 9 before trigger the PTZ node

12-3-2026, 20:37:43node: debug 9Car Garage : msg : Object

{ topic: "Car Garage", payload: object, type: "event", _msgid: "a128770b072acbc0" }

12-3-2026, 20:37:44node: debug 13Car Garage : msg.payload : boolean

true

Debug 13 & 9 after trigger the PTZ node

12-3-2026, 20:39:48node: debug 9Car Garage : msg : Object

{ topic: "Car Garage", payload: object, type: "event", _msgid: "10b8263c5840e1b5" }

12-3-2026, 20:39:49node: debug 13Car Garage : msg.payload : boolean

true

What version of the node are you using (check in Manage Palette)?

The only thing what is changing is the message in the payload "payload.isDataRetransmission: false"
This boolean is only false during traveling of the camera, after that the message in dissapearing from the payload.