Skip to content

Commit aa8c35d

Browse files
committed
zigbee-switch: Filter incorrect network type
A small number of zwave devices failed to migrate correctly and ended up as zwave devices attached to the zigbee switch driver. This change adds a patched driver.lua which includes a mechanism to filter devices when building device info which don't match device type filters added to the driver. https://smartthings.atlassian.net/browse/CHAD-16558
1 parent 32685fb commit aa8c35d

File tree

3 files changed

+1282
-0
lines changed

3 files changed

+1282
-0
lines changed

drivers/SmartThings/zigbee-switch/src/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ local zigbee_switch_driver_template = {
186186
doConfigure = do_configure
187187
},
188188
health_check = false,
189+
device_network_type_filter = {[device_lib.NETWORK_TYPE_ZIGBEE] = true}
189190
}
190191
defaults.register_for_default_handlers(zigbee_switch_driver_template,
191192
zigbee_switch_driver_template.supported_capabilities,

0 commit comments

Comments
 (0)