Skip to content

Commit

Permalink
Fix unknown power source of Xiaomi DLKZMK11LM. Koenkk/zigbee2mqtt#15568
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 15, 2022
1 parent d5ac3e0 commit 2f98eac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devices/xiaomi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,8 @@ module.exports = [
e.voltage().withAccess(ea.STATE), e.power_outage_memory(), e.led_disabled_night(), e.switch_type()],
configure: async (device, coordinatorEndpoint, logger) => {
await device.getEndpoint(1).write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
device.powerSource = 'Mains (single phase)';
device.save();
},
ota: ota.zigbeeOTA,
},
Expand Down

0 comments on commit 2f98eac

Please sign in to comment.