Skip to content

Commit 33b785a

Browse files
authored
fix: Fix ZWT198/ZWT100-BH preset modes (#8565)
1 parent f626518 commit 33b785a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/devices/tuya.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7091,10 +7091,10 @@ const definitions: DefinitionWithExtend[] = [
70917091
'preset',
70927092
tuya.valueConverterBasic.lookup((_, device) => {
70937093
// https://github.com/Koenkk/zigbee2mqtt/issues/21353#issuecomment-1938328429
7094-
if (device.manufacturerName === '_TZE200_viy9ihs7') {
7095-
return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};
7096-
} else {
7094+
if (device.manufacturerName === '_TZE204_lzriup1j') {
70977095
return {auto: tuya.enum(1), manual: tuya.enum(0), temporary_manual: tuya.enum(2)};
7096+
} else {
7097+
return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};
70987098
}
70997099
}),
71007100
],

0 commit comments

Comments
 (0)