SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
I'm looking at the Soap Rest Provider API Swagger docs and cannot see any way in which the GetUpdatedAlarmEvents can be called. Is this supported in the native Ews.RestExtensions.SoapEwsRestProvider class?
If not, has anyone custom implemented this already?
I've also looked at Subscriptions and whilst the EWS Specification suggests you can also register a subscription for AlarmEventCreated, I've never done this before and don't see how would work.
Link copied. Please paste this link to share this article on your social media post.
Hi Adam,
With the SOAP rest endpoint, GetUpdatedAlarmEvents is called automatically when you send a subsequent request to the /AlarmEvents endpoint. The first time a request is sent, it uses GetAlarmEvents, and then uses GetUpdatedAlarmEvents afterwards.
As far as the EWS Subscriptions. Although it is part of the spec, it is not supported by the vast majoirty of EWS servers (Maybe SmartConnector's EWS server supports it, but i know EBO does not.)
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Adam,
With the SOAP rest endpoint, GetUpdatedAlarmEvents is called automatically when you send a subsequent request to the /AlarmEvents endpoint. The first time a request is sent, it uses GetAlarmEvents, and then uses GetUpdatedAlarmEvents afterwards.
As far as the EWS Subscriptions. Although it is part of the spec, it is not supported by the vast majoirty of EWS servers (Maybe SmartConnector's EWS server supports it, but i know EBO does not.)
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Jeff,
Thanks, so to clarify the behaviour you are describing is more of a background operation in the SC Endpoint? I noted that repeatedly polling the /AlarmEvents returns the same results on every request (assuming no change of alarm state on my ES) - so the Endpoint is holding that result and updating accordingly and returning it to me each time as a current alarm stack?
Obviously calling GetUpdatedAlarmEvents would return an empty list if no alarm updates happened since the last poll.
I kind of expected the first request to return the data, and subsequent to only contain changes (the way you have to handle that in EWS directly)
What you explained is that is abstracted away inside the endpoint, and consumers can openly just call the /AlarmEvents with no parameters to always get the "current alarm stack" - the most efficient way to do that is handled by the SC Endpoint.
That said - it still doesn't seem to work as I expected. I've only got 3 active alarms in my ES and the response is still containing the full stack of alarms, even after several requests. Could you elaborate a little on how I would only get the active alarms "now"
/AlarmEvents?state=Active returns all items in the "to active" state (12 alarms in total) even those that are no longer present in EBO.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.