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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Can a EWS server generate an alarm that will be displayed in the EBO's alarms pane?

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
  • Can a EWS server generate an alarm that will be displayed in the EBO's alarms pane?
Options
  • 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
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2020-10-31 01:53 AM

0 Likes
7
2601
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-10-31 01:53 AM

Can a EWS server generate an alarm that will be displayed in the EBO's alarms pane?

Hi,

 

Can a EWS server generate an alarm that will be displayed in the EBO's alarms pane?

If yes, how?

 

Thank you.

 

Mike

Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-11-02 11:09 AM

1 Like
4
2596
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-11-02 11:09 AM

Hi Michael,

 

Yes, this is exactly what the AlarmItem/AlarmEvents part of the EWS Server are used for.

 

If you are using SmartConnector.Utilities EwsItemManager to manage your objects you can use the CreateAlarmEvent method to create an alarm event for a given AlarmItem that was created during your Setup processor.

 

Once you do this, the alarms should show up in EBO if you have the EWS Interface created and configured correctly.

 

Best Regards,

 

-Jeff

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
Replies 7
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-11-02 11:09 AM

1 Like
4
2597
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-11-02 11:09 AM

Hi Michael,

 

Yes, this is exactly what the AlarmItem/AlarmEvents part of the EWS Server are used for.

 

If you are using SmartConnector.Utilities EwsItemManager to manage your objects you can use the CreateAlarmEvent method to create an alarm event for a given AlarmItem that was created during your Setup processor.

 

Once you do this, the alarms should show up in EBO if you have the EWS Interface created and configured correctly.

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
SteveGregory
Commander SteveGregory Commander
Commander

Posted: ‎2021-02-09 02:48 AM

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

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

‎2021-02-09 02:48 AM

Hi Jeff, do you have an example of how to do that? Just want to make sure I'm doing it correctly. I can create the alarm object in the set up processor using EnsureAlarmItem method and i can update the state of the alarm and the alarm object changes state in EBO, but it doesn't come up in the alarm viewer, or rather it did until i acknowledged it, now it doesn't come back, even when i change the state of the alarm object.

Tags (1)
  • Tags:
  • english
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-02-09 09:06 AM . Last Modified: ‎2021-02-09 09:06 AM

1 Like
2
2574
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2021-02-09 09:06 AM

Hi Steve,

 

If you are using the EwsItemManager then all you should need to do is EwsItemManager.CreateAlarmEvent(alarmItem, state, message, priority, type).

 

If you are using the DataAdapter directly, then you can do:

 

DataAdapter.ActivateAlarmItem,ResetAlarmItem,AcknowledgeAlarmItem,DisableAlarmItem(AlarmItem, Message, type, Priority)

'

If the Alarm Event isn't showing up in EBO, I may try to check what either what is going on Wireshark, or test it yourself with SoapUI, to make sure you are seeing the expected alarm events.

 

Best Regards,

 

-Jeff

 

 

Tags (1)
  • Tags:
  • english
Reply
SteveGregory
Commander SteveGregory Commander
Commander

Posted: ‎2021-02-09 01:14 PM . Last Modified: ‎2021-02-10 01:11 AM

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

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

‎2021-02-09 01:14 PM

Hi Jeff, working now, used the following:

 

var myAlarm = DataAdapter.AlarmItems.FirstOrDefault(x => x.AlternateId == "myFolder.myAlarm");

var ewsItemManager = new EwsItemManager();

ewsItemManager.DataAdapter = DataAdapter;

ewsItemManager.CreateAlarmEvent(myAlarm, EwsAlarmStateEnum.Active, "Test Alarm Active", 1);

 

 

Thanks.

Tags (1)
  • Tags:
  • english
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-02-10 08:55 AM

1 Like
0
2555
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2021-02-10 08:55 AM

Great! Let me know if you run into any more issues.

 

If I am be picky you can change:

 

var ewsItemManager = new EwsItemManager();

ewsItemManager.DataAdapter = DataAdapter;

 

to

 

var ewsItemManager = new EwsItemManager {DataAdapter = DataAdapter}

 

Same function, more precise syntax.

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
HamdiF
HamdiF
Cadet

Posted: ‎2023-11-20 01:41 AM

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

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

‎2023-11-20 01:41 AM

I am getting the error "Cross EwsServer access is not allowed by the adapter.
at Mongoose.Ews.Server.Data.EwsServerDataAdapter.AssertNoCrossServerAccess(IEwsServerItem item)" 

 

My Code: 

EwsAlarmEventType type = new EwsAlarmEventType();
type.Name = "Test Alarm";
type.Description = "This is a test Set state";

var alarmItem = DataAdapter.AlarmItems.FirstOrDefault(x => x.AlternateId == "Alarm: One");
DataAdapter.ActivateAlarmItem(alarmItem, "Alarm Activated", type, 90);

 

Any ideas why?

Reply
Erwin-vd-Zwart
Sisko Erwin-vd-Zwart Sisko
Sisko

Posted: ‎2023-11-20 11:49 PM

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

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

‎2023-11-20 11:49 PM

I think you have another EWS with the same name and x.AlternateId == "Alarm: One"); is fetching the first found EWS ID that is in your other server.

 

Try changing your your condition in your selection to fetch it from the server with the same ServerId where your DataAdapter is connected to:

 

var CurrentServerID = Int32.Parse(DataAdapter.ServerId);
var alarmItem = DataAdapter.AlarmItems.FirstOrDefault(x => x.AlternateId == "Alarm: One" && x.EwsServerId == CurrentServerID);

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