Skip to content

Commit e083ce1

Browse files
committed
update configuration conditional
1 parent 7ee3c0b commit e083ce1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function SwitchDeviceConfiguration.assign_profile_for_onoff_ep(device, server_on
9191
generic_profile = string.gsub(generic_profile, "-binary", "") .. static_electrical_tags
9292
end
9393

94-
if switch_utils.get_product_override_field(device, "on_children_only") == is_child_device and
94+
if not switch_utils.get_product_override_field(device, "on_children_only") or is_child_device and
9595
generic_profile == switch_utils.get_product_override_field(device, "initial_profile") then
9696
generic_profile = switch_utils.get_product_override_field(device, "target_profile") or generic_profile
9797
end

drivers/SmartThings/matter-switch/src/switch_utils/fields.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ SwitchFields.vendor_overrides = {
9797
},
9898
[0x1407] = { -- THIRD_REALITY_ID
9999
[0x1388] = { is_3r_mk1 = true },
100-
[0x1098] = { on_children_only = false, target_profile = "garage-door-binary", initial_profile = "light-binary" },
100+
[0x1098] = { target_profile = "garage-door-binary", initial_profile = "light-binary" },
101101
},
102102
[0x115F] = { -- AQARA_MANUFACTURER_ID
103103
[0x1006] = { ignore_combo_switch_button = true }, -- 3 Buttons(Generic Switch), 1 Channel (Dimmable Light)

0 commit comments

Comments
 (0)