Skip to content

Commit e7bd227

Browse files
authored
fix: Fix Lumi pet feeder LED indicator control (#8041)
* fix(lumi): pet feeder LED indicator control After updating to firmware version 9761, LED control doesn't work at all. Zigbee2mqtt reports "OFF" state, while indicator is turned on. Controlling the LED state either via zigbee2mqtt or via Home Assistant doesn't result in any change. I can only assume that previous firmware version (9505) got incorrect status mapping, while latest (9761) fixed this. * feat(lumi): pet feeder LED indicator mode description Based on settings from Aqara app. * fix(lumi): move some "pet feeder" props under "config" category
1 parent c251468 commit e7bd227

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

src/devices/lumi.ts

+19-3
Original file line numberDiff line numberDiff line change
@@ -3849,11 +3849,27 @@ const definitions: DefinitionWithExtend[] = [
38493849
.withFeature(e.numeric('size', exposes.access.STATE_SET)),
38503850
)
38513851
.withDescription('Feeding schedule'),
3852-
e.binary('led_indicator', ea.STATE_SET, 'ON', 'OFF').withDescription('Led indicator'),
3852+
e
3853+
.binary('led_indicator', ea.STATE_SET, 'ON', 'OFF')
3854+
.withLabel('Disable LED at night')
3855+
.withDescription('LED indicator will be disabled every day from 21:00 to 09:00')
3856+
.withCategory('config'),
38533857
e.child_lock(),
38543858
e.enum('mode', ea.STATE_SET, ['schedule', 'manual']).withDescription('Feeding mode'),
3855-
e.numeric('serving_size', ea.STATE_SET).withValueMin(1).withValueMax(10).withDescription('One serving size').withUnit('portion'),
3856-
e.numeric('portion_weight', ea.STATE_SET).withValueMin(1).withValueMax(20).withDescription('Portion weight').withUnit('g'),
3859+
e
3860+
.numeric('serving_size', ea.STATE_SET)
3861+
.withValueMin(1)
3862+
.withValueMax(10)
3863+
.withDescription('One serving size')
3864+
.withUnit('portion')
3865+
.withCategory('config'),
3866+
e
3867+
.numeric('portion_weight', ea.STATE_SET)
3868+
.withValueMin(1)
3869+
.withValueMax(20)
3870+
.withDescription('Portion weight')
3871+
.withUnit('g')
3872+
.withCategory('config'),
38573873
],
38583874
extend: [lumiZigbeeOTA()],
38593875
configure: async (device, coordinatorEndpoint) => {

src/lib/lumi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3760,7 +3760,7 @@ export const toZigbee = {
37603760
break;
37613761
}
37623762
case 'led_indicator':
3763-
await sendAttr(0x04170055, getFromLookup(value, {ON: 0, OFF: 1}), 1);
3763+
await sendAttr(0x04170055, getFromLookup(value, {ON: 1, OFF: 0}), 1);
37643764
break;
37653765
case 'child_lock':
37663766
await sendAttr(0x04160055, getFromLookup(value, {UNLOCK: 0, LOCK: 1}), 1);

0 commit comments

Comments
 (0)