Skip to content

Commit

Permalink
Update tuya.ts for _TZE284_qyflbnbj #26251
Browse files Browse the repository at this point in the history
Koenkk/zigbee2mqtt#26251

Tested there and found this works.
  • Loading branch information
danielcherubini authored Feb 8, 2025
1 parent 8ee2846 commit ab54d0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ const definitions: DefinitionWithExtend[] = [
'_TZE200_44af8vyi',
'_TZE200_zl1kmjqx',
'_TZE204_qyflbnbj',
'_TZE284_qyflbnbj',
]),
model: 'TS0601_temperature_humidity_sensor_1',
vendor: 'Tuya',
Expand All @@ -985,7 +986,7 @@ const definitions: DefinitionWithExtend[] = [
toZigbee: [],
exposes: (device, options) => {
const exps: Expose[] = [e.temperature(), e.humidity(), e.battery()];
if (!device || device.manufacturerName === '_TZE200_qyflbnbj' || device.manufacturerName === '_TZE204_qyflbnbj') {
if (!device || device.manufacturerName === '_TZE200_qyflbnbj' || device.manufacturerName === '_TZE204_qyflbnbj' || device.manufacturerName === '_TZE284_qyflbnbj') {
exps.push(e.battery_low());
exps.push(e.enum('battery_level', ea.STATE, ['low', 'middle', 'high']).withDescription('Battery level state'));
}
Expand Down

0 comments on commit ab54d0b

Please sign in to comment.