Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Search in
Link copied. Please paste this link to share this article on your social media post.
Hi,
We are trying to get the alarm's description using the GetItemsItems API. However, the description is returned empty. See the code below.
Any idea what is the problem?
foreach (var alarmEvent in result.DataRead)
{
var alarmItem = alarmItems.GetItemsItems.AlarmItems.FirstOrDefault(a => a.Id == alarmEvent.SourceId);
var value = values.GetItemsItems.ValueItems.FirstOrDefault(a => a.Id == alarmItem?.ValueItemId)?.Value;
var Description = values.GetItemsItems.ValueItems.FirstOrDefault(a => a.Id == alarmItem?.Description)?.Value;
Logger.LogTrace(LogCategory.Processor, this.Name, alarmEvent.ToJSON());
Logger.LogTrace(LogCategory.Processor, this.Name, Description);
if (!apiClient.SendAlarmEvent(alarmEvent, value, Description).Result)
{
_prompts.Add(new Prompt { Message = $"Failed to send alarm event with ID {alarmEvent.SourceId} and state {alarmEvent.State} to UCME", Severity = PromptSeverity.MayContinue });
}
}
Thank you.
Mike
Link copied. Please paste this link to share this article on your social media post.
var Description = values.GetItemsItems.ValueItems.FirstOrDefault(a => a.Id == alarmItem?.Description)?.Value;
should probably be
var Description = values.GetItemsItems.AlarmItems.FirstOrDefault(a => a.Id == alarmItem?.Id)?.Description;
You’ve reached the end of your document
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.