Skip to content

Commit c8b28a1

Browse files
authored
fix: Fix Avatto ZWT198 _TZE204_xnbkhhdr, fix reversed 6-1 and 5-2 in 'working_day' datapoint (#8066)
Problem: the 6-1 and 5-2 option is reserved with _TZE204_xnbkhhdr. Fix the reserved working_day options for Avatto (Tuya) ZWT198 _TZE204_xnbkhhdr. It use the same method as _TZE204_lzriup1j.
1 parent 92eaea4 commit c8b28a1

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
@@ -6553,10 +6553,10 @@ const definitions: DefinitionWithExtend[] = [
65536553
'working_day',
65546554
tuya.valueConverterBasic.lookup((_, device) => {
65556555
// https://github.com/Koenkk/zigbee2mqtt/issues/23979
6556-
if (device.manufacturerName === '_TZE204_lzriup1j') {
6557-
return {disabled: tuya.enum(0), '6-1': tuya.enum(2), '5-2': tuya.enum(1), '7': tuya.enum(3)};
6558-
} else {
6556+
if (device.manufacturerName === '_TZE200_viy9ihs7') {
65596557
return {disabled: tuya.enum(0), '6-1': tuya.enum(1), '5-2': tuya.enum(2), '7': tuya.enum(3)};
6558+
} else {
6559+
return {disabled: tuya.enum(0), '6-1': tuya.enum(2), '5-2': tuya.enum(1), '7': tuya.enum(3)};
65606560
}
65616561
}),
65626562
],

0 commit comments

Comments
 (0)