I developed a plug-in based on VMS and developed the event myself, and configured the rules and events in VMS Management Client, but no event was detected to be triggered. My question is, how can the event in this plug-in be triggered? How can the code be

My guess is that this is very similar to the Sensor Monitor sample and you have perhaps also used that sample as inspiration.

In the sample there is controllers, these have to commands: “Power controller off” and “Power controller on”.

These can be reached and controlled by users when using Map and SmartMap in the Smart Client. Like this:

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/sensormonitor/readme.html&tree=tree_1.html

Thank you very much for your answer. In your scenario, the user still needs to manually trigger the event, but I want it to be automatically triggered by VMS. For example, my event will be triggered if an object breaks into the monitoring area

The Sensor Monitor sample also includes an action Start

Implementing an action will allow users to setup rules that trigger something happening in your plugin.

I see. Thank you very much