Haiku Determining alarm type

neillt

Active Member
I am trying to perform certain actions when a Fire Alarm is detected by the Omni.  Events for alarms are pretty clear, but it would seem it will trip for all alarms.
 
That means I need to filter actions in my script based on the type of alarm.  There are two properties I can poll for alarm type, (String)alarmsDescription and (Array)alarmsArray.  But there is no documentation on what will be returned based on the type of alarm.
 
What strings are passed for which alarms?  What's in the array?  The same strings but broken up?
 
 
We'll add them to the documentation in the next update. Here are the possible values:

Burglary, Fire, Gas, Auxiliary, Freeze, Water, Duress, Temperature

The array contains none or more of these. The description is just a string of these for reporting/display.
 
Back
Top