Skip to content

Commit

Permalink
fix: Fix ZWT198/ZWT100-BH preset modes (#8565)
Browse files Browse the repository at this point in the history
  • Loading branch information
B3WiN authored Jan 5, 2025
1 parent f626518 commit 33b785a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7091,10 +7091,10 @@ const definitions: DefinitionWithExtend[] = [
'preset',
tuya.valueConverterBasic.lookup((_, device) => {
// https://github.com/Koenkk/zigbee2mqtt/issues/21353#issuecomment-1938328429
if (device.manufacturerName === '_TZE200_viy9ihs7') {
return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};
} else {
if (device.manufacturerName === '_TZE204_lzriup1j') {
return {auto: tuya.enum(1), manual: tuya.enum(0), temporary_manual: tuya.enum(2)};
} else {
return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};
}
}),
],
Expand Down

0 comments on commit 33b785a

Please sign in to comment.