Skip to content

Commit bca0567

Browse files
authored
[Aqara] Aqara Door and Window Sensor T1 - fix the multi-hub scenario issue (#2304)
* fix the multi-hub scenario issue * adjust testcase
1 parent 945bae1 commit bca0567

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/SmartThings/zigbee-contact/src/aqara/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ local function added_handler(driver, device)
6767
device:emit_event(capabilities.batteryLevel.type("CR1632"))
6868
device:emit_event(capabilities.batteryLevel.quantity(1))
6969
device:emit_event(capabilities.batteryLevel.battery("normal"))
70-
device:emit_event(capabilities.contactSensor.contact.open())
70+
device:emit_event(capabilities.contactSensor.contact.closed())
7171
end
7272

7373
local function contact_status_handler(self, device, value, zb_rx)

drivers/SmartThings/zigbee-contact/src/test/test_aqara_contact_sensor.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ test.register_coroutine_test(
8787
test.socket.capability:__expect_send(mock_device:generate_test_message("main",
8888
capabilities.batteryLevel.battery("normal")))
8989
test.socket.capability:__expect_send(mock_device:generate_test_message("main",
90-
capabilities.contactSensor.contact.open()))
90+
capabilities.contactSensor.contact.closed()))
9191
end
9292
)
9393

0 commit comments

Comments
 (0)