From 1e68e95268516b641fe4c2f4342d9e3cd32ec80c Mon Sep 17 00:00:00 2001 From: kiera-robinson Date: Tue, 10 Dec 2024 15:39:06 -0500 Subject: [PATCH] CHAD-14284: Test zigbee health monitoring opt out with zigbee-motion and zigbee-contact drivers --- drivers/SmartThings/zigbee-contact/src/init.lua | 1 + .../SmartThings/zigbee-contact/src/test/test_zigbee_contact.lua | 2 +- drivers/SmartThings/zigbee-motion-sensor/src/init.lua | 1 + .../zigbee-motion-sensor/src/test/test_smartthings_motion.lua | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/SmartThings/zigbee-contact/src/init.lua b/drivers/SmartThings/zigbee-contact/src/init.lua index 6dbd542f41..eb2c707d6f 100644 --- a/drivers/SmartThings/zigbee-contact/src/init.lua +++ b/drivers/SmartThings/zigbee-contact/src/init.lua @@ -106,6 +106,7 @@ local zigbee_contact_driver_template = { require("smartsense-multi"), require("sengled") }, + health_check = false, ias_zone_configuration_method = constants.IAS_ZONE_CONFIGURE_TYPE.AUTO_ENROLL_RESPONSE } diff --git a/drivers/SmartThings/zigbee-contact/src/test/test_zigbee_contact.lua b/drivers/SmartThings/zigbee-contact/src/test/test_zigbee_contact.lua index df1becb201..9930dcfb0f 100644 --- a/drivers/SmartThings/zigbee-contact/src/test/test_zigbee_contact.lua +++ b/drivers/SmartThings/zigbee-contact/src/test/test_zigbee_contact.lua @@ -31,7 +31,7 @@ local mock_device = test.mock_device.build_test_zigbee_device( zigbee_test_utils.prepare_zigbee_env_info() local function test_init() test.mock_device.add_test_device(mock_device) - zigbee_test_utils.init_noop_health_check_timer() + --zigbee_test_utils.init_noop_health_check_timer() removal due to change to stop health checks going forward end test.set_test_init_function(test_init) diff --git a/drivers/SmartThings/zigbee-motion-sensor/src/init.lua b/drivers/SmartThings/zigbee-motion-sensor/src/init.lua index 5cc838177c..6810c60d53 100644 --- a/drivers/SmartThings/zigbee-motion-sensor/src/init.lua +++ b/drivers/SmartThings/zigbee-motion-sensor/src/init.lua @@ -130,6 +130,7 @@ local zigbee_motion_driver = { additional_zcl_profiles = { [0xFC01] = true }, + health_check = false, ias_zone_configuration_method = constants.IAS_ZONE_CONFIGURE_TYPE.AUTO_ENROLL_RESPONSE } diff --git a/drivers/SmartThings/zigbee-motion-sensor/src/test/test_smartthings_motion.lua b/drivers/SmartThings/zigbee-motion-sensor/src/test/test_smartthings_motion.lua index 16d2c89a56..d88ec16dec 100644 --- a/drivers/SmartThings/zigbee-motion-sensor/src/test/test_smartthings_motion.lua +++ b/drivers/SmartThings/zigbee-motion-sensor/src/test/test_smartthings_motion.lua @@ -37,7 +37,7 @@ local mock_device = test.mock_device.build_test_zigbee_device( zigbee_test_utils.prepare_zigbee_env_info() local function test_init() test.mock_device.add_test_device(mock_device) - zigbee_test_utils.init_noop_health_check_timer() + --zigbee_test_utils.init_noop_health_check_timer() removal due to change to stop health checks going forward end test.set_test_init_function(test_init)