Add support for Tuya PIR sensor TS0202 / "_TZ3000_c8ozah8n"#1166
Add support for Tuya PIR sensor TS0202 / "_TZ3000_c8ozah8n"#1166chernals wants to merge 1 commit intoJohanBendz:SDK3from
Conversation
Add the manufacturerName "_TZ3000_c8ozah8n" for the "pir_sensor_2" driver.
Integrated manufacturer IDs from 22+ open PRs: PR JohanBendz#1292: _TZE200_y8jijhba, _TZE200_kb5noeto (Radar sensors) PR JohanBendz#1253: _TZE200_pay2byax, _TZ3000_mrpevh8p (Door sensor + Button) PR JohanBendz#1128: _TZ3000_an5rjiwd (Smart button) PR JohanBendz#1118: _TZ3000_ww6drja5 (Smart plug) PR JohanBendz#1166: _TZ3000_c8ozah8n (PIR sensor) PR JohanBendz#1162-1161: _TZ3000_o4mkahkc, _TZ3000_fa9mlvja, _TZ3000_rcuyhwe3 PR JohanBendz#1209: _TZ3000_kfu8zapd (Smart plug) PR JohanBendz#1195-1194: _TZE204_bjzrowv2 (Energy plug) PR JohanBendz#1075: _TZ3210_eejm8dcr (LED Strip) Total: 13 manufacturer IDs + 5 from previous commit = 18 IDs today Drivers modified: 9 (presence, door, scene, plugs, motion, LED) Validation: PASS
|
✅ 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 (PIR Sensor)! 📢 Recommended: https://github.com/dlnraja/com.tuya.zigbee 📢 Forum: https://community.homey.app/t/app-pro-universal-tuya-zigbee-device-app-test/140352 |
…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
|
Hi! 👋 Thank you for this contribution! The fingerprint(s) from this PR have been integrated into dlnraja/com.tuya.zigbee (Universal Tuya Zigbee fork) as of v5.11.14. Install the latest test version: Community forum: This PR can be closed. Thanks for contributing! 🎉 |
|
Hi! Thanks for this PR. Already in our fork (v5.11.13):
Tracked in dlnraja/com.tuya.zigbee. |
Add the manufacturerName "_TZ3000_c8ozah8n" for the "pir_sensor_2" driver.