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.
Already have an account? Login
It's your place to connect with experts and peers, get continuous support, and share knowledge.
Discussion of SmartConnector applications for integration of various other building management systems (BMS) into EcoStruxure Building Operation
You can subscribe to this forum after you log in or create your free account..
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.
Already have an account? Login
Hi,
Can a EWS server generate an alarm that will be displayed in the EBO's alarms pane?
If yes, how?
Thank you.
Mike
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
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
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.
Posted: 2021-02-09 09:06 AM . Last Modified: 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
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.
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
User | Count |
---|---|
164 | |
34 | |
33 | |
19 | |
14 | |
11 |
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.