Skip to content

Commit dd34eb0

Browse files
Rhaiderrclaude
andauthored
fix: Moes ZC-LS02: fix motor_direction (#12622)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 89d5cf3 commit dd34eb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/devices/moes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ export const definitions: DefinitionWithExtend[] = [
480480
],
481481
[2, "position", tuya.valueConverter.coverPositionInverted],
482482
[3, "position", tuya.valueConverter.coverPositionInverted],
483-
[5, "motor_direction", tuya.valueConverterBasic.lookup({normal: tuya.enum(0), reversed: tuya.enum(1)})],
483+
[5, "motor_direction", tuya.valueConverterBasic.lookup({normal: false, reversed: true})],
484484
[13, "battery", tuya.valueConverter.raw],
485485
],
486486
},

0 commit comments

Comments
 (0)