Skip to content

Commit 27d4fb0

Browse files
committed
feat(rhombus/security_interop): includes alarm_zones in door list
1 parent 8724323 commit 27d4fb0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/rhombus/security_interop.cr

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ class Rhombus::SecurityInterop < PlaceOS::Driver
5050
security.door_list.get.each do |doors|
5151
all_doors.concat doors.as_a
5252
end
53+
54+
# only available on gallagher
55+
# any errors will ignored and not included in the results
56+
security.alarm_zones.get(raise_on_error: false).each do |zones|
57+
all_doors.concat zones.as_a
58+
end
59+
5360
{HTTP::Status::OK.to_i, {"Content-Type" => "application/json"}, {
5461
doors: all_doors,
5562
}.to_json}

0 commit comments

Comments
 (0)