# Controlling PTZ IP-Cam over Fakeroku with Logitech Harmony

**URL:** https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034
**Category:** General
**Created:** [21 May 2020 11:56 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034 "2020-05-21T11:56:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![TRS](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@TRS](https://discourse.nodered.org/u/TRS)
#### Post date: [21 May 2020 11:56 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/1 "2020-05-21T11:56:10Z")

</div>

Hallo all,

first please forgive me my not perfect english.  
I am using a Logitech Harmony and for my TV Receiver. I managed it to view the stream of the ip cameras like a normal TV channel.  
My goal is to control the PTZ IP-Cam also with my Logitech Harmony. I just want it to move to the defined presets, if i press a button on it.  
The harmony system is pretty bad when its coming to home automation. But I think its possible to do it with the fakeroku node and some Java knowings (which I aint got).

Things i

> **Summary**
>
> This text will be hidden

already found out or achieved:

- Running NodeRed on my Pi
- Working Fake Roku and integration in my harmony hub
- CGI-Commands for moving the IP-Cam to the defined presets which is also described here [https://ipcamtalk.com/threads/control-reolink-rlc-423-with-api.16815/](https://ipcamtalk.com/threads/control-reolink-rlc-423-with-api.16815/) on post #16

The problem I got is to bring it all together. To move to PTZ preset 1 i want to press the play button on the Harmony triggering the fakeroku device. If that is happening the function node should perform a command to move the camera.  
But there is nothing happening.

The second problem I got is, that the token for the camera is changed by itselft all 5 minutes.  
I know how I find it out but I don’t know how to get that automatically and put it into the command.  
Can anybody here help me with that?

There is already a similar topic in this forum. But my camera is not using MQTT. So its not possible to use the solution there [![Unbenannt](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74c9ab5ede567d31cb9309a88ea0d89fb72911e7.jpeg) ![Unbenannt2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f17153063b9048a59f924eef9809f3876395edad.jpeg) ](https://discourse.nodered.org/t/logitech-harmony-to-mqtt-camera/22799/4)

Thanks for every help in advance.

Greetings Andi

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [21 May 2020 14:26 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/2 "2020-05-21T14:26:01Z")

</div>

> [@TRS](#):
>
> The second problem I got is, that the token for the camera is changed by itselft all 5 minutes.  
> I know how I find it out but I don’t know how to get that automatically and put it into the command.  
> Can anybody here help me with that?

I doubt I'll be able to help you but does your camera happen to support ONVIF? If it does then maybe the PTZ control could be achieved with [GitHub - bartbutenaers/node-red-contrib-onvif-nodes: Node Red nodes for communicating with OnVif compliant IP devices](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes)

I own a Harmony Hub but I've only used it to receive commands from Node-RED and not the other way around (well it doesn't even have a remote).

---

<div class="post-metadata">

### Author: ![TRS](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@TRS](https://discourse.nodered.org/u/TRS)
#### Post date: [21 May 2020 15:31 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/3 "2020-05-21T15:31:17Z")

</div>

Hi ristomatti,

thanks for your input. Ofc it is a help.  
The good thing is my cameras are all supporting Onvif. I will try that out the next days.  
There is already the possiblity implemented to move to presets. So the problem with the token is gone.

If this will work, then i just have to bring the input command of the fakeroku device and the onvif node together.

I will report as soon as i had time to take a look at it.

Greetings Andi

---

<div class="post-metadata">

### Author: ![TRS](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@TRS](https://discourse.nodered.org/u/TRS)
#### Post date: [23 May 2020 14:16 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/4 "2020-05-23T14:16:49Z")

</div>

Hello guys,

i made it. Thanks to @[**ristomatti**](https://discourse.nodered.org/u/ristomatti) again. He gave me the hint in the right direction.

I needed 3 nodes:

- fakeroku node ([https://flows.nodered.org/node/node-red-contrib-fakeroku](https://flows.nodered.org/node/node-red-contrib-fakeroku))
- onvif-nodes (see post #2)
- time delay node (just search in node UI)

To controll the ip cam with the Logitech harmy you have to install the Fakeroku node and create a fake hub. Then you can connect it to the Logitech Harmony hub.

There are now 12 button on the remote control which can be used in the way you want.

I am using the buttons for moving to the presets 1 to 5 and to move in the direction I want. Also it is possible now to zoom in and out.

First I got the problem if a movement was triggered, it wouldn’t stop. So there is also a time delay node to trigger the stop after the time you want. In this way its possible to set the angle the camera is moving by pressing the button one time on the harmony. More time before you trigger the stop command, the more the cam will move with once pressing.

If you have any question, just feel free to ask.

 ![Unbenannt](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/635503a73799a4a3f0c5c91944f71865fc7cbf20.jpeg)

Greetings Andi

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [23 May 2020 16:11 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/5 "2020-05-23T16:11:17Z")

</div>

Great to hear you were able to work it out from there! Quite a spiderweb you got there. 😄

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [23 May 2020 16:45 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/6 "2020-05-23T16:45:28Z")

</div>

looks logical and easy to understand to me... !

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [23 May 2020 16:49 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/7 "2020-05-23T16:49:38Z")

</div>

Agree. I've got a bunch myself. 😄

---

<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: [6 June 2020 16:49 UTC](https://discourse.nodered.org/t/controlling-ptz-ip-cam-over-fakeroku-with-logitech-harmony/27034/8 "2020-06-06T16:49:38Z")

</div>

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