Tapo C560WS - ONVIF Event node not working

Hi.
I have a Tapo C560WS camera working with ONVIF (port 2020). PTZ gotoPreset works fine (see this topic).
I am using the node-red-contrib-onvif-nodes package by @BartButenaers (version 0.0.1-beta.16).
I am now trying to use the onvif-event node. I tested all 4 actions:

Start listening
Stop listening
Get event properties
Get event service capabilities

But the debug node shows no output at all. Is this a Tapo limitation or a known issue with the event node?
Thanks

Hi,

I have tested getEventProperties directly via the onvif library in Node.js and the camera returns event properties correctly. So the camera supports events.

The camera supports these event types:

  • cellMotionDetector - IsMotion

  • tamperDetector - IsTamper

  • intrusionDetector - IsIntrusion

  • lineCrossDetector - IsLineCross

  • peopleDetector - IsPeople

  • TPSmartEventDetector - IsTPSmartEvent

But when I use the onvif-event node with Start listening action, the debug node shows no output at all - not even when motion is detected.

Is there something wrong with my flow or is Start listening broken for Tapo cameras?

I found a solution. The onvif-event node with Start listening does not work with Tapo C560WS, but I tested the onvif library directly in Node.js terminal and it works:

javascript

var onvif = require('onvif');
var cam = new onvif.Cam({
  hostname: '192.168.1.50',
  port: 2020,
  username: 'username',
  password: 'password'
}, function(err) {
  cam.on('event', function(event) {
    console.log(JSON.stringify(event));
  });
});

Events are received correctly (PeopleDetector, MotionDetector etc.). So the camera supports ONVIF events but the onvif-event node does not work with this camera. Is there a way to use the onvif library directly inside a Node-RED function node?

Yes. Use any npm module in Node-RED • FlowFuse