Sorry people, I can’t implement things I can’t test myself and I still can’t quite understand your request
As shown in post #236 of @dafdegiraf, there is a switch, which should - upon turning on - relay PIR events as motion detection events. If this is the case, those events should be shown in the Timeline app and should thus be available for the binding.
That means: if you events are not shown in the Timeline app, I don’t see any way to include them in the binding. I ask for your understanding, that I’m not going to support some third party PIR provider which are not supported by the Synology Surveillance Station API itself. If this is the case, you should look for an other binding (or use Exec / JS Transform) for obtaining events and using them in your rules.
On the other hand, if your events are shown in the Timeline app, I’m depending on you to help me find out, why they are not available for the binding. In this case, some answers for my questions in previous post #293 could help.
You can also check your events directly:
- Execute this to get your SID:
http://192.168.0.2:5000/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=3&account=xx&passwd=yy&session=SurveillanceStation&format=sid
- Execute this with the SID and Camera ID to get full event list of your camera
http://192.168.0.2:5000/webapi/entry.cgi?&version="4"&cameraIds="1"&api="SYNO.SurveillanceStation.Event"&method="List"&limit=10&_sid=kbpMwEAKPNzLU14A0MDN043107
You should then see last 10 events being triggered. If your PIR event is among them, please check his reason
:
"reason":2
As of now, the binding polls for reasons 2 (Motion), 3 (Alarm) and 5 (Manual). Perhaps your PIR sensor generates 6 (External), that’d be easy to implement. Other possibility would be creating an Action Rule in your Surveillance Station, which should trigger reason 9.