SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Posted: 2018-01-10 07:08 AM
Link copied. Please paste this link to share this article on your social media post.
I've been able to get subscriptions and notifications to work for getting value items out of struxureware, but it doesn't seem to work for alarms.
Currently, I'm sending something like this:
POST /Subscriptions/Create
{
"DurationInMinutes":10,
"SubscriptionType":"ValueItemChanged",
"Ids":[
"02/OrangeJuice/minitest/MyAlarm"
]
}
The alarm is not included in the results when I Create/Get the first Notification for the Subscription.
I also tried setting SubscriptionType = AlarmItemChanged, and this didn't seem to work.
Link copied. Please paste this link to share this article on your social media post.
Hi Josh,
SBO as an EWS server does not support alarms via subscription. You will need to use the /AlarmEvents endpoint (with its query parameters) to retrieve alarm events.
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Hi Josh,
As a 'Work Around', if it is an SBO alarm you could always use the ID '11/OrangeJuice/minitest/MyAlarm/AlarmState' with the 'ValueItemChanged' event type in order to see when the AlarmEvent changes. (0 = Normal, 1 = Alarm, 2 = Acknowledged, 3 = Reset, 4 = Disabled). That said, doing it this way, you will only ever see the most recent change for that alarm.
Typically, if you want to track the AlarmEvents, using the /AlarmEvents endpoint is generally the best to do.
Regards,
-Jeff
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.