Help
  • Explore Community Expore Community
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Explore Community Explore Community
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • EcoStruxure Asset Advisor
      • Gateways and Energy Servers
      • Metering & Power Quality
      • Protection & Control
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
    • EcoStruxure IT Help Center
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

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
JeffBowman Schneider Alumni (Retired)
164
sesa180908_brid
Commander sesa180908_brid Commander
34
ardak
ardak Schneider Alumni (Retired)
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
482
  • 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
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

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

0 Likes
3
471
  • 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
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

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

0 Likes
1
458
  • 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
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

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

0 Likes
3
472
  • 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
465
  • 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
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

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

0 Likes
1
459
  • 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
454
  • 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

Additional options
You do not have permission to remove this product association.
 
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 forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - 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 © 2023 Schneider Electric, Inc