This function is OK, we receive the EMail by an Motion Detection on a camera. We want now to deactivate the rule to suppress an alarm from the Milestone XProtect Server by the SDK. But this rule is not avaible by the SDK with the function GetItem(“/RuleFolder”). If we remove the email notification from the rule, the rule will be recognized by the SDK. Is the EMail notification in a rule a problem for the SDK?
Hi Hardo,
In 2020 R1 we released limited support for rule manipulation through the Configuration API and as you’ve discovered, the email notification action appears not to be available yet. It will probably be available in a subsequent release - hopefully 2020 R2.
Here is an excerpt from the “Introduction to Configuration API” with more information about what is supported regarding rules so far.
Rules configuration
Supported features
Currently (XProtect 2020 R1), the following rules and actions are supported.
Rule triggering:
- Event rule types
- Device events
- Access Control events
- Analytics events
- Interval rule type
- Time interval
Rule conditions:
- Within time profile
Start actions:
- Start recording
- Move camera to default preset
- Move camera to
- Set output to
Stop actions:
- Stop recording on event
- Move camera to default preset
- Move camera to
- Set output to
These restictions apply:
- The start event and the stop event must be of the same rule type, that is, either event rules or interval rules.
- The interval rule type supports Always and Within time profile.
Dear Josh,
We want to deactivate the milestone server sending E-mail in specific situations. Is this possible via SDK?
The reason is that we are recieving an E-Mail, when a specific action is triggered.
This action is triggered by rules on a camera, for example when the camera is detecting motions.
Under some circumstances we want to recieve an E-mail then, e.g. it is nighttime and nobody whatches what is going on, on the screen.
But on daytime, for example, we don’t want to recieve an E-mail, that is because somebody is watching the screen.
So how can we access the mail-server on the milestone-system via SDK? Is this even possible?
Thanks in advance!
Kind regards
Hi Hardo,
I don’t think the mail server or notification profile settings are available via MIP SDK, but I think you can create a rule to send notifications within a time profile to meet this need. See the rule example below for reference
Hi Josh,
Thank you for your support so far! Unfortunately, the solution of realizing this with a time profile or schedules is not an option for us, since the customer can activate the arming / disarming manually, i.e. at any time to suppress false alarms.
Is there another solution to implement arming / disarming via the SDK? A solution to prevent SMTP sending from the Milestone Client would be a good, because sending an alarm via SMTP would be sufficient for us at this point. Alternatively, a solution to deactivate the motion detection rule via SDK would also be a good solution for us.
Do you by any chance already have a release date for the new release of the SDK?
Kind Regards,
