Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Feb 3, 2024
1 parent 5059488 commit b170998
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2316,6 +2316,34 @@ const definitions: Definition[] = [
await reporting.batteryPercentageRemaining(endpoint);
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_dzuqwsyg']),
model: 'BAC-003',
vendor: 'TuYa',
description: 'Central air conditioner thermostat temperature controller',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
configure: tuya.configureMagicPacket,
exposes: [
e.binary('state', ea.STATE_SET, 'ON', 'OFF').withDescription('Turn the thermostat ON/OFF'),
e.climate()
.withSetpoint('current_heating_setpoint', 16, 30, 1, ea.STATE_SET)
.withLocalTemperature(ea.STATE)
.withSystemMode(['off', 'cool', 'heat', 'fan_only'], ea.STATE_SET)
.withFanMode(['low', 'medium', 'high', 'auto'], ea.STATE_SET),
],
meta: {
tuyaDatapoints: [
[1, 'state', tuya.valueConverter.onOff],
[2, 'system_mode', tuya.valueConverterBasic.lookup({'cool': tuya.enum(0), 'heat': tuya.enum(1), 'fan_only': tuya.enum(2)})],
[16, 'current_heating_setpoint', tuya.valueConverterBasic.divideBy(1)],
[24, 'local_temperature', tuya.valueConverter.divideBy10],
[28, 'fan_mode', tuya.valueConverterBasic.lookup(
{'low': tuya.enum(0), 'medium': tuya.enum(1), 'high': tuya.enum(2), 'auto': tuya.enum(3)})],
],
},
},
{
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_qq9mpfhw'}],
model: 'TS0601_water_sensor',
Expand Down

0 comments on commit b170998

Please sign in to comment.