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

Added support for YINMIK YK-S03 Pool Monitoring #7613

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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],
Expand Down
Loading