Skip to content

Commit

Permalink
fix: Fix Tuya TS0601_soil_3 battery % (#8449)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenKelevra authored Dec 7, 2024
1 parent 00ed002 commit 656623f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ const definitions: DefinitionWithExtend[] = [
[5, 'temperature', tuya.valueConverter.divideBy10],
[9, 'temperature_unit', tuya.valueConverter.temperatureUnit],
[14, 'battery_state', tuya.valueConverter.batteryState],
[15, 'battery', tuya.valueConverter.raw],
[15, 'battery', tuya.valueConverterBasic.scale(6, 60, 0, 100)], //device reports back false scaling
],
},
whiteLabel: [tuya.whitelabel('GIEX', 'GX04', 'Soil Moisture Sensor', ['_TZE284_nhgdf6qr'])],
Expand Down

0 comments on commit 656623f

Please sign in to comment.