Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Unable to work with AlarmEvents (SOAP REST Provider)

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • Unable to work with AlarmEvents (SOAP REST Provider)
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
henrik_alarmdir
Ensign henrik_alarmdir
Ensign

Posted: ‎2020-03-04 03:58 AM

0 Likes
4
1213
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-04 03:58 AM

Unable to work with AlarmEvents (SOAP REST Provider)

Having some troubles working with AlarmEvents 

 

I testing using the builtin swagger, before I will start any implementation, I suppose that should work?

 

I'm simply trying to do a simple alarm acknowledge, however no matter what request try I receive a 404 error

 

request:  http://127.0.0.1:8085/AlarmEvents

Response:

[
{
"AlarmId": "02/EBO1/Folder/Function Block Program/ALARM_1",
"Acknowledgeable": 1,
"OccurredOn": "2020-03-04T10:41:31Z",
"LastTransitionedOn": "2020-03-04T11:02:07Z",
"Message": "",
"Priority": 1,
"State": 3,
"Type": "",
"AlarmSourceName": "ALARM_1",
"Id": "/EBO1|/EBO1/Folder/Function Block Program/ALARM_1|3687876d-e20b-482c-9062-3136e16aa711"
},
{
"AlarmId": "02/EBO1/Folder/Function Block Program/ALARM_2",
"Acknowledgeable": 1,
"OccurredOn": "2020-03-04T10:41:31Z",
"LastTransitionedOn": "2020-03-04T11:02:07Z",
"Message": "",
"Priority": 1,
"State": 3,
"Type": "",
"AlarmSourceName": "ALARM_2",
"Id": "/EBO1|/EBO1/Folder/Function Block Program/ALARM_2|0b61c207-202a-4284-89e8-235d14b105a9"
},
{
"AlarmId": "02/EBO1/Folder/COS_1",
"Acknowledgeable": 1,
"OccurredOn": "2020-03-04T11:13:50Z",
"LastTransitionedOn": "2020-03-04T11:13:50Z",
"Message": "Into Alarm",
"Priority": 1,
"State": 1,
"Type": "",
"AlarmSourceName": "COS_1",
"Id": "/EBO1|/EBO1/Folder/COS_1|98dee723-6f77-400b-a8d6-62dc97a447c3"
}
]

 

Now I try to ack COS_1 and I tried to use AlarmId and Id provided above, that just don't work (404).

 

http://127.0.0.1:8085/AlarmEvents/02%2FEBO1%2FFolder%2FCOS_1/Acknowledge

404

 

http://127.0.0.1:8085/AlarmEvents/%2FEBO1%7C%2FEBO1%2FFolder%2FCOS_1%7C98dee723-6f77-400b-a8d6-62dc97a447c3/Acknowledge

404

 

 

I also tried other requests and none works

http://127.0.0.1:8085/AlarmEvents/%2202%2FEBO1%2FFolder%2FCOS_1%22

404

 

What am I missing here?

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-03-04 12:30 PM

0 Likes
3
1202
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-04 12:30 PM

Hi Henrik,

 

I think the issue you are running into is that the {id} in the URL actually needs to be double URL encoded. Swagger single encodes it.

 

To test this, copy your alrm ID (the one that ends with the GUID looking string), into a tool like: https://meyerweb.com/eric/tools/dencoder/ and encode it. Then use the resulting string as the {id}.

 

I think that will make the 404 go away :).

 

Best Regards,

 

-Jeff

See Answer In Context

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-03-05 10:00 AM

0 Likes
1
1189
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-05 10:00 AM

Hi Henrik,

 

Good to hear you are able to acknowledge now via the REST Provider now.

 

I can assure you that the SOAP REST provider is using pure EWS behind the scenes, and we are doing nothing fancy or different in terms of acknowledgement. 

 

GetAlarmHistory does not return acknowledgable alarms, it only returns historical alarms (ones that are not active). You would need to use GetAlarmEvents/GetUpdatedAlarmEvents to get alarm events that are acknowledgeable.

 

Best Regards,

 

-Jeff

See Answer In Context

Reply
Replies 4
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-03-04 12:30 PM

0 Likes
3
1203
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-04 12:30 PM

Hi Henrik,

 

I think the issue you are running into is that the {id} in the URL actually needs to be double URL encoded. Swagger single encodes it.

 

To test this, copy your alrm ID (the one that ends with the GUID looking string), into a tool like: https://meyerweb.com/eric/tools/dencoder/ and encode it. Then use the resulting string as the {id}.

 

I think that will make the 404 go away :).

 

Best Regards,

 

-Jeff

Reply
henrik_alarmdir
Ensign henrik_alarmdir
Ensign

Posted: ‎2020-03-04 10:57 PM

0 Likes
2
1196
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-04 10:57 PM

Yeah, thanks Jeff, as simple as that.

 

And now I can ack alarms too, at least from behind a smartconnector, the thing is (if you remember two years back), I needed to use EWS protocol directly due to missing functionalities of the REST providers in smartconnector. (e.g. GetAlarmHistory).

 

