Skip to content

Commit

Permalink
fix: Fix typo in ZG-204ZM (dadar -> radar) #7590
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 5, 2024
1 parent d96e000 commit cf870f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6396,7 +6396,7 @@ const definitions: Definition[] = [
e.numeric('static_detection_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withUnit('x')
.withDescription('Static detection sensitivity'),
e.binary('indicator', ea.STATE_SET, 'ON', 'OFF').withDescription('LED indicator mode'),
e.enum('motion_detection_mode', ea.STATE_SET, ['only_pir', 'pir_and_dadar', 'only_dadar'])
e.enum('motion_detection_mode', ea.STATE_SET, ['only_pir', 'pir_and_radar', 'only_radar'])
.withDescription('Motion detection mode (Firmware version>=0122052017)'),
e.numeric('motion_detection_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withUnit('x')
.withDescription('Motion detection sensitivity (Firmware version>=0122052017)'),
Expand All @@ -6414,7 +6414,7 @@ const definitions: Definition[] = [
[107, 'indicator', tuya.valueConverter.onOff],
[121, 'battery', tuya.valueConverter.raw],
[122, 'motion_detection_mode', tuya.valueConverterBasic.lookup({
'only_pir': tuya.enum(0), 'pir_and_dadar': tuya.enum(1), 'only_dadar': tuya.enum(2),
'only_pir': tuya.enum(0), 'pir_and_radar': tuya.enum(1), 'only_radar': tuya.enum(2),
})],
[123, 'motion_detection_sensitivity', tuya.valueConverter.raw],

Expand Down

0 comments on commit cf870f6

Please sign in to comment.