Skip to content

Commit

Permalink
fix: Update TuYa TS0210 sensivity description Koenkk/zigbee2mqtt#18929
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jan 21, 2024
1 parent f9a17e4 commit 16fddf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4476,7 +4476,9 @@ const definitions: Definition[] = [
],
fromZigbee: [fz.battery, fz.ias_vibration_alarm_1_with_timeout],
toZigbee: [tz.TS0210_sensitivity],
exposes: [e.battery(), e.battery_voltage(), e.vibration(), e.numeric('sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(50)],
exposes: [e.battery(), e.battery_voltage(), e.vibration(),
e.numeric('sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(50)
.withDescription('Sensitivty of the sensor, press button on the device right before changing this')],
},
{
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_8bxrzyxz'},
Expand Down

2 comments on commit 16fddf9

@Bascht74
Copy link

@Bascht74 Bascht74 commented on 16fddf9 May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Koenkk Could you change the description to:

'Sensitivty of the sensor (0 = highest sensitivity, 50 = lowest sensitivity). Press button on the device right before changing this.'

I tried a lot of times until I found out the 50 is not the highest sensitivity, but the lowest sensitivity...
I don't know I you can "reverse" the direction of the value, so 0 is lowest and 50 is highest, but at least the description should help the users.

@Koenkk
Copy link
Owner Author

@Koenkk Koenkk commented on 16fddf9 May 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Please sign in to comment.