# 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:** 13\
**Page:** 3

<div class="post-metadata">

**Author:** ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)\
**Post date:** [14 March 2026 18:41 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/41 "2026-03-14T18:41:38Z")

</div>

Ok, understood. Tomorrow i’ll check with my ptz

---

<div class="post-metadata">

**Author:** ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)\
**Post date:** [15 March 2026 09:35 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/42 "2026-03-15T09:35:50Z")

</div>

node-red-contrib-hikvision-ultimate 1.2.21 is out  
Changelog: [node-red-contrib-hikvision-ultimate/CHANGELOG.md at master · Supergiovane/node-red-contrib-hikvision-ultimate · GitHub](https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/blob/master/CHANGELOG.md)

The behaviour was already right, but i've added another option to wait until the camera really reached the position.

---

<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:** [15 March 2026 10:52 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/43 "2026-03-15T10:52:18Z")

</div>

@Johannesje I have just noticed that in the PTZ node you have specified Camera 3, but in the message you are sending it `{channelID: 1}`. Should those not be the same?

---

<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:** [15 March 2026 13:35 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/44 "2026-03-15T13:35:36Z")

</div>

Hi,

@Colin  
I have more camera video streams and I use videostream 3.  
When I change channelID to 3 then there is no input for the PTZ node.

@Supergiovane  
Thank you for the update, now when the camera reached his preset, a true value is generated 🙂  
I have more PTZ presets and now I must figure out that there is always one LED buring on my dashboard (each preset has his own LED) so I can see the last preset (I think a little bit difficult for me....)

What is channelID? only "channelID = 1" is working and on the node website is talking about camera number (no channel number)?  
Below how I trigger the PTZ node, to send direct a boolean is not working.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1aaf4af98d5b7999afe7612651d288a06b6946d9.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/f/cfd18663aea56414b7455627c43cc3f163194535.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4c82f3ffef10f08d706d07f7178dfb7b4d276e68.png)

Otherwise it is a very cool node for me 🙂

---

<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:** [15 March 2026 13:37 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/45 "2026-03-15T13:37:33Z")

</div>

Can you explain what the first change node is doing?

---

<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:** [15 March 2026 13:43 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/46 "2026-03-15T13:43:21Z")

</div>

Good question, when I remove the change node, I cannot trigger the PTZ node.....

---

<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:** [15 March 2026 13:52 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/47 "2026-03-15T13:52:26Z")

</div>

Add debug nodes at each point and see what the difference is to the message going to the PTZ. There should be no difference as far as I can see.

---

<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:** [15 March 2026 13:58 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/48 "2026-03-15T13:58:57Z")

</div>

Oh, I see why. With the node there then msg.payload into the second change node is undefined so the change node creates it and sets the channel id. With the first change node removed then msg.payload is true, which is not an object, so the change node is not able to set the channelID. If you change the second change node to this then you won't need the first one.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e532bea8428bf0dbc10e724c43be95494529aa49.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:** [15 March 2026 14:08 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/49 "2026-03-15T14:08:30Z")

</div>

Yes, thanks.

---

<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:** [15 March 2026 15:29 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/50 "2026-03-15T15:29:25Z")

</div>

> [@Johannesje](#):
>
> What is channelID?

Is it a stream number? Can Hikvision cameras have more than one stream? Possibly different resolutions.

---

<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:** [15 March 2026 15:58 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/51 "2026-03-15T15:58:20Z")

</div>

Hi Colin,

My camera has more camara's, each with 3 streams see below  
It has a panoramic camera and a camera with PTZ.  
The substream has lower resolution what you mentioned.  
DS-2SE4C425MWG-E/26

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/34eb883c198aac59109df531beeb333b0f1b4301.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:** [15 March 2026 16:10 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/52 "2026-03-15T16:10:48Z")

</div>

I have more PTZ presets and now I must figure out that there is always one LED buring on my dashboard (each preset has his own LED) so I can see the last preset (I think a little bit difficult for me....)

Simply fixed with some boolean inverters

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 March 2026 16:10 UTC](https://discourse.nodered.org/t/get-a-boolean-output-from-the-hikvision-node/100541/53 "2026-03-29T16:10:54Z")

</div>

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

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