Open SubBass100 opened 1 year ago
What I do on my Amcrest camera is getting the value from msg.data.name. For the line crossing you need to extract it additionally from RuleEngine/LineDetector/Crossed
[{"id":"365f064029265f6a","type":"switch","z":"eb86f7cd521e3617","name":"What detected?","property":"data.name","propertyType":"msg","rules":[{"t":"eq","v":"IsSoundDetected","vt":"str"},{"t":"eq","v":"IsMotion","vt":"str"},{"t":"eq","v":"IsInside","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":980,"y":660,"wires":[[],[],["e41ab331760a1458"],["02cb7e173910fbb7"]]},{"id":"02cb7e173910fbb7","type":"switch","z":"eb86f7cd521e3617","name":"Crossed","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"RuleEngine/LineDetector/Crossed","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1000,"y":720,"wires":[["728c5e469ec57e62"]]},{"id":"e41ab331760a1458","type":"debug","z":"eb86f7cd521e3617","name":"debug 240","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1270,"y":640,"wires":[]},{"id":"728c5e469ec57e62","type":"debug","z":"eb86f7cd521e3617","name":"debug 241","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":740,"wires":[]}]
Check the topic and see if other detection rules are displayed
This software is awesome, though I am having a problem retrieving AI Human/Car events from my Amcrest/Dahua camera. fwiw I am able to receive motion events as well as other basic onvif events from the camera using your software. What I am currently doing is using my cameras IVS trip wire option, There is an additional field on my camera that is called "rule" I can name the rule anything but if a car or human trips within my IVS it will push the detection over onvif with the rule name (in my case "car"). You can see the output in Onvif Manager below. Is there an easy way I can add an event type or create a generic type for the node to display? Currently the rule name is not visible using your node and that is the only way for me to distinguish amongst rules. Thank you! I can provide any additional information that may help! Thank you!