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.
Hi,
We have a SmartConnector Push processor that receives alarms in real-time from the EBO. The question is:
Can this processor receive the alarm's Discovery property from the EBO?
See the attached screen capture of the class we are suing.
Thank you.
Mike
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you. I shall mark this as a solution. Can you add the "Note 1" and "Note 2" to the EWS in the future?
Thanks.
Michael
Link copied. Please paste this link to share this article on your social media post.
Hi,
From what I understand from your screenshot, you are using the AlarmItemReader, which in turn uses the GetAlarmEvents and GetUpdatedAlarmEvents EWS endpoints. These get the AlarmEvents, and not the AlarmItems. If you are looking for the alarms Description property, you'll have to make an additional call(GetItems), fetching the AlarmItem, to get the property.
BR
Armend
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you for your answer. Can we also get the alarm's 'Note 1' and 'Note 2' using the GetItems API?
Thank you.
Mike
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
I am trying the Swagger in SmartConnector to get the alarm's Description, Note 1 and Note 2.
I have the following alarm ID:
02-Server 1-MyValues-Building-10thTemp Out of Range Alarm
After URL Encode it is:
02-Server%201-MyValues-Building-10thTemp%20Out%20of%20Range%20Alarm
Can you point me to the right API in the Swagger?
Thanks.
Mike
Link copied. Please paste this link to share this article on your social media post.
Hi,
It's GET /Values/{Id}/Description
You cannot get Notes as it is not part of EWS.
BR
Armend
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you for your answer.
I have tried it and got an error 404. Please see the attached file.
Any idea what is the problem?
The alarm ID is: 02-Server 1-MyValues-Building-10thTemp Out of Range Alarm
After URL Encode it is: 02-Server%201-MyValues-Building-10thTemp%20Out%20of%20Range%20Alarm
Thank you.
Mike
Link copied. Please paste this link to share this article on your social media post.
If the EWS server is an EBO system, your ID looks wrong.
It should be in this format:
02/Server 1/Example Objects/Test Alarm
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you for your answer. Can our discovery processor get the Alarm Description, Note 1 and Note 2?
Currently our alarm discovery processor discovers these properties:
Alarm-ID
Alarm Presentation (Message) - Above Upper limit message / Below lower limit message
Above Upper limit Priority
Below Upper limit Priority
Thank you.
Mike
Link copied. Please paste this link to share this article on your social media post.
I don't think you can get the Notes through EWS.
You can get the Description with your processor using the EWS client.
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you for your answer. I didn't see any API to retrieve the Above Upper limit Priority and Below Upper limit Priority but our processor is able to retrieve (using the source I sent you).
Similarly, can we retrieve the other fields during the discovery? (Notes and Description)
Thanks.
Mike
Link copied. Please paste this link to share this article on your social media post.
I believe Notes cannot be retrieved. Description can be fetched with GetItems, not with GetValues, which the chunk of code you sent me is using.
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you for your answer. Can you please point me to the documentation of the GetValuesItems API?
Thanks.
Mike
Link copied. Please paste this link to share this article on your social media post.
This is the EWS spec. This is what the Smartconnector client uses and the GetValues request is in there too.
Link copied. Please paste this link to share this article on your social media post.
Hi Armend,
Thank you. I shall mark this as a solution. Can you add the "Note 1" and "Note 2" to the EWS in the future?
Thanks.
Michael
Link copied. Please paste this link to share this article on your social media post.
This is unfortunately not in my control, but I'll talk to the dev team behind EWS to see if it's possible.
BR
Armend
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.