I can use forcevalues etc. without problems but I'm having difficulties acknowledging alarms on that interface so I thought I might try to see whats happening when using SOAP REST provider, now I can see that works fine so I must conclude that this provider must be using something else than EWS against the EBO Server ( EcoStruxure Building Operation 3.1  Enterprise Server).

When I request AlarmEvents on EWS I get the AlarmEvents, just like here, except from that the property "acknowledgeable" is 0 (zero).

 

 

 

And when I try to acknowledge I get permission_denied, I think that's really weird because I using the same account and the same alarms.

EWS configuration of course has Acknowledge alarms = Enabled, when I disable that, I get Operation not supported, which makes sense.

 

 

And when I check the supported requests I get these back.

 

11:12:26 VERBOSE: Profile:Basic Exchange Profile supported
11:12:26 VERBOSE: Profile:Alarm Profile supported
11:12:26 VERBOSE: Profile:History Profile supported
11:12:26 VERBOSE: Profile:Pull Eventing supported
11:12:26 VERBOSE: Operation:AcknowledgeAlarmEvents supported
11:12:26 VERBOSE: Operation:ForceValues supported
11:12:27 VERBOSE: Operation:GetAlarmEvents supported
11:12:27 VERBOSE: Operation:GetAlarmEventTypes supported
11:12:27 VERBOSE: Operation:GetAlarmHistory supported
11:12:27 VERBOSE: Operation:GetContainerItems supported
11:12:27 VERBOSE: Operation:GetEnums supported
11:12:27 VERBOSE: Operation:GetHierarchicalInformation supported
11:12:27 VERBOSE: Operation:GetHistory supported
11:12:27 VERBOSE: Operation:GetItems supported
11:12:27 VERBOSE: Operation:GetNotification supported
11:12:27 VERBOSE: Operation:GetUpdatedAlarmEvents supported
11:12:27 VERBOSE: Operation:GetValues supported
11:12:27 VERBOSE: Operation:GetWebServiceInformation supported
11:12:27 VERBOSE: Operation:Renew supported
11:12:27 VERBOSE: Operation:SetValues supported
11:12:27 VERBOSE: Operation:Subscribe supported
11:12:27 VERBOSE: Operation:UnforceValues supported
11:12:27 VERBOSE: Operation:Unsubscribe supported

 

 

 

 

 

{
"version": "1.2",
"version_Specified": true,
"getAlarmHistoryResponseStatus": {
"moreDataAvailable": false,
"moreDataRef": "",
"moreDataRef_Specified": false,
"dataContext": null
},
"getAlarmHistoryAlarmEvents": {
"alarmEvent": [
{
"iD": "21634",
"sourceID": "02/EBO1/Folder/Function Block Program/ALARM_1",
"sourceName": "ALARM_1",
"acknowledgeable": 0,
"timeStampOccurrence": {
"dateTime": "2020-03-04T10:41:31Z",
"dataContext": null
},
"timeStampTransition": {
"dateTime": "2020-03-04T10:41:31Z",
"dataContext": null
},
"priority": 1,
"state": 1,
"type_": "",
"message_": "Into alarm",
"dataContext": null
},
{
"iD": "21635",
"sourceID": "02/EBO1/Folder/Function Block Program/ALARM_2",
"sourceName": "ALARM_2",
"acknowledgeable": 0,
"timeStampOccurrence": {
"dateTime": "2020-03-04T10:41:31Z",
"dataContext": null
},
"timeStampTransition": {
"dateTime": "2020-03-04T10:41:31Z",
"dataContext": null
},
"priority": 1,
"state": 1,
"type_": "",
"message_": "Into alarm",
"dataContext": null
}
],
"alarmEvent_Specified": true,
"metadata": [],
"metadata_Specified": false,
"dataContext": null
},
"dataContext": null
}

 

 

Any suggestions?

 

regards

Henrik

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-03-05 10:00 AM

0 Likes
1
1190
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-05 10:00 AM

Hi Henrik,

 

Good to hear you are able to acknowledge now via the REST Provider now.

 

I can assure you that the SOAP REST provider is using pure EWS behind the scenes, and we are doing nothing fancy or different in terms of acknowledgement. 

 

GetAlarmHistory does not return acknowledgable alarms, it only returns historical alarms (ones that are not active). You would need to use GetAlarmEvents/GetUpdatedAlarmEvents to get alarm events that are acknowledgeable.

 

Best Regards,

 

-Jeff

Reply
henrik_alarmdir
Ensign henrik_alarmdir
Ensign

Posted: ‎2020-03-06 02:26 AM

0 Likes
0
1185
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-03-06 02:26 AM

Ahhh, I see, okay so to me that would mean crossing the creek to fetch water 🙂

 

So a combination of GetAlarmHistory and to acknowledge, also use GetAlarmEvents and GetUpdatedAlarmEvents to fetch the Id.

Thanks Jeff, that seems to work, a bit complex to implement such a "simple" feature though 😉

 

 

regards

Henrik

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of