Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update devices/tuya.ts #8383

Merged
merged 16 commits into from
Dec 4, 2024
41 changes: 41 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2155,6 +2155,7 @@ const definitions: DefinitionWithExtend[] = [
[15, 'battery', tuya.valueConverter.raw],
],
},
whiteLabel: [tuya.whitelabel('GIEX', 'GX04', 'Soil Moisture Sensor', ['_TZE284_nhgdf6qr'])],
Copy link
Owner

Choose a reason for hiding this comment

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

Also update fingerprint: tuya.fingerprint('TS0601', ['_TZE284_aao3yzhs']),

},
{
fingerprint: tuya.fingerprint('TS0601', [
Expand Down Expand Up @@ -13148,6 +13149,46 @@ const definitions: DefinitionWithExtend[] = [
],
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE284_8zizsafo']),
model: 'GX03',
vendor: 'GIEX',
description: 'GIEX 2 Zone Watering timer',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
exposes: [
e.binary('valve1', ea.STATE_SET, 'ON', 'OFF').withDescription('Switch state'),
e
.numeric('countdown_V1', ea.STATE_SET)
.withValueMin(1)
.withValueMax(1440)
.withValueStep(1)
.withUnit('min')
.withDescription('Countdown timer for valve operation'),
e.binary('valve2', ea.STATE_SET, 'ON', 'OFF').withDescription('Switch state'),
e
.numeric('countdown_V2', ea.STATE_SET)
.withValueMin(1)
.withValueMax(1440)
.withValueStep(1)
.withUnit('min')
.withDescription('Countdown timer for valve operation'),
e.battery(),
],
meta: {
tuyaDatapoints: [
[1, 'valve1', tuya.valueConverter.onOff],
Giexperience marked this conversation as resolved.
Show resolved Hide resolved
[59, 'battery', tuya.valueConverter.raw],
[104, 'valve1', tuya.valueConverterBasic.lookup({OFF: tuya.enum(2), ON: tuya.enum(0)})],
[2, 'valve2', tuya.valueConverter.onOff],
Giexperience marked this conversation as resolved.
Show resolved Hide resolved
[105, 'valve1', tuya.valueConverterBasic.lookup({OFF: tuya.enum(2), ON: tuya.enum(0)})],
[13, 'countdown_V1', tuya.valueConverter.raw],
Giexperience marked this conversation as resolved.
Show resolved Hide resolved
[14, 'countdown_V2', tuya.valueConverter.raw],
[15, 'battery', tuya.valueConverter.raw],
],
},
},
];

export default definitions;
Expand Down