We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c62fe3 commit 199f355Copy full SHA for 199f355
drivers/SmartThings/matter-switch/src/utils/switch_utils.lua
@@ -195,7 +195,10 @@ end
195
196
function utils.detect_matter_thing(device)
197
-- every profile except for matter-thing supports at least 2 capabilities (refresh, firmwareUpdate)
198
- return #device.profile.components.main.capabilities == 1
+ for i, _ in pairs(device.profile.components.main.capabilities) do
199
+ if i > 1 then return false end
200
+ end
201
+ return true
202
end
203
204
function utils.report_power_consumption_to_st_energy(device, latest_total_imported_energy_wh)
0 commit comments