Skip to content

Commit

Permalink
feat(add): YK-S03 (#7613)
Browse files Browse the repository at this point in the history
* Added support for YINMIK YK-S03 Pool Monitoring

* Removed new definition, and added fingerprint to old.
Fixed the value of free_chlorine to correct format.
  • Loading branch information
lauer authored Jun 13, 2024
1 parent ac8d6e8 commit 4812c1b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8396,14 +8396,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'),
Expand Down

0 comments on commit 4812c1b

Please sign in to comment.