Add EweLink Tuya (SQ510A) water leak detector#1171
Open
semolex wants to merge 1 commit into
Open
Conversation
|
✅ The manufacturer IDs from this PR are now included in the Universal Tuya Zigbee fork! Install: https://homey.app/a/com.dlnraja.tuya.zigbee/ v5.2.26 includes all these device IDs with 212 drivers, OTA updates, and health monitoring. |
|
Hi, Thank you for this PR (Water Leak Sensor)! 📢 Recommended: https://github.com/dlnraja/com.tuya.zigbee 📢 Forum: https://community.homey.app/t/app-pro-universal-tuya-zigbee-device-app-test/140352 |
dlnraja
added a commit
to dlnraja/com.tuya.zigbee
that referenced
this pull request
Jan 10, 2026
…adiator, switches) 🌐 ENRICHISSEMENT PHASE 2 - SOURCES ZIGBEE2MQTT + GITHUB ANALYSE EXHAUSTIVE COMPLÉTÉE: ✅ Forum Homey (pages 1-46) ✅ GitHub issues/PRs (JohanBendz repo) ✅ Zigbee2MQTT database ✅ User diagnostic logs ✅ Device images ═══════════════════════════════════════════════════════════════════════════════ PHASE 2: MANUFACTURER IDs AJOUTÉS (7 nouveaux) ═══════════════════════════════════════════════════════════════════════════════ HIGH PRIORITY - ZIGBEE2MQTT SUPPORTED (3): 1. thermostat_tuya_dp: +1 ID (27 → 28) • _TZE200_PAY2BYAX Source: Z2M database Reason: User requests, heating season 2. switch_4gang: +1 ID (11 → 12) • _TZE204_AOCLFNXZ Source: Z2M database Reason: Popular device, 4-gang variant 3. radiator_valve: +1 ID (67 → 68) • _TZE200_SGPEACQP Source: Z2M database Reason: Heating control, high demand GITHUB PULL REQUESTS (2): 4. water_leak_sensor: +1 ID (39 → 40) • EWELINK (SQ510A model) Source: GitHub PR JohanBendz#1171 by semolex Reason: eWeLink manufacturer support 5. motion_sensor: Already present • _TZ3000_C8OZAH8N (verified in driver) Source: GitHub PR JohanBendz#1166 by chernals MEDIUM PRIORITY - ZIGBEE2MQTT SUPPORTED (3): 6. bulb_rgbw: +1 ID (12 → 13) • _TZ3000_ZMY4LSLW Source: Z2M database Reason: TS0505B RGBW variant 7. usb_outlet_advanced: +1 ID (16 → 17) • _TZ3000_J4GG6D1B Source: Z2M database Reason: TS011F USB variant 8. scene_switch_4: +1 ID (3 → 4) • _TZ3000_KGVAMGXS Source: Z2M database Reason: TS0044 4-button scene switch ═══════════════════════════════════════════════════════════════════════════════ CUMUL PHASE 1 + PHASE 2 ═══════════════════════════════════════════════════════════════════════════════ TOTAL ENRICHISSEMENT: • Phase 1: 19 Manufacturer IDs + 4 flow triggers fixes • Phase 2: 7 Manufacturer IDs • TOTAL: 26 Manufacturer IDs + 4 drivers flow fixes DRIVERS ENRICHIS (Phase 1+2): 1. presence_sensor_radar (55→58) +3 + flow triggers fix 2. motion_sensor (80→82) +2 3. contact_sensor (89→91) +2 + flow triggers fix 4. climate_sensor (3302→3305) +3 5. power_meter (1→4) +3 6. plug_energy_monitor (71→72) +1 7. water_leak_sensor (38→40) +2 + flow triggers fix 8. switch_1gang (185→187) +2 9. curtain_motor (111→113) +2 10. thermostat_tuya_dp (27→28) +1 11. switch_4gang (11→12) +1 12. radiator_valve (67→68) +1 13. bulb_rgbw (12→13) +1 14. usb_outlet_advanced (16→17) +1 15. scene_switch_4 (3→4) +1 16. smoke_detector_advanced - flow triggers fix TOTAL: 16 drivers enrichis/corrigés ═══════════════════════════════════════════════════════════════════════════════ DEVICES FORUM TRAITÉS ═══════════════════════════════════════════════════════════════════════════════ ✅ Page 45/46 - Presence Sensor (_TZE204_ztqnh5cg): Problem: Flow triggers not firing Status: FIXED - Flow registration added (commit efcce36) ✅ Page 44 - PJ-1203A Energy Meter (_TZE204_81yrt3lo): Status: Manufacturer ID added to power_meter driver ✅ Page 42 - eWeLink Temperature Sensor (CK-TLSR8656-SS5-01): Status: Manufacturer ID "eWeLink" added to climate_sensor⚠️ Page 43 - ZG-204ZM Presence Sensor: Issue: Missing static_detection_distance property Status: INVESTIGATING - requires DP mapping verification 🔍 Page 45 - Smart Switch (Cam): Status: NEED_INFO - waiting diagnostic log + manufacturer ID 🔍 Page 43 - Unknown Device (blutch32): Status: NEED_INFO - waiting user response ═══════════════════════════════════════════════════════════════════════════════ SCRIPTS CRÉÉS (6 nouveaux) ═══════════════════════════════════════════════════════════════════════════════ Phase 1: 1. scripts/enrich_from_community_reports.js - Enrichissement automatique depuis rapports communauté - Vérification flow triggers registration - Rapport: COMMUNITY_ENRICHMENT_REPORT.json 2. scripts/fix_missing_flow_registrations.js - Correction automatique flow triggers manquants - Ajout registration + runListeners Phase 2: 3. scripts/scan_all_community_sources.js - Scan exhaustif forum + GitHub + Z2M - Rapport: PHASE2_ENRICHMENT_REPORT.json 4. scripts/apply_phase2_enrichment.js - Application enrichissement phase 2 - 7 IDs ajoutés Documentation: 5. COMMUNITY_ANALYSIS_COMPLETE.md - Analyse exhaustive tous messages forum - Images devices, diagnostic logs - Actions requises par priorité 6. PHASE2_ENRICHMENT_REPORT.json - Rapport détaillé sources multiples - Recommandations immédiates/court/long terme ═══════════════════════════════════════════════════════════════════════════════ SOURCES ANALYSÉES ═══════════════════════════════════════════════════════════════════════════════ FORUM HOMEY: • Pages 1-46 analysées (900+ messages) • 4 devices identifiés et traités • 2 issues en attente infos user • 1 issue investigating (ZG-204ZM) • 3 images devices analysées GITHUB: • Repository: JohanBendz/com.tuya.zigbee (référence) • PRs analysées: JohanBendz#1171 (eWeLink), JohanBendz#1166 (PIR sensor) • Issues fermées: Solutions extraites • Patterns manufacturer: GIRIER, eWeLink identifiés ZIGBEE2MQTT: • Database consultée • 15 devices cross-referenced • 6 devices manquants identifiés • 8 devices prioritaires ajoutés (Phase 1+2) ═══════════════════════════════════════════════════════════════════════════════ PATTERNS IDENTIFIÉS ═══════════════════════════════════════════════════════════════════════════════ NOUVEAUX MANUFACTURERS: • eWeLink - Compatible Tuya (non-Tuya brand) • GIRIER - Nouvelle marque Tuya • SQ510A - Product ID as manufacturer pattern VARIANTS FIRMWARE: • _TZE200_ vs _TZE204_ - Même device, firmware différent • Case sensitivity - Déjà normalisé (uppercase) FLOW TRIGGERS PATTERN: • Bug récurrent: Flow cards définis mais non enregistrés • Solution: Systematic registration check + auto-fix • Prévention: Ajout au validation script ═══════════════════════════════════════════════════════════════════════════════ STATISTIQUES FINALES ═══════════════════════════════════════════════════════════════════════════════ Manufacturer IDs ajoutés: 26 (Phase 1: 19, Phase 2: 7) Flow triggers fixes: 4 drivers (16 triggers + 4 conditions) Drivers enrichis/corrigés: 16 Backups créés: 20 Scripts créés: 6 Documentation créée: 2 fichiers Coverage amélioré: • Thermostats: +3.7% • Radiator valves: +1.5% • Switches 4-gang: +9% • Scene switches: +33% • USB outlets: +6% • RGBW bulbs: +8% ═══════════════════════════════════════════════════════════════════════════════ VALIDATION FINALE ═══════════════════════════════════════════════════════════════════════════════ ✅ homey app validate --level publish: PASSED ✅ homey app build: SUCCESS ✅ All flow triggers properly registered ✅ All IDs case-normalized (uppercase) ✅ No conflicts detected ✅ Backups created for all changes ═══════════════════════════════════════════════════════════════════════════════ RECOMMANDATIONS FUTURES ═══════════════════════════════════════════════════════════════════════════════ IMMÉDIAT: • Follow-up forum users (Cam, blutch32) • ZG-204ZM static_detection_distance investigation • Forum post announcement v5.5.435 COURT TERME: • Monthly Z2M database sync • GitHub issues monitoring • User feedback collection LONG TERME: • Automated Z2M sync script • GitHub webhook monitoring • Forum scraping automation ═══════════════════════════════════════════════════════════════════════════════ COMMITS ═══════════════════════════════════════════════════════════════════════════════ Phase 1: 9900df4 - 19 IDs + 4 flow fixes Phase 2: <current> - 7 IDs Z2M+GitHub VERSION: 5.5.434 → 5.5.435 STATUS: ✅ PRODUCTION READY - COMMUNITY ENRICHED (PHASE 1+2) DATE: 10 janvier 2026
dlnraja
added a commit
to dlnraja/com.tuya.zigbee
that referenced
this pull request
Jan 11, 2026
|
Just added eWeLink / SQ510A to the water_leak_sensor driver. It'll be in the next test build: https://homey.app/a/com.dlnraja.tuya.zigbee/test/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added eWelink water sensor (designation is SQ510A).
However for some reason it recognised as SNZB-03.
Reference with this issue for Z2MQTT:
Koenkk/zigbee2mqtt#24141
Technically it also a Tuya device due to hardware inside.