# Get a boolean output from the Hikvision node

**URL:** https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541
**Category:** General
**Created:** [12 March 2026 13:40 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541 "2026-03-12T13:40:56Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 13:40 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/1 "2026-03-12T13:40:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 March 2026 14:35 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/2 "2026-03-12T14:35:29Z")

</div>

You might want to ask the author about that on GitHub

> **[Supergiovane/node-red-contrib-hikvision-ultimate](https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/issues)**
>
> A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc. - Supergiovane/node-red-contrib-hikvision-ultimate

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 16:08 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/3 "2026-03-12T16:08:17Z")

</div>

> [@Johannesje](#):
>
> "payload": true, // true after the camera has reached the PTZ preset position

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

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 16:13 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/4 "2026-03-12T16:13:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 16:14 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/5 "2026-03-12T16:14:47Z")

</div>

I cannot reached that

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 16:27 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/6 "2026-03-12T16:27:23Z")

</div>

What does the last message in the debug node show?

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 16:40 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/7 "2026-03-12T16:40:06Z")

</div>

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:40[node: debug 10](http://192.168.1.35:1880/#)Car 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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 16:44 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/8 "2026-03-12T16:44:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 16:53 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/9 "2026-03-12T16:53:53Z")

</div>

What I have shown above

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 17:04 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/10 "2026-03-12T17:04:36Z")

</div>

Which one?

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 17:06 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/11 "2026-03-12T17:06:24Z")

</div>

All the messages

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 17:12 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/12 "2026-03-12T17:12:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 18:00 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/13 "2026-03-12T18:00:45Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11cd9714a921ce82ae2bd17cb173aec7b3cf10b7.png)

```auto
[
    {
        "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:10[node: debug 9](http://192.168.1.35:1880/#)Car Garage : msg : Object

object

topic: "Car Garage"

payload: object

type: "event"

\_msgid: "5b03d72961764830"

12-3-2026, 18:49:11[node: debug 12](http://192.168.1.35:1880/#)msg.payload : boolean

true

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [12 March 2026 18:12 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/14 "2026-03-12T18:12:27Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 18:45 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/15 "2026-03-12T18:45:34Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 18:54 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/16 "2026-03-12T18:54:16Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [12 March 2026 19:42 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/17 "2026-03-12T19:42:48Z")

</div>

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:29[node: debug 12](http://192.168.1.35:1880/#)msg.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

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d3f45a956541d9d140d8eea6f3a1328af3db6858.png)

Debug 13 & 9 before trigger the PTZ node

12-3-2026, 20:37:43[node: debug 9](http://192.168.1.35:1880/#)Car Garage : msg : Object

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

12-3-2026, 20:37:44[node: debug 13](http://192.168.1.35:1880/#)Car Garage : msg.payload : boolean

true

Debug 13 & 9 after trigger the PTZ node

12-3-2026, 20:39:48[node: debug 9](http://192.168.1.35:1880/#)Car Garage : msg : Object

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

12-3-2026, 20:39:49[node: debug 13](http://192.168.1.35:1880/#)Car Garage : msg.payload : boolean

true

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2026 20:36 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/18 "2026-03-12T20:36:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [13 March 2026 07:00 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/19 "2026-03-13T07:00:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/7857d49be79f8fe0f7c4a6e42496479b8b9b57c8.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97253a7e779acd85b2a43016b0e959229a99b38c.png)

---

<div class="post-metadata">

### Author: ![Johannesje](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Johannesje](https://discourse.nodered.org/u/Johannesje)
#### Post date: [13 March 2026 07:26 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/20 "2026-03-13T07:26:01Z")

</div>

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.

[Next page](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541.md?page=2)
