Skip to content

Commit

Permalink
fix: Fix battery not exposed for Aqara MCCGQ12LM Koenkk/zigbee2mqtt…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Feb 1, 2024
1 parent 993b361 commit e122451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/lumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3045,7 +3045,8 @@ const definitions: Definition[] = [
description: 'Door and window sensor T1',
fromZigbee: [fz.lumi_contact, lumi.fromZigbee.lumi_specific, fz.ias_contact_alarm_1],
toZigbee: [],
exposes: [e.contact(), e.battery()],
exposes: [e.contact(), e.battery(), e.battery_voltage()],
meta: {battery: {voltageToPercentage: '3V_2850_3000'}},
extend: [lumiZigbeeOTA()],
},
{
Expand All @@ -3072,7 +3073,6 @@ const definitions: Definition[] = [
exposes: [e.battery(), e.battery_voltage(),
e.action(['single', 'double', 'hold', 'release', 'start_rotating', 'rotation', 'stop_rotating']),
e.enum('operation_mode', ea.ALL, ['event', 'command']).withDescription('Button mode'),
e.enum('action_rotation_button_state', ea.STATE, ['released', 'pressed']).withDescription('Button state during rotation'),
e.numeric('action_rotation_angle', ea.STATE).withUnit('*').withDescription('Rotation angle'),
e.numeric('action_rotation_angle_speed', ea.STATE).withUnit('*').withDescription('Rotation angle speed'),
e.numeric('action_rotation_percent', ea.STATE).withUnit('%').withDescription('Rotation percent'),
Expand Down

0 comments on commit e122451

Please sign in to comment.