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.
2 parents e35926a + 8e86cf9 commit 57514c8Copy full SHA for 57514c8
drivers/SmartThings/zigbee-switch/src/aqara/init.lua
@@ -244,6 +244,9 @@ local function do_configure(self, device)
244
end
245
246
local function device_added(driver, device)
247
+ if (device:supports_capability_by_id(capabilities.button.ID)) then
248
+ device:emit_event(capabilities.button.supportedButtonValues({ "pushed" }, { visibility = { displayed = false } }))
249
+ end
250
if (device:supports_capability_by_id(capabilities.powerMeter.ID)) then
251
device:emit_event(capabilities.powerMeter.power({ value = 0.0, unit = "W" }))
252
device:emit_event(capabilities.energyMeter.energy({ value = 0.0, unit = "Wh" }))
0 commit comments