Skip to content

Commit

Permalink
fix: Fix Lumi ZNJLBL01LM position incorrect when device restarts Koen…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 11, 2024
1 parent 23aeb42 commit 371b6ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/lumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4566,7 +4566,10 @@ export const toZigbee = {
}
},
convertGet: async (entity, key, meta) => {
if (!Array.isArray(meta.mapped) && ['ZNCLBL01LM'].includes(meta.mapped.model)) {
if (!Array.isArray(meta.mapped) && 'ZNJLBL01LM' == meta.mapped.model) {
// https://github.com/Koenkk/zigbee2mqtt/issues/23056
logger.debug(`Not reading position of ZNJLBL01LM since device doesn't support it`, NS);
} else if (!Array.isArray(meta.mapped) && ['ZNCLBL01LM'].includes(meta.mapped.model)) {
await entity.read('closuresWindowCovering', ['currentPositionLiftPercentage']);
} else {
await entity.read('genAnalogOutput', [0x0055]);
Expand Down

0 comments on commit 371b6ac

Please sign in to comment.