diff --git a/src/devices/tuya.ts b/src/devices/tuya.ts index 88d3a7735ccf8..c9fbc294b01b4 100644 --- a/src/devices/tuya.ts +++ b/src/devices/tuya.ts @@ -8374,14 +8374,18 @@ const definitions: Definition[] = [ }, }, { - fingerprint: tuya.fingerprint('TS0601', ['_TZE200_v1jqz5cy']), + fingerprint: tuya.fingerprint('TS0601', ['_TZE200_v1jqz5cy', '_TZE200_d9mzkhoq']), model: 'BLE-YL01', vendor: 'Tuya', description: 'Smart WiFi Zigbee chlorine meter', + whiteLabel: [ + tuya.whitelabel('Tuya', 'BLE-YL01', 'Smart WiFi Zigbee chlorine meter', ['_TZE200_v1jqz5cy']), + tuya.whitelabel('Tuya', 'YK-S03', 'Smart pH and Chlorine Tester for Swimming Pool', ['_TZE200_d9mzkhoq']), + ], fromZigbee: [tuya.fz.datapoints], toZigbee: [tuya.tz.datapoints], - // Query every 10 minutes, otherwise values don't update https://github.com/Koenkk/zigbee2mqtt/issues/18704 - onEvent: tuya.onEvent({queryOnDeviceAnnounce: true, queryIntervalSeconds: 10 * 60}), + // Don't query too often. Values are not always updated. https://github.com/Koenkk/zigbee2mqtt/issues/18704 + onEvent: tuya.onEvent({queryOnDeviceAnnounce: true, queryIntervalSeconds: 5 * 60}), configure: tuya.configureMagicPacket, exposes: [ e.numeric('tds', ea.STATE).withUnit('ppm').withDescription('Total Dissolved Solids'), @@ -8421,7 +8425,7 @@ const definitions: Definition[] = [ [10, 'ph', tuya.valueConverter.divideBy100], [11, 'ec', tuya.valueConverter.raw], [101, 'orp', tuya.valueConverter.raw], - [102, 'free_chlorine', tuya.valueConverter.raw], + [102, 'free_chlorine', tuya.valueConverter.divideBy10], // [105, 'backlightvalue', tuya.valueConverter.raw], [106, 'ph_max', tuya.valueConverter.divideBy10], [107, 'ph_min', tuya.valueConverter.divideBy10],