Universal Tuya docsHomeSupported devicesRequest a deviceFAQChangelogArchitectureKnowledge baseCreditsSourcesContributing

Code reference (generated)

Generated by scripts/kb/code-reference.js (P3032) from this branch's own files; each purpose line is the file's own header comment, so it is exactly as current as the code. Regenerate after adding a module, gate, workflow or env flag. Undocumented items: DOC_COVERAGE. Index: INDEX.

lib modules (943)

FilePurpose (from its header)
lib/BaseDriver.jsBaseDriver.js
lib/BatteryManagerV3.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/BatteryManagerV4.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/DeviceFingerprintDB.js_no header_
lib/DiagnosticEngine.js_no header_
lib/FlowCardHelper.jsFlowCardHelper v5.5.533 Utility to register flow cards for button drivers.
lib/GlobalTimeSyncEngine.jsP206 - orphan shim: canonical engine lives in lib/tuya/GlobalTimeSyncEngine.js (TuyaTimeSyncFormats + safe timers).
lib/IASAlarmFallback.jsIAS ALARM FALLBACK - v5.5.796 (Forum #1159 Lasse_K ZG-222Z fix) Handles devices where IAS Zone bind is unsupported (INVALID_EP) Fallback strategies: polling, Tuya DP mirror, attribute read v5.5.796: FORUM FIX - Enhanced
lib/IASZoneEnroller.jsIASZoneEnroller - Stub for backward compatibility Real implementation is in lib/managers/IASZoneManager.js
lib/IntelligentDeviceLearner.jsIntelligentDeviceLearner v5.5.336 Autonomous capability discovery and device profile learning system.
lib/IntelligentSensorInference.js_no header_
lib/LocalFirstEngine.js_no header_
lib/LowLevelBridge.js+==============================================================================+ \| LowLevelBridge v1.0.0 - P34 ZIGBEE/TUYA BYPASS ENGINE \| +==============================================================================
lib/ManufacturerVariationManager.js_no header_
lib/OnOffBoundCluster.jsWHY: stale duplicate historically lacked 0xFD.
lib/ProductValueValidator.js_no header_
lib/ProtocolAutoOptimizer.js_no header_
lib/SDK3BestPractices.jsSDK3BestPractices - v5.5.453 (+ P2547 Sdk3ZclSafe re-export) Utility class implementing Homey SDK3 best practices from official documentation: https://apps.developer.homey.app/ SSOT: config/architecture/external-app-sdk3
lib/SDK3CompatBridge.js+==============================================================================+ \| SDK3CompatBridge v1.0.0 - P36 SDK3 COMPENSATION ENGINE \| +=============================================================================
lib/TuyaColorControlCluster.js_no header_
lib/TuyaDataPoints.jsTuya Data Points (DP) This file defines a comprehensive list of Tuya-specific data points for various device types, such as thermostats, curtains, fans, and switches.
lib/TuyaDeviceClassifier.js_no header_
lib/TuyaEpochDetector.js_no header_
lib/TuyaHelpers.jsTuya Helpers This file provides a set of utility functions to handle common operations for Tuya Zigbee devices in a Homey driver.
lib/TuyaLevelControlCluster.js_no header_
lib/TuyaOnOffCluster.js_no header_
lib/TuyaRtcDetector.js_no header_
lib/TuyaSpecificCluster.jsTuyaSpecificCluster This class defines the Tuya-specific Zigbee cluster and its associated commands.
lib/TuyaSpecificClusterDevice.js_no header_
lib/TuyaTimeDebugProbe.js_no header_
lib/TuyaTimeManager.js_no header_
lib/TuyaUniversalBridge.js_no header_
lib/TuyaWindowCoveringCluster.js_no header_
lib/TuyaZigBeeLightDevice.js_no header_
lib/UniversalDataHandler.js_no header_
lib/UniversalZigbeeDevice.js_no header_
lib/UniversalZigbeeProtocol.jsUniversalZigbeeProtocol v4.0 - Complete Universal Zigbee Stack v5.5.657: Full universal engine (ZCL + DP + private clusters) Architecture: ONE universal engine interpreting ALL Zigbee variants - ZCL standard clusters - T
lib/Util.jsUtil.js - Universal Permissive Utilities As of v10.0.0 (P82, 2026-07-23), this module is a BACKWARD-COMPAT shim that delegates to lib/utils/TuyaNormalizer.js (the ULTIMATE single source of truth).
lib/ZigbeeClusterManager.jsZigbeeClusterManager - Universal Cluster Handler for Homey Handles all standard ZCL clusters for direct Zigbee communication: - IAS Zone (0x0500) - Security sensors - IAS WD (0x0502) - Warning devices (sirens, strobes) -
lib/ZigbeeTimeSync.js+==============================================================================+ \| ZIGBEE TIME SYNC - PRODUCTION READY \| \| \| \| [GOAL] POUR: TS0601 _TZE284_vvmbj46n et autres devices avec RTC + outCluster \| \| [OK]
lib/adapters/ExternalDeviceAdapter.jsExternalDeviceAdapter - Unified adapter combining Z2M, ZHA, deCONZ, and other sources into a single enrichment pipeline for the Homey app.
lib/adapters/SecurityManager.js_no header_
lib/adapters/Z2MConverterAdapter.js_no header_
lib/adapters/ZHAQuirkAdapter.js_no header_
lib/adapters/ZclToHomeyMap.js_no header_
lib/adapters/index.jsAdapters Index Central export point for all adapter modules.
lib/analytics/AdvancedAnalytics.jsADVANCED ANALYTICS & INSIGHTS Rich data visualization and tracking system - Device health monitoring - Energy consumption analytics - Network quality tracking - Predictive maintenance - Usage patterns analysis
lib/analytics/AnalyticsSystem.jsAdvanced Analytics and Insights Optimized for Homey Pro limits (512 MB RAM) SDK3 COMPLIANT: Uses this.homey
lib/analytics/index.js_no header_
lib/autonomous/AutonomousVerificationEngine.jslib/autonomous/AutonomousVerificationEngine.js - v2.0 (P58.6)
lib/autonomous/index.jslib/autonomous/index.js - v1.0 (P37.8)
lib/battery/BatteryCalculator.js+==============================================================================+ \| BATTERY CALCULATOR v5.5.47 - ULTRA PRECISE \| +==============================================================================+ \| \| \|
lib/battery/BatteryCascadeEngine.js_no header_
lib/battery/BatteryChemistryCurves.jsP2710 - Battery Chemistry Precision Curves WHY (P215): - Pourquoi: precise measure_battery % + measure_voltage from non-linear discharge curves per energy type (pile / akku / lithium techno).
lib/battery/BatteryCore.jsBatteryCore v2 - P54 comprehensive battery solution ========================================================================== Consolidates ALL battery-related methods, measurements, estimations, and fallback chains in O
lib/battery/BatteryHealthIntelligence.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/battery/BatteryHelper.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/battery/BatteryHybridManager.js+==============================================================================+ \| BATTERY HYBRID MANAGER - v5.5.42 \| +==============================================================================+ \| \| \| Gestion in
lib/battery/BatteryIconDetector.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/battery/BatteryManager.jsBatteryManager - Intelligent Battery Management Accurate calculations per battery type with voltage-based algorithms
lib/battery/BatteryManagerV3.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/battery/BatteryMasterEngine.js_no header_
lib/battery/BatteryMonitoringMixin.js_no header_
lib/battery/BatteryMonitoringSystem.js_no header_
lib/battery/BatteryProfileDatabase.js_no header_
lib/battery/BatterySystem.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/battery/MultiProtocolBatteryPercent.jsMultiProtocolBatteryPercent (P209) Fine-grained battery % support across every transport: ZCL / Zigbee · Tuya DP (EF00) · WiFi / local Tuya · IAS/ACE ("acl") · voltage · raw frame · MCU · estimated/cached Rules (project
lib/battery/SmartBatteryAdaptivePrecision.jsP2689 - Smart Battery Adaptive Precision WHY (P215): - Pourquoi: recover precise % for piles/accus without draining CR2032 or flooding the mesh with powerCfg polls / tight reportableChange.
lib/battery/SmartBatteryLowAlarm.jsSmartBatteryLowAlarm (P2506) WHY: Homey SDK forbids measure_battery + alarm_battery on the same device (duplicate UI + Flow).
lib/battery/UnifiedBatteryHandler.js_no header_
lib/battery/UniversalBatteryFallback.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/battery/ZclBatteryMonitor.jsZclBatteryMonitor - v9.0.413 (P92.118) / v9.0.581 Universal battery wiring for drivers that declare measure_battery but have NO runtime battery path (raw ZigBeeDevice Johan-style drivers: doorwindowsensor, pirsensor, f
lib/battery/button-battery-report.jsA tile percent is a report only when a sample path stored both a time and last_battery_from_report.
lib/battery/index.jsBattery Management Index - P54 cleaned Centralized exports for active battery-related utilities.
lib/battery/zcl-percent.jsSingle entry point for ZCL powerConfiguration battery normalization.
lib/buttons/ButtonEventRouter.jsButtonEventRouter (P2926) - one small place that turns every way a Tuya/Zigbee button press can reach us into { button, type } and lets one press fire once.
lib/buttons/attachButtonPaths.jsP2926 - optional, additive button paths on top of the native ones.
lib/cache/FingerprintCache.jsFingerprintCache.js - Fingerprint Lookup Cache Caches device fingerprint lookups for fast access.
lib/cache/NetworkCache.jsNetworkCache.js - HTTP Request Caching Layer Wraps HTTP/HTTPS requests with intelligent caching.
lib/cache/SmartCache.jsSmartCache.js - LRU + TTL Cache with Disk Persistence Implements a Least Recently Used (LRU) eviction strategy with per-entry Time To Live (TTL) support.
lib/cache/index.jsCache Module - Centralized exports for caching infrastructure WHY: Pairing uses mfs_db + fingerprint-matcher; CI HTTP uses smart-fetch.
lib/catalog/ComplementaryCoverageCatalog.jsComplementaryCoverageCatalog (P2544) WHY: Inventory every complementary I/O / wrapper / OTA / antispam path beyond Homey native zigbee/tuya libs - polymorphic coverage without inventing pids.
lib/clusters/CustomClusterManager.jsCustomClusterManager v5.8.36 Discovers, binds, listens to custom clusters Homey skips during interview 0xEF00-0xEFFF (Tuya) on ALL EPs + 0xFC00-0xFFFF (manufacturer-specific)
lib/clusters/IasAceCluster.js_no header_
lib/clusters/LevelControlBoundCluster.js_no header_
lib/clusters/OnOffBoundCluster.js_no header_
lib/clusters/RawClusterFallback.jsRawClusterFallback v5.12.0 Fixes: bind before listen, configureReporting, readAttributes, proper skip
lib/clusters/ScenesBoundCluster.js_no header_
lib/clusters/TuyaBatterySafeCluster.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/clusters/TuyaBoundCluster.js_no header_
lib/clusters/TuyaColorControlCluster.js_no header_
lib/clusters/TuyaE000BoundCluster.js_no header_
lib/clusters/TuyaE000Cluster.js_no header_
lib/clusters/TuyaE001BoundCluster.js_no header_
lib/clusters/TuyaE001Cluster.js_no header_
lib/clusters/TuyaE002BoundCluster.js_no header_
lib/clusters/TuyaE002Cluster.js_no header_
lib/clusters/TuyaE003BoundCluster.js_no header_
lib/clusters/TuyaE003Cluster.js_no header_
lib/clusters/TuyaOnOffCluster.jsTuyaOnOffCluster - Extended OnOff cluster with Tuya-specific attributes Source: Johan Bendz (JohanBendz/com.tuya.zigbee), integrated complementarily.
lib/clusters/TuyaOnOffExtCluster.js_no header_
lib/clusters/TuyaSpecificCluster.js_no header_
lib/clusters/TuyaWindowCoveringCluster.js_no header_
lib/clusters/UniversalClusterBinder.jsWHY(C2 lazy-load): EnrichedDPMappings is ~230 KB of heap and only needed once a Tuya DP is parsed or a per-manufacturer DP list is asked for, so it is resolved on first use instead of at module load.
lib/clusters/UnknownClusterHandler.js_no header_
lib/clusters/ZosungIRControlBoundCluster.js_no header_
lib/clusters/ZosungIRControlCluster.js_no header_
lib/clusters/ZosungIRTransmitBoundCluster.js_no header_
lib/clusters/ZosungIRTransmitCluster.js_no header_
lib/clusters/index.jsClusters Index - v5.12.2 Centralized exports for all Zigbee cluster handlers
lib/compat/StableV5Compat.js=========================================================================== StableV5Compat.js - Module de compatibilité stable-v5 -> master =========================================================================== CONT
lib/compensation/FirmwareLimitCompensation.jsP3101 (t656u / #560): optional firmware-limit compensation, data-driven per exact mfr+pid (config/firmware-limits.json).
lib/configs/IntelligentDeviceConfig.js_no header_
lib/constants/DeviceConstants.jsDeviceConstants - Centralized magic numbers and thresholds for device management Eliminates hardcoded values scattered across BaseUnifiedDevice.js and related files
lib/constants/REPORTING_CONFIGS.jsREPORTING_CONFIGS v5.12.12 - Adjusted values to prevent Zigbee network flooding
lib/constants/ZigbeeConstants.jsZigbeeConstants - Centralized Zigbee Cluster and Attribute IDs Unified Phoenix Sovereign structure.
lib/converters/TuyaDeviceDefinitions.js_no header_
lib/converters/ValueConverterRegistry.jsValueConverterRegistry - Central registry of value converters Inspired by Z2M (zigbee-herdsman-converters) converter patterns.
lib/converters/index.jsCONVERTERS INDEX Central export point for all converter modules.
lib/coordinator/DeviceCoordinator.js_no header_
lib/coordinator/attach.jsSpec 003 T3 - opt-in attachment of DeviceCoordinator to a Homey device instance.
lib/covers/CoverCommandQueue.js_no header_
lib/covers/CoverFlowActions.jsCoverFlowActions - give real behaviour to cover flow actions that were registered as log-only placeholders (open / close / stop / favorite).
lib/covers/CoverMotionTracker.js_no header_
lib/covers/CoverTahomaActions.jsCoverTahomaActions: TaHoma-style extras for covers, as app-level flow actions.
lib/covers/PositionSupportTracker.jsP2772 - hide the position slider on curtains that only support open/stop/close.
lib/covers/normalizeDpScalar.jsnormalizeDpScalar: turn a numeric string DP value ("2", " 50 ", "-3.5") into a number, and leave everything else alone.
lib/detectors/BseedDetector.jsBseedDetector - Detect BSEED devices that need Tuya DP protocol BSEED devices often have firmware that requires Tuya DataPoint protocol instead of standard Zigbee On/Off commands for multi-gang switches.
lib/detectors/EnergyCapabilityDetector.jsENERGY CAPABILITY DETECTOR Détecte intelligemment les capacités de mesure d'énergie: - Voltage, Current, Power, Energy - Battery percentage, voltage - Power source type (mains, battery, DC) - Consumption modes (AC/DC) S'
lib/detectors/MotionAwarePresenceDetector.js_no header_
lib/device/ButtonVisual.jsButtonVisual v2 - P54 comprehensive button visual rendering ========================================================================== Provides enhanced visual states for button devices in the Homey app.
lib/devices/AirPurifierFilterLife.jsAir Purifier Filter Life - DEVICE #24 Tracks filter usage and remaining life for Tuya air purifiers.
lib/devices/BaseTuyaDPDevice.js_no header_
lib/devices/BaseUnifiedDevice.js_no header_
lib/devices/ButtonDevice.js_no header_
lib/devices/CameraPTZController.jsCamera PTZ Control - DEVICE #23 Pan/Tilt/Zoom controller for Tuya Zigbee cameras.
lib/devices/CurtainMotorTilt.jsCurtain Motor Tilt Control - DEVICE #33 Extended curtain/blind motor control with tilt/slat angle support.
lib/devices/DeviceTypeManager.js[HOME] Device Type Manager Gère les différents types d'appareils connectés aux modules de contrôle Permet l'inversion logique pour radiateurs électriques et autres cas spéciaux
lib/devices/DoorWindowContactHelper.jsv9.0.415 (P92.123): DoorWindowContactHelper - shared IAS contact logic for the door/windowsensor family.
lib/devices/DoorbellCameraSnapshot.jsDoorbell Camera Snapshot - DEVICE #31 Manages snapshot/capture functionality for Tuya doorbell cameras.
lib/devices/EnergyMeterPerPhase.jsEnergy Meter Per-Phase - DEVICE #30 Multi-phase energy monitoring for 3-phase Tuya energy meters.
lib/devices/FingerprintLockFeatures.jsFingerprint Lock Features - DEVICE #27 Manages smart lock features for Tuya Zigbee fingerprint locks: - User/fingerprint management (add/delete/query) - Lock/unlock event tracking - Tamper detection - Access log manageme
lib/devices/GangCountAdapter.jsGangCountAdapter - P2794 runtime gang detection for switches (additive, non-blocking).
lib/devices/HybridSwitchBase.js_no header_
lib/devices/IRBlasterCodeDatabase.jsIR Blaster Code Database - DEVICE #26 Manages IR code libraries for Tuya IR blasters (Zosung, Tuya generic).
lib/devices/InPlaceIdentityLayer.js_no header_
lib/devices/LedControllerSpiTuyaDevice.js_no header_
lib/devices/MiBoxerFut089zZones.jsFolded into button_wireless_4 (exact couple _TZ3000_xwh1e22x + TS1002).
lib/devices/PlugDevice.js_no header_
lib/devices/SensorDevice.js_no header_
lib/devices/SmokePreAlarm.jsSmoke Pre-Alarm - DEVICE #37 Early warning system for smoke/CO detectors using: - Trend analysis (gradual rise in smoke density) - Pre-alarm thresholds before critical alarm - Multi-sensor fusion (smoke + CO + temperatur
lib/devices/SwitchDevice.js_no header_
lib/devices/Ts004xDedicatedComplement.jsTs004xDedicatedComplement (P2616) Complementary hotfix stacks that historically lived on dedicated TS0044 drivers and must NOT be wiped when fleet WallSceneRemoteHybridInit is installed (P2520).
lib/devices/TuyaDpProfileDevice.js_no header_
lib/devices/TuyaUnifiedDevice.js_no header_
lib/devices/UnifiedCoverBase.js_no header_
lib/devices/UnifiedLightBase.js_no header_
lib/devices/UnifiedPlugBase.js_no header_
lib/devices/UnifiedSensorBase.js_no header_
lib/devices/UnifiedSwitchBase.js_no header_
lib/devices/UnifiedThermostatBase.js_no header_
lib/devices/WallSceneRemoteHybridInit.jsWallSceneRemoteHybridInit (P2608) Battery wall scene remotes (TS0043 / TS0044 / Zemismart / Moes / Lonsonho): multi-path RX - Homey does not natively decode Tuya mfr OnOff 0xFD / E000 / EF00.
lib/devices/WallTouchDevice.js_no header_
lib/devices/held/WallSwitchRfEws1154zDevice.jsP3330: moved from drivers/wall_switch_rf_ews1154z/device.js (which re-exports it) so the published driver wall_switch_1gang_1way can run it for these exact couples while wall_switch_rf_ews1154z stays held out of the Atho
lib/devices/index.jsDevices Index - v5.5.797 Centralized exports for all device base classes
lib/diagnostics/DebugManager.jsDEBUG MANAGER Centralized debug/logging control - Developer Debug Mode flag - Controlled logging levels - Performance impact awareness AUDIT V2: Reduce log spam for production users
lib/diagnostics/DeviceDiagSnapshot.jsDeviceDiagSnapshot (P3198) WHY: diag fb5be1fe (Zigbee energy meter pairs, reports nothing) carried only app startup lines - no mfr/pid/clusters/DPs, so nothing could be fixed.
lib/diagnostics/DeviceDiagnostics.jsDeviceDiagnostics - Comprehensive diagnostic tool for Tuya/Zigbee devices v5.2.9 - Based on user feedback and diagnostic reports Detects and reports: - USB/Zigbee communication issues - Battery reporting problems - Drive
lib/diagnostics/DeviceHealth.js_no header_
lib/diagnostics/DiagContentEnricher.jsDiagContentEnricher - structured extraction from Homey diagnostic emails / stdout.
lib/diagnostics/DiagnosticAPI.js[LAB] DIAGNOSTIC API Expose logs and diagnostics for external access (MCP, AI agents, debugging) Allows intelligent monitoring and auto-correction by AI agents
lib/diagnostics/DiagnosticLogger.jsDiagnosticLogger - Structured logging utility for verbose debugging Provides: - Timestamp with milliseconds - Module name identification - Log levels (info, warn, error, debug, verbose) - Device ID context (when availabl
lib/diagnostics/DiagnosticLogsCollector.jsDiagnosticLogsCollector - Mixin pour ajouter la collecte de logs aux rapports diagnostics de device Usage: const DiagnosticLogsCollector = require('./DiagnosticLogsCollector'); class MyDevice extends DiagnosticLogsCollec
lib/diagnostics/FleetIdentityLog.jsFleetIdentityLog (P2248) WHY: Peter_van_Werkhoven diags (0cea6870 / 1cf775a2 / 634f7b19) never carried zb_manufacturer_name + zb_model_id - couples stayed ABSENT.
lib/diagnostics/HealthCheck.jsHEALTH CHECK SYSTEM Vérifie la santé du device et du réseau Zigbee Fournit diagnostic détaillé en cas de problème Basé sur best practices IKEA TRÅDFRI et Xiaomi Mi Home
lib/diagnostics/SystemLogsCollector.jsSystemLogsCollector - Collecte les logs système et autres logs utiles pour inclusion dans les rapports diagnostics de l'app
lib/discovery/AutonomousAdvertisingDiscovery.jsAutonomousAdvertisingDiscovery (P2410) WHY: Users need LAN + mesh devices that are currently advertising (UDP beacons / mDNS / recent Zigbee RX) without waiting for cloud.
lib/discovery/SmartDeviceDiscovery.js_no header_
lib/discovery/SmartDiscovery.jsSmart Device Discovery AI-powered device identification and configuration
lib/discovery/index.js_no header_
lib/drivers/BaseZigBeeDriver.js_no header_
lib/drivers/ContinuationFlowAlias.jsWHY(P3233, 02/11/2026 Paris): a continuation driver (DRIVER_CONTINUATIONS.md) owns its own flow card ids (<cont>_x, filtered on driver_id=<cont>) but runs the root code, which asks for '<root>_x' cards.
lib/drivers/DriverContinuations.jsWHY(P3206, 02/11/2026 Paris): one shared resolver for driver chains (root -> <root>_2 -> <root>_3 ...).
lib/drivers/DynamicDriverMatcher.jslib/drivers/DynamicDriverMatcher.js
lib/drivers/FlowGangControl.js_no header_
lib/drivers/HeldDriverFolds.jsP3330 / P3331: runtime side of lib/drivers/held-driver-folds.json.
lib/drivers/ZigBeeDriverFlowCardPatch.jsZigBeeDriverFlowCardPatch WHY(P2676 / Bastien diag cb3c0c87 @ 1.0.51): hard require('homey-zigbeedriver') at app.js load crashed the WHOLE app (MODULE_NOT_FOUND) -> no lights/relays.
lib/dynamic/AutoAdaptiveDevice.js_no header_
lib/dynamic/AutonomousEnricher.js+==============================================================================+ \| [NET] AUTONOMOUS ENRICHER (Zero-Touch Updates) \| +==============================================================================+ \| Ru
lib/dynamic/DPAdaptationEngine.jsDPAdaptationEngine - v6.0.0 Real-time DP pattern analysis and adaptation engine for Tuya Zigbee devices.
lib/dynamic/DPAutoMapper.jsDPAutoMapper - v6.0.0 DP-to-capability auto-mapping engine with value-range inference.
lib/dynamic/DynamicCapabilityManager.js_no header_
lib/dynamic/DynamicEnergyManager.jsDynamicEnergyManager - v5.3.59 Intelligent real-time energy monitoring and adaptation.
lib/dynamic/DynamicFlowCardManager.jsDynamicFlowCardManager - v5.3.57 Automatically creates and registers flow cards based on: - Device capabilities (existing + dynamically discovered) - Capability type (boolean -> triggers, number -> conditions/triggers) -
lib/dynamic/IntelligentDriverHotSwap.jsIntelligentDriverHotSwap - v2.0.0 (MASTER_ONLY) =================================================================== HARD CONSTRAINT: Homey SDK3 has NO setDriver() at runtime.
lib/dynamic/LiveDataUpdater.jsLiveDataUpdater (P92.77 / P148) - OTA fingerprint overlay from our GitHub Pages.
lib/dynamic/SelfHealingDevice.js+==============================================================================+ \| [DNA] SELF-HEALING BASE DEVICE (Autonomous Repair) \| +==============================================================================+ \
lib/dynamic/SmartBiorhythmHandler.jsSmartBiorhythmHandler - Local Solar Sync via DaylightAtmosphere SSOT.
lib/dynamic/SmartButtonRouter.js_no header_
lib/dynamic/SmartDoorlockHandler.jsSmartDoorlockHandler Universal Tuya DP mapping for Doorlocks (Tuya MCU and Standard)
lib/dynamic/SmartFlowManager.jsSmartFlowManager - v5.3.59 Intelligent real-time flow card management.
lib/dynamic/UniversalSmartFeaturesHandler.jsUniversalSmartFeaturesHandler Intercepts common Tuya "Smart Features" DPs (Child Lock, Eco Mode, Calibration, Window Open) and dynamically injects them into Homey as capabilities.
lib/dynamic/VirtualTelemetryCompensationEngine.js+==============================================================================+ \| VIRTUAL TELEMETRY COMPENSATION & ADAPTATION ENGINE - v5.6.1 \| +========================================================================
lib/dynamic/index.jsDynamic Auto-Adaptive System - v5.3.59 FULL intelligent self-adapting system for Tuya devices.
lib/emergency/EmergencyDeviceFix.js_no header_
lib/energy/EstimatedEnergyCaps.jsP3130 / t699u: deterministic estimated-energy capabilities.
lib/energy/ExportEnergyConfig.js#105 follow-up: drivers that only gain meter_power.exported at runtime (power clamps, metering plugs that report produced energy) cannot declare it in driver.compose.json energy, because Homey requires the capability
lib/energy/IntelligentEnergyAdapter.jsIntelligentEnergyAdapter (P2672) Pourquoi: Homey Energy UI + mesh flood need ONE dynamic decision per device - metered / approximate / battery / sleepy - without inventing parallel managers.
lib/energy/PowerEnergySanity.jsPowerEnergySanity - P3021c (forum topic 140352 post #2092, Lucas360).
lib/energy/PowerEstimator.jsP3170 / t759u: pure power-estimation helpers (no timers, no device state).
lib/energy/PowerSelfCalibration.jsPowerSelfCalibration - learn a light/dimmer/plug's own power curve from the moments it DOES report real power (P3067, user t581u/t582u).
lib/energy/PowerSourceResolver.jsPowerSourceResolver - one precedence for "how many watts is this device using" (P3067, user t577u/t580u).
lib/energy/UniversalEnergyHandler.jsUniversalEnergyHandler Manages 'Metering' (0x0702) and 'ElectricalMeasurement' (0x0B04) clusters universally.
lib/energy/WifiDp17Energy.jsP2705 - Tuya WiFi DP17 (add_ele) energy, auto-detected per device.
lib/energy/mainsEnergy.jsP3070-energy: energy object for a device just confirmed as mains powered.
lib/enrichment/ComplementaryMerge.jsComplementaryMerge (P2520) WHY: Enrichments are variants/additions - never wipe or shrink working compose.
lib/enrichment/EnrichmentRegistry.jsEnrichmentRegistry — single loader for config/enrichment manifest + layers.
lib/enrichment/HeuristicUnknownResolver.jsHeuristicUnknownResolver (P2218 / P2228) Predictive / heuristic ranking when mfr+pid or symptoms are incomplete.
lib/enrichment/NeedActionInvestigator.jsNeedActionInvestigator — auto-investigate forum need-action without waiting for user reply.
lib/enrichment/PhaseRunner.jsPhaseRunner — manifest-driven silent enrichment pipeline.
lib/enrichment/ProfileSynchronizer.jsProfileSynchronizer — merge forum/diag signals into catalog stubs (never overwrite curated rows).
lib/errors/UserFriendlyErrors.jsUserFriendlyErrors - v1.0.0 Translates technical errors into user-friendly messages Features: - Error categorization and mapping - Context-aware suggestions - Multi-language support ready - Error history for pattern dete
lib/errors/index.js_no header_
lib/ewelink-local/EweLinkCrypto.js_no header_
lib/ewelink-local/EweLinkLANClient.js_no header_
lib/ewelink-local/EweLinkLocalDevice.js_no header_
lib/ewelink-local/EweLinkLocalDriver.js_no header_
lib/ewelink-local/eweLinkRepair.jsP3072 - one Repair "configure" handler for every eWeLink/Sonoff LAN device.
lib/features/AbsenceEnergySoft.jsAbsenceEnergySoft (P2565) - unbranded absence->eco (Aqara presence energy-save feel).
lib/features/AdvancedMultiConditionFlows.js_no header_
lib/features/CapabilityExportImport.jsDevice Capability Export/Import - FEATURE #50 Export and import device capability configurations: - Export device capability profile - Import capability settings between devices - Capability diff/comparison
lib/features/ConditionEngine.jsConditionEngine - Flexible Condition Evaluation FEATURE #85 Evaluates complex condition trees for flow card triggers: - Device state conditions (capability value comparisons) - Time conditions (before/after, day-of-week,
lib/features/ConfigurationBackupRestore.jsConfiguration Backup/Restore - FEATURE #56 Backup and restore device configurations: - Full app configuration backup - Per-device settings backup - Flow card backup - Export/import as JSON
lib/features/ContactEntrySoft.jsContactEntrySoft (P2566) - unbranded door/contact -> lights (ST/Lutron entry routine).
lib/features/CustomCapabilityTemplates.jsCustom Capability Templates - FEATURE #45 Provides reusable capability templates for common Tuya device patterns: - Pre-configured capability sets by device type - Automatic capability generation from DP mappings - Capab
lib/features/DaylightAtmosphere.jsDaylightAtmosphere - community SSOT for solar white / brightness curves.
lib/features/DeviceGroupSceneManager.jsDevice Group Scene Management - FEATURE #52 Manages scenes across groups of devices: - Save/restore device states as scenes - Group scene activation - Scene transitions (fade, ramp) - Schedule-based scene activation
lib/features/DeviceMigrationWizard.jsDevice Migration Wizard - FEATURE #54 Helps users migrate devices between drivers: - Pre-migration compatibility check - Settings migration - Flow migration - Rollback support
lib/features/DiagnosticReportExport.jsDiagnostic Report Export - FEATURE #57 Generates and exports comprehensive diagnostic reports: - Network health report - Device status report - Performance metrics - Error logs - Exportable as JSON/text
lib/features/EnergyHistoryStore.jsEnergyHistoryStore - Persistent Energy Data Storage FEATURE #82 Stores energy readings with rolling window retention: - Per-device energy history (watt-hours) - Configurable retention (hours, days, weeks) - Automatic dat
lib/features/IdleAutoOffSoft.jsIdleAutoOffSoft (P2566) - unbranded idle auto-off (Lutron Auto-Off Timer feel).
lib/features/LampMeshOccupancy.jsLampMeshOccupancy (P2563/P2564) - full Homey-feasible lamp-as-sensor occupancy.
lib/features/LocalSelfImproveCatalog.jsLocalSelfImproveCatalog (P2542) WHY: Homey Pro has no cloud AI - document/wire local compensators for agents & soft boot notes.
lib/features/LuxAdaptiveDim.jsLuxAdaptiveDim (P2565) - unbranded lux->brightness follow (Aqara illuminance lighting feel).
lib/features/MirrorLightSync.jsMirrorLightSync (P2565) - unbranded master->follower light sync (SmartThings/HA mirror feel).
lib/features/NetworkTopologyCollector.jsNetworkTopologyCollector - Zigbee Mesh Topology Mapping FEATURE #87 Collects and maps the Zigbee mesh network topology: - Device neighbor discovery - Router/end-device classification - Signal path quality analysis - Mesh
lib/features/NetworkTopologyTrigger.js_no header_
lib/features/NightPathBias.jsNightPathBias (P2566) - unbranded night dim bias (Xiaomi/Aqara night path feel).
lib/features/PeakLoadSoftShed.jsPeakLoadSoftShed (P2566) - unbranded peak power -> soft dim (energy-hub load shed feel).
lib/features/PredictiveHealthEngine.jsPredictiveHealthEngine - Device Health Trend Analysis FEATURE #86 Analyzes device health trends for predictive maintenance: - Battery drain rate prediction - Signal degradation detection - Failure probability estimation
lib/features/QuietHoursGuard.jsQuietHoursGuard (P2566) - unbranded quiet-hours window check (Lutron/Aqara feel).
lib/features/ScheduleManager.jsScheduleManager - Core Scheduling Engine FEATURE #84 Manages device schedules with complex recurrence patterns: - Cron-style scheduling (second to day-of-week) - One-shot scheduled actions - Recurring patterns with end d
lib/features/ShadeDaylightSoft.jsShadeDaylightSoft (P2566) - unbranded solar->cover (Lutron Sunset Tracker / shade feel).
lib/features/SmartGatewayFeatureHub.jsSmartGatewayFeatureHub (P2563-P2568) - branding-free gateway smart features.
lib/features/SoftAmbientSync.jsSoftAmbientSync (P2564) - branding-free Soft Ambient Sync.
lib/features/SoftDaylightFade.jsSoftDaylightFade (P2563/P2564) - full branding-free daytime white / Adaptive-Lighting feel.
lib/features/SoftDeviceLink.jsSoftDeviceLink (P2565) - unbranded soft remote->light link (IKEA Tradfri/Dirigera binding feel).
lib/features/SoftFeatureCatalog.jsSoftFeatureCatalog (P2567) - loads 200 unbranded smart-feature vectors.
lib/features/SoftRecipeRunner.jsSoftRecipeRunner (P2567/P2568) - executes ALL 200 catalog vectors end-to-end.
lib/features/SolarElevation.jsSolarElevation - NOAA Solar Position Calculator FEATURE #80 Calculates solar elevation angle for a given geographic location and timestamp using the NOAA Solar Calculator algorithm: https://gml.noaa.gov/grad/solcalc/sola
lib/features/StaggeredLeaveOff.jsStaggeredLeaveOff (P2565) - unbranded mesh-friendly leave-home all-off (Lutron/ST feel).
lib/features/StateHistoryTrigger.js_no header_
lib/features/TariffCalculator.jsTariffCalculator - Multi-Rate Energy Cost Calculation FEATURE #83 Calculates energy costs across multiple tariff tiers: - Time-of-use (TOU) tariffs with day/night/peak/shoulder/off-peak - Tiered pricing (progressive rate
lib/features/TransitionEngine.jsTransitionEngine - Smooth Multi-Step Transitions FEATURE #81 Provides smooth multi-step transitions for device capabilities: - Linear, ease-in, ease-out, ease-in-out, cubic bezier interpolation - Color temperature transi
lib/features/TuyaCloudSceneSync.jsTuya Cloud Scene Sync - FEATURE #49 Synchronizes scenes between Tuya Cloud and Homey: - Import Tuya cloud scenes as Homey flows - Map scene actions to device commands - Bidirectional scene sync
lib/features/WelcomeHomeSoft.jsWelcomeHomeSoft (P2565) - unbranded arrival lighting (SmartThings/Aqara welcome feel).
lib/features/ZigbeeMeshMap.jsZigbeeMeshMap - settings spider-web snapshot (MASTER_ONLY) WHY: Homey users want a Z2M-style mesh view without leaving App Settings.
lib/features/index.jsFeatures Index - v9.1.0 Centralized exports for all feature modules
lib/filter/EventDeduplicationLayer.js+==============================================================================+ \| EVENT DEDUPLICATION LAYER v9.0.47 (porté de stable-v5 v5.5.670) \| +====================================================================
lib/filter/SanityFilter.js_no header_
lib/flow/ActuatorFlowHelper.jsP130 - Shared actuator flow helpers.
lib/flow/AdaptiveLightingCards.jsP3065 D11 (t576u) - Flow cards for adaptive lighting (Solar Sync / Daylight Atmosphere curve), per device.
lib/flow/AdvancedFlowCardManager.jsADVANCED FLOW CARD MANAGER Inspiré des meilleures pratiques de: - Johan Bendz (Philips Hue Zigbee) - Maxmudjon (Aqara & Xiaomi) - StyraHem (SONOFF Zigbee) - Device Capabilities App Implémente des flow cards avancées pour
lib/flow/BatteryHealthFlowHandler.jsBatteryHealthFlowHandler v1.0.0 Handles flow card run listeners for the battery health intelligence system: - Triggers: battery_health_changed, battery_needs_replacement - Conditions: battery_health_below_threshold - Act
lib/flow/CapabilityChangedFlowEmitter.jsP2747 / P2748 - Emit declared Homey Flow cards that carry TAGS (tokens) when a capability value actually changes - from ANY paint path (safeSet, confirmInbound, raw setCapabilityValue, complementary RX/TX).
lib/flow/CapabilityValueCards.jsP3065 flow uplift (t569u/t570u) - three generic, app-level cards that cover EVERY capability of every driver, including sub-capabilities (per gang / channel / phase: onoff.gang2, measure_power.l1) and app-defined custom
lib/flow/DeadFlowAutoWire.jsDeadFlowAutoWire: give dead driver triggers and listener-less conditions a capability-based behaviour (P2803).
lib/flow/DeclaredFlowCardAutoWire.jsP2449 - Auto-wire declared flow cards that were historically dead.
lib/flow/DeviceSettingAction.jsP2773 - generic "Set a device setting" Flow action (app-level card device_set_setting).
lib/flow/FamilyCapabilityCards.jsP3065 D10 (b) - dedicated, app-level family cards for the custom capabilities that so far only had the generic capability_value_* cards: alarm_human, frost_protection, power_on_behavior.
lib/flow/FeatureFlowCards.jsFeatureFlowCards - Flow Card Registration for Feature Modules v9.1.0 Registers run listeners for all flow cards declared in .homeycompose/flow/ that correspond to the new feature modules: - SolarElevation (Adaptive Light
lib/flow/FlowCardDeviceResolve.jsP2635 - Shared Homey Flow device/arg/state helpers (switches, buttons, actuators) WHY: Homey SDK3 device triggers with dropdown args require registerRunListener to compare args <-> state.
lib/flow/FlowCardGetters.jsFlow card getter stubs for incomplete Homey flow includes.
lib/flow/FlowCardHeuristics.jsUniversal flow-card ID heuristics (P104 + P108 case-less) Homey compose often has hybrid/copied IDs (air_purifier_switch_1gang_physical_on) or truncated hash suffixes.
lib/flow/FlowCardManager.jsFlow Card Manager v5.9.0: DYNAMIC registration of ALL flow cards from app.json manifest.
lib/flow/FlowCardPresence.jsFlowCardPresence (P2830) - cheap, cached "is this flow card declared in the manifest?" check and a bounded fan-out limiter for event-driven flow triggers.
lib/flow/FlowStormGuard.jsP3065 D13 (t582u) - one shared, bounded guard for every generic Flow card module.
lib/flow/FlowTriggerHelpers.js_no header_
lib/flow/GenericDeviceCards.jsP2775 - generic, app-level device Flow cards (one card for every driver, keeps the manifest small).
lib/flow/InteractionHistory.jsP2687 - Interaction history helpers (pure + ring prune).
lib/flow/LeftOpenScheduler.jsP3077 flow batch 7: "Left open for duration" triggers declared on contact drivers had no emitter.
lib/flow/ManifestDriverFlowIndex.jsWHY: Homey builds driver.flow.compose.json into the ROOT app manifest (homey.manifest.flow.*) with a device arg filter driver_id=<id>.
lib/flow/PlaceholderActionWiring.jsPlaceholderActionWiring (#113): some generated driver action cards only logged and returned success.
lib/flow/PredictiveFlowCards.jsP2777 - predictive / smart Flow cards (master only, additive, app-level).
lib/flow/SceneRecallCards.jsP3065 D12 (t575u) - raw "scene recalled" trigger for any remote that sends a ZCL Scenes recall (cluster 0x0005, command recall / recallScene, or a currentScene report).
lib/flow/SwitchActuatorFlowAutoWire.jsP2635 - Fleet auto-wire for switch / wall_switch / plug actuator Flow cards.
lib/flow/TriggerGuards.jsP2770 - generic trigger guards (additive, non-blocking).
lib/flow/UniversalFlowCardLoader.jsUniversalFlowCardLoader - v5.5.597 Fixes forum posts 1015/1016: Dynamic FlowCard listeners for sub-capabilities
lib/flow/UnknownCommandFlowCards.jsP3016: app-level Flow cards for unknown commands and DPs.
lib/flow/index.js_no header_
lib/garage/garageTrigger.jsP3144 (forum Apps cat. topic 149230 #5 + Z2M tuya.ts TS0603 _TZE608_*): these openers expose DP1 as a raw "trigger the door movement" (Z2M: state STATE_SET, valueConverter.raw) and DP3 as the contact. Writing DP1=false (
lib/green_power.js+==============================================================================+ \| GREEN POWER & UTILITY ENDPOINTS MODULE v1.0 \| +==============================================================================+ \| \| \|
lib/groups/DeviceGroupManager.js_no header_
lib/groups/index.js_no header_
lib/health/DeviceHealthDashboard.js_no header_
lib/health/HealthMonitor.js_no header_
lib/health/index.jsHealth Module Index - v9.1.0 Centralized exports for all health monitoring modules.
lib/helpers/BatteryRouter.jsBATTERY ROUTER - Smart Battery Source Selection WHY (P215 / P2269): - Pourquoi: pick ZCL vs Tuya DP vs voltage without inventing linear % curves.
lib/helpers/CalibrationLedger.jsCalibrationLedger - P3002: one calibration per reading.
lib/helpers/CapabilityCleanup.jsCapabilityCleanup - Remove incorrect capabilities from devices Fixes capability issues caused by wrong driver assignment or dynamic capability detection errors.
lib/helpers/ColorConverter.js_no header_
lib/helpers/CustomPairingHelper.jsCustomPairingHelper - Universal helper for custom pairing views Handles driver selection when multiple drivers match same device fingerprint Compatible with Homey SDK3 official Custom Pairing Views API SDK3 COMPLIANT: No
lib/helpers/DeviceDataHelper.js_no header_
lib/helpers/DeviceHintsDatabase.js_no header_
lib/helpers/DeviceIdentificationDatabase.js_no header_
lib/helpers/FallbackSystem.jsFALLBACK SYSTEM - Intelligent Multi-Strategy Système intelligent qui essaye multiple stratégies jusqu'à succès Basé sur best practices d'autres apps Homey (IKEA, Xiaomi, SONOFF) Features: - Multi-level fallback (Strategy
lib/helpers/IntelligentDPAutoDiscovery.jsKeep the legacy helper path alive while using the hardened central learner.
lib/helpers/IntelligentPresenceInference.js_no header_
lib/helpers/LateCapability.jsP3064: add an optional capability the first time the device proves it has the feature (a real report arrives), then write the value.
lib/helpers/ManufacturerCatalog.jsManufacturerCatalog - Maps manufacturer names/prefixes to IoT categories, recommended capabilities, and flow cards.
lib/helpers/ManufacturerDeviceQuirkRegistry.js_no header_
lib/helpers/ManufacturerNameHelper.js_no header_
lib/helpers/MeterSilenceWatchdog.jsP3213 - MeterSilenceWatchdog (t783u, diag fb5be1fe "energy meter pairs but cannot be read").
lib/helpers/PairingHelper.jsPAIRING HELPER - SDK v3 Compliant Fournit feedback utilisateur pendant le pairing Basé sur Homey SDK v3 PairSession Résout issue forum: "Nothing happens" pendant pairing
lib/helpers/PowerSourceIntelligence.jsIntelligent Power Source Detection (v6.0) Replaces hardcoded mainsPowered arrays with dynamic detection
lib/helpers/ProbabilisticDeviceDetector.js_no header_
lib/helpers/QuietMainsAvailPoll.jsP2321 - Quiet mains availability poll heuristics (HomeSuite idea, MIT).
lib/helpers/RobustInitializer.jsRobustInitializer - Defensive initialization with retry/backoff Implements ChatGPT recommendations + Homey SDK3 best practices Features: - Retry/backoff for missing zclNode - Safe cluster binding with error handling - Ve
lib/helpers/TuyaOnOffSettingsSync.jsSpec 006 (#1503-class): read-only startup sync of Tuya OnOff manufacturer attributes (0x8000 childLock, 0x8001 indicatorMode, 0x8002 relayStatus = power-on state) into the existing Homey settings.
lib/helpers/UniversalCapabilityDetector.jsUNIVERSAL CAPABILITY DETECTOR Détecte AUTOMATIQUEMENT toutes les capabilities d'un device: - Clusters Zigbee standards (ON_OFF, TEMPERATURE, etc.) - Clusters Tuya custom (0xEF00 avec DataPoints) - Clusters propriétaires/
lib/helpers/UniversalDriverInit.jsUniversalDriverInit - v5.5.929 Universal initialization for ZCL, Tuya DP, and protocols
lib/helpers/UnknownCaseRealigner.jsUnknownCaseRealigner (P2218) - runtime bridge for incomplete / imprecise cases.
lib/helpers/UnknownDeviceHandler.js_no header_
lib/helpers/VirtualCapabilities.jsVirtual Capabilities Manager Gere les capabilities derivees et calculees
lib/helpers/ZclHumidityScale.jsP3245 (GH#581 hogseto): shared ZCL relativeHumidity scaling for every driver.
lib/helpers/batteryPowerSource.jsWHY(P2296): Homey SDK battery-status - measure_battery XOR alarm_battery; energy.batteries required when either is present.
lib/helpers/device_helpers.jsDevice Helpers - Utility functions for device management Based on: Mega-Prompt V2, SDK3 best practices, Zigbee2MQTT research Functions: - safeAddCapability: Add capability with blacklist & error handling - detectMultiGan
lib/helpers/powerUtils.jsPower Management Utilities Based on Homey Battery Best Practices Official Doc: https://apps.developer.homey.app/the-basics/devices/best-practices/battery-status CRITICAL RULE: Never use both measure_battery AND alarm_bat
lib/hosted/air_conditioner_aetz01/device.jsP3331 shim: replaced in the Athom payload by drivers/air_conditioner_aetz01/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/curtain_sonoff_mini_zbrbs/device.jsP3331 shim: replaced in the Athom payload by drivers/curtain_sonoff_mini_zbrbs/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/energy_meter_3ch_bidirectional/device.jsP3331 shim: replaced in the Athom payload by drivers/energy_meter_3ch_bidirectional/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/gpo_double_light_mg_au03/device.jsP3331 shim: replaced in the Athom payload by drivers/gpo_double_light_mg_au03/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/gpo_double_mg_gpo02z/device.jsP3331 shim: replaced in the Athom payload by drivers/gpo_double_mg_gpo02z/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/heiman_siren/device.jsP3331 shim: replaced in the Athom payload by drivers/heiman_siren/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/heiman_siren/driver.jsP3331 shim: replaced in the Athom payload by drivers/heiman_siren/driver.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/keypad_alarm_wke502z/device.jsP3331 shim: replaced in the Athom payload by drivers/keypad_alarm_wke502z/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/presence_radar_aoyan_ay204t/device.jsP3331 shim: replaced in the Athom payload by drivers/presence_radar_aoyan_ay204t/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/siren_moes_mg_bjq002/device.jsP3331 shim: replaced in the Athom payload by drivers/siren_moes_mg_bjq002/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/smoke_sensor_ts0601_dp/device.jsP3331 shim: replaced in the Athom payload by drivers/smoke_sensor_ts0601_dp/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/switch_2gang_ts0002/device.jsP3331 shim: replaced in the Athom payload by drivers/switch_2gang_ts0002/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/switch_2gang_ts0002/driver.jsP3331 shim: replaced in the Athom payload by drivers/switch_2gang_ts0002/driver.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/switch_wall_6gang_metering/device.jsP3331 shim: replaced in the Athom payload by drivers/switch_wall_6gang_metering/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/thermostat_vrf_bvrf_l001/device.jsP3331 shim: replaced in the Athom payload by drivers/thermostat_vrf_bvrf_l001/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/ufh_controller_ch8z/device.jsP3331 shim: replaced in the Athom payload by drivers/ufh_controller_ch8z/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/ufh_controller_pro_line_x10/device.jsP3331 shim: replaced in the Athom payload by drivers/ufh_controller_pro_line_x10/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/valve_novato_zpv01/device.jsP3331 shim: replaced in the Athom payload by drivers/valve_novato_zpv01/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/water_leak_aoyan_ay222z/device.jsP3331 shim: replaced in the Athom payload by drivers/water_leak_aoyan_ay222z/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/hosted/water_leak_blitzwolf_bw_is9/device.jsP3331 shim: replaced in the Athom payload by drivers/water_leak_blitzwolf_bw_is9/device.js (see docs/rules/HOSTED_HELD_DRIVERS.md).
lib/index.jsTuya Unified Zigbee - Main Library Index v5.5.797: Complete audit and reorganization Provides organized access to all library modules Usage: const { Battery, Security, Tuya, Flow } = require('./lib'); const batterySystem
lib/intelligent/IntelligentDeviceAdapter.js=============================================================================== INTELLIGENT DEVICE ADAPTER - v5.5.373 =============================================================================== Smart adaptive system
lib/interpreters/UniversalRawInterpreter.jsUniversalRawInterpreter - v5.5.795 Interprets raw Zigbee data that doesn't go through standard Homey methods.
lib/io/DeviceFusionHooks.js_no header_
lib/io/DeviceIOFacade.js_no header_
lib/io/HomeyCompensationLayer.jsHomeyCompensationLayer (P102 Phase 2 / P2250 / P2699) Compensates incomplete Homey interview / SDK cluster coverage.
lib/io/NonNativeComplementary.jsP2699 / P2700 - Non-native Homey DP / clusters -> complementary only (never mandatory).
lib/io/ProtocolFallbackChain.jsProtocolFallbackChain (P102 Homey compensation) Ordered TX/RX strategies with per-step try/catch - never fatal.
lib/io/healZigbeeNodeIdentity.jshealZigbeeNodeIdentity - P2314 PresentSky / Gmail m1cvyneb WHY: Homey throws "Missing Zigbee Node's IEEE Address (token: ...)" when zclNode lost ieeeAddr after re-pair while getData().token still exists.
lib/io/index.jslib/io - Homey compensation + protocol I/O surface (P102)
lib/io/shouldSkipIasOnlyEf00Tx.jsIAS leftover EF00 TX skip (P2287 / ias_sleepy).
lib/ir/HomeyInfraredTx.jsP2487c - Homey Pro 2023 onboard IR TX (third Intelligent IR path).
lib/ir/IRCodeLibrary.jsIRCodeLibrary - Universal IR code database for ir_blaster driver Provides brand/device/function lookup with pre-loaded codes from IRDB Also includes hardcoded common codes for popular brands (NEC protocol)
lib/ir/IRFloodGuard.jsP2501 - IRFloodGuard (Intelligent IR anti-spam / anti-flood) WHY: Flow loops, virtual remotes, and double-presses flood IR LEDs, Zosung chunk TX, WiFi DP201, and Homey Pronto RF - causes MCU lag / missed codes.
lib/ir/IRFormatConverter.jsP2487 - IR format converters (Pronto / Broadlink / HEX / Global Caché -> Zosung or opaque WiFi).
lib/ir/IntelligentIRRouter.jsP2487 - IntelligentIRRouter WHY: One send/learn/list API for Zigbee Zosung + WiFi Tuya + Homey Pro 2023 onboard IR.
lib/ir/TuyaWifiIRProtocol.jsP3063 - Tuya Wi-Fi IR blaster local DP protocol (pure, testable).
lib/ir/ZosungIRProtocol.jsP3063 - Zosung / Tuya IR protocol helpers (pure, no Homey dependency).
lib/ir/irWizardSession.jsP2487 - Homey pair/repair session handlers for shared IR wizard HTML.
lib/layers/CrossLayerRedundancy.jsCrossLayerRedundancy (P207) Purpose (user doctrine): layers exist to compensate incompatible ZCL / DP / proprietary clusters, interview gaps, unsupported attrs from diags/crashes, and to confirm inbound/outbound data via
lib/layers/LayerInterface.jsSpec 004 - common contract for NON-native channels (Tuya DP 0xEF00, 0xE000-0xE002, manufacturer-specific clusters, raw frames).
lib/layers/LayerSignalFusion.jsLayerSignalFusion (P211) Intelligent gate when the same Homey capability is fed by two+ protocol layers (ZCL + Tuya DP, IAS + DP, voltage + ZCL battery, ...).
lib/layers/LegacyLayerAdapters.jsSpec 004 T2 - expose the existing low-level bridge (lib/LowLevelBridge.js) and the RX/TX chain (lib/layers/ProtocolRxTxChain.js) through the common layer contract (lib/layers/LayerInterface.js) without changing their beh
lib/layers/ProtocolRxTxChain.jsProtocolRxTxChain (P208 / P2270) ARCH / SSOT: Function table of every Zigbee/Tuya I/O path Homey may use.
lib/layers/ReconnectBurstCoalescer.jsPower-restore burst: ZCL switches dump relay + backlight + button-mode attributes in a few dozen ms.
lib/layers/UniversalLayerBootstrap.jsUniversalLayerBootstrap - soft-attach proprietary protocol layers that Unified* bases already wire, but bare TuyaZigbeeDevice lineages (lights, IR, DIY, TuyaSpecificCluster) often miss.
lib/layers/commitCapability.jscommitCapability - single RX funnel into CrossLayer confirmInbound / L14.
lib/learning/DpScaleLearner.jsDpScaleLearner - per-device memory of which scale (/1, /10, /100, /1000) the SmartDivisor auto-convert path keeps choosing for each unmapped DP (P3073 §3).
lib/lighting/AdaptiveLightingCurve.jsAdaptiveLightingCurve - pure math for the app-level adaptive lighting engine.
lib/lighting/AdaptiveLightingEngine.jsAdaptiveLightingEngine - ONE app-level, owned, bounded scheduler that makes every opted-in light follow the sun (P3067, inspiration: iGen 2026-10-26).
lib/lighting/ColorEffectManager.jsColorEffectManager - RGB Color Effects Inspired by fairecasoimeme/ZigWS2812_controller Provides stunning color effects for RGB lights Features: - Rainbow effect - Breathe effect - Strobe effect - Fade effect - Custom eff
lib/lighting/index.jsLighting Module - RGB Effects and Control
lib/managers/AdaptiveLightingManager.js_no header_
lib/managers/AlarmPolarityManager.jsAlarmPolarityManager - IAS / SOS / water / contact / motion polarity (MASTER_ONLY smart-learn).
lib/managers/AutonomousMigrationManager.js_no header_
lib/managers/BatchCapabilityUpdater.jsv9.0.40: Batch Capability Updater Collects multiple capability changes and applies them in a single batch to reduce UI update overhead and prevent rapid-fire SDK calls
lib/managers/CapabilityFallbackManager.jsCapabilityFallbackManager Provides robust fallback, sanitization, and interception for setCapabilityValue to protect Homey SDK from raw Zigbee anomalies, rogue data (e.g.
lib/managers/CircadianEngine.jsCircadianEngine - Solar Sync for enrolled lights (P92.110 / L99 smart features) Driven by DaylightAtmosphere + SolarElevation (real sun), not a clock guess.
lib/managers/DPCache.jsv9.0.40: DP Response Cache Caches last known DP values per device for timeout fallback and stale reads Helps maintain UI consistency during brief disconnections
lib/managers/DeviceAvailabilityManager.jsDeviceAvailabilityManager - v9.0.401 (P92.104) Availability monitoring inspired by zigbee2mqtt's availability feature and ZHA timeouts, adapted to Homey SDK3 and hardened for a 400+ driver app: - Every incoming frame mar
lib/managers/DriverMigrationManager.js_no header_
lib/managers/DynamicCapabilityManager.js_no header_
lib/managers/EnergyManager.jsEnergyManager - Comprehensive Energy Monitoring System Features: - Power threshold alerts (high/low) - Energy consumption tracking - Cost calculation - Daily/weekly/monthly statistics - Power factor monitoring - Overload
lib/managers/FeatureFallbackRouter.jsFeatureFallbackRouter - v9.0.407 (P92.109) Principle requested by the maintainer: EVERY native feature/flow must have a software fallback when the device does not support the native path, so the feature works on ALL driv
lib/managers/HomeModeManager.jsHomeModeManager - v9.0.409 (P92.113) Home modes (day/evening/night/away) inspired by Hubitat Mode Manager and SmartThings location modes - smarter than the references: - Auto transitions driven by the REAL sun (SolarElev
lib/managers/IASZoneEnhanced.jsIAS ZONE ENHANCED MANAGER Improved IAS Zone (cluster 1280/0x500) handling for: - Contact sensors - Motion/PIR sensors - Smoke detectors - Water leak sensors - Vibration sensors Based on Homey Apps SDK documentation: http
lib/managers/IASZoneManager.js_no header_
lib/managers/IEEEAddressManager.jsIEEEAddressManager - Centralized IEEE Address Management for Zigbee devices v5.5.807: SDK3 COMPLIANCE FIX - Per Homey documentation - Removed hardcoded fallback IEEE address (was causing enrollment failures) - Homey v8.1
lib/managers/IEEEAdvancedEnrollment.jsIEEEAdvancedEnrollment - Advanced IAS Zone enrollment Extends IEEEAddressManager with: - reEnrollCie: zero + write per ZCL 8.2.2.2.3 - sendProactiveEnroll: SDK3 best practice - setupEnrollListener: auto-respond to enroll
lib/managers/IntelligentDataManager.js[SMART] INTELLIGENT DATA MANAGER Système intelligent de gestion des données capteurs basé sur: - ZHA (Home Assistant Zigbee integration) - Zigbee2MQTT best practices - Tuya Gateway protocols - Zigbee Cluster Library spec
lib/managers/MotionCascadeManager.jsMotionCascadeManager - v9.0.408 (P92.110) Path lighting ((quoted passage, see the file header)) + autonomous auto-off, inspired by Hue motion-activated rooms and Xiaomi/Aqara gateway
lib/managers/MultiEndpointManager.jsMultiEndpointManager - Gestion devices multi-endpoint Résout: Bseed 2 gang -> Endpoint 2 pas configuré Configure reporting pour TOUS les endpoints
lib/managers/PowerManager.jsPowerManager - Intelligent AC/DC Power Management Handles power measurements, estimations, and dynamic capability management
lib/managers/PowerSourceDetector.js_no header_
lib/managers/PresenceSimulationManager.jsPresenceSimulationManager - v9.0.403 (P92.106) Inspired by Tuya Smart Life "random timing" schedules and Philips Hue Labs "presence mimicking": toggles lights at random intervals within a daily window so the home looks o
lib/managers/SensorSuppressionManager.jsSensorSuppressionManager - v9.0.402 (P92.105) Inspired by the Philips Hue app's "suppress sensor" flow action: temporarily mute a motion/presence sensor's flow triggers (e.g.
lib/managers/SmartBatteryManager.js_no header_
lib/managers/SmartDivisorManager.js+==============================================================================+ \| SMART DIVISOR MANAGER - v9.1.0 (Cross-Protocol) \| +==============================================================================+ \| W
lib/managers/SmartDriverAdaptation.js_no header_
lib/managers/SmartEnergyManager.jsSmartEnergyManager - measured vs estimated energy discovery (P108 + P2556 provenance) Lifecycle: 1.
lib/managers/UniversalFlowCardManager.jsUniversalFlowCardManager - Centralized registration for all Algorithmic/Smart flow cards.
lib/managers/UniversalVariantManager.jsUniversalVariantManager - v5.8.44 Dynamic capability detection for manufacturer variants.
lib/managers/VirtualEnergyEstimator.js+==============================================================================+ \| VIRTUAL ENERGY ESTIMATOR - v1.0.0 (Opus 4.6 Feature) \| +==============================================================================+
lib/managers/VirtualEnergyManager.js_no header_
lib/managers/availability-learning.jsavailability-learning - P3028 (master soak) Small pure helpers used by DeviceAvailabilityManager to learn how often each device really talks, so that a sleepy sensor or a remote is not reported "unavailable" just because
lib/managers/index.jsManagers Index - v5.5.797 Centralized exports for all system managers
lib/memory/BoundedCollections.jsP3068: drop-in bounded collections for long-lived runtime caches (Homey heap ~64 MB).
lib/memory/BoundedMap.jsP3023: BoundedMap - a Map with a HARD entry cap (LRU eviction) and an optional TTL.
lib/memory/CatalogStore.jsP3023: CatalogStore - one lazy, sharded, releasable view of the DP catalogue.
lib/memory/DeviceTrim.jsP3023: DeviceTrim - shrink one device's OPTIONAL in-memory caches under memory pressure.
lib/memory/MemoryBudget.js_no header_
lib/memory/SettingsBudget.jsP3312: a boot-time size budget for app settings.
lib/memory/budget-hooks.jsP3023: wire the app-wide MemoryBudget (one instance per app) to the optional caches.
lib/mesh/DriverConsequenceTiering.js=========================================================================== DriverConsequenceTiering.js - Adaptation du consequence_class de Polos Classifie chaque driver Tuya par niveau de conséquence pour tiering d'ove
lib/mixins/ButtonCaptureCascade.jsButtonCaptureCascade (P2223 / P2228 / P2395) Complements PhysicalButtonMixin with declarative L1-L8 capture levels.
lib/mixins/CapabilityManagerMixin.js_no header_
lib/mixins/CoreCapabilityMixin.jsCoreCapabilityMixin - v6.1.1 (P2330) Provides common helper methods to drivers that might not inherit correctly from BaseUnifiedDevice.
lib/mixins/DeviceEnhancementsMixin.js_no header_
lib/mixins/LegacyButtonDetectionMixin.js+==============================================================================+ \| LegacyButtonDetectionMixin v9.0.47 \| \| Fallback de détection boutons porté depuis stable-v5 + masterwlan \| +=========================
lib/mixins/LockControlMixin.jsP130 - Writable lock control for devices that expose locked.
lib/mixins/MultiGangMixin.jsMultiGangMixin - v7.0.22 Native Homey SDK 3 grouping for multi-button/gang Tuya devices.
lib/mixins/NamedButtonFallback.jsv9.0.411 (P92.119): Named maintenance-button fallbacks.
lib/mixins/NaturalLightMixin.js_no header_
lib/mixins/PeriodicAutoEnricherMixin.jsPeriodicAutoEnricherMixin - v5.8.44 REWRITE VALUE REFRESH ONLY - no longer adds capabilities.
lib/mixins/PhysicalButtonMixin.js_no header_
lib/mixins/PowerSwitchFeaturesMixin.jsPowerSwitchFeaturesMixin - v1.0.0 Adds power-on behavior (DP 12) and backlight mode (DP 2) to Tuya switches/plugs.
lib/mixins/SafeCapabilityMixin.jsSafeCapabilityMixin - v9.0.240 Adds safeSetCapabilityValue(capability, value) to every device.
lib/mixins/SmartEnrichmentMixin.js_no header_
lib/mixins/SmartFeatureEmulationMixin.js_no header_
lib/mixins/SmartKnobRotationMixin.jsSmartKnobRotationMixin (P2448 / P2449) Shared rotate RX + flow UX for smart_knob / smart_knob_switch / rotary siblings.
lib/mixins/SonoffEnergyMixin.js_no header_
lib/mixins/SonoffEwelinkMixin.js_no header_
lib/mixins/SonoffSensorMixin.js_no header_
lib/mixins/SonoffTRVZBMixin.js_no header_
lib/mixins/TuyaDeviceMixin.js_no header_
lib/mixins/TuyaThermostatEnhancedMixin.jsTuyaThermostatEnhancedMixin - v1.0.0 Dynamic thermostat mode injection for Tuya Zigbee radiators/thermostats.
lib/mixins/UnifiedButtonEngine.js=========================================================================== UnifiedButtonEngine.js - VERSION COMPACTE UNIFIÉE Combine le MEILLEUR de toutes les versions (v5.11.x -> master v9.x) Toutes les root causes rés
lib/mixins/VirtualButtonMixin.jsVirtualButtonMixin - Homey app UI <-> physical multi-gang devices Contract: 1.
lib/mixins/VirtualEnergyMeterMixin.js_no header_
lib/mixins/ZigbeeHealthMixin.js_no header_
lib/multichannel/ChannelAdapters.jslib/multichannel/ChannelAdapters.js - v1.0 (P37.1)
lib/multichannel/MultiChannelManager.jslib/multichannel/MultiChannelManager.js - v1.0 (P37.2)
lib/multichannel/ParallelDetector.jslib/multichannel/ParallelDetector.js - v1.0 (P37.3)
lib/multichannel/ReceptionManager.jslib/multichannel/ReceptionManager.js - v1.1 (P211)
lib/multichannel/TransmissionManager.jslib/multichannel/TransmissionManager.js - v1.0 (P37.4)
lib/multichannel/index.jslib/multichannel/index.js - v1.0 (P37.8)
lib/ota/HomeyDeviceUpdates.jsHomey Device Updates helper (P2357 / P2359) Native Zigbee OTA via Homey >=13.2 + Mobile >=9.10.
lib/ota/OTARepository.jsOTARepository - Firmware Image Repository Inspired by fairecasoimeme/zigbee-OTA and Zigbee2MQTT OTA guide Multi-source OTA firmware repository for Zigbee devices Features: - Multi-source support (Koenkk, fairecasoimeme)
lib/ota/OTAUpdateManager.jsOTAUpdateManager - OTA Update Orchestration Inspired by fairecasoimeme/zigbee-OTA Manages OTA firmware updates for Zigbee devices Features: - Automatic update checking - Progress monitoring - Retry mechanism - User notif
lib/ota/TuyaMcuOtaFrames.jsP2932 - Tuya EF00 MCU OTA frames (observation only).
lib/ota/TuyaXiaomiOTAProvider.js_no header_
lib/ota/index.jsOTA Module - Firmware Updates
lib/overlays/LumiVibrationOverlay.jsP2934 - Optional Aqara DJT11LM (LUMI / lumi.vibration.aq1) overlay.
lib/pairing/AntiFallbackGeneric.jsAntiFallbackGeneric - Prevents zigbee generic fallback
lib/pairing/AutoDetectionPairingWizard.jsAutoDetectionPairingWizard - v1.0.0 Enhanced pairing flow with automatic device detection Features: - Auto-detect device type from manufacturer/product ID - Suggest optimal driver based on device capabilities - Auto-conf
lib/pairing/DynamicEndpointDiscovery.jsDynamicEndpointDiscovery - Find functional endpoint dynamically Problem: Many Tuya devices don't use endpoint 1
lib/pairing/EnrichmentScheduler.jsEnrichmentScheduler - Post-pairing enrichment with retry & fallback CRITICAL: Implements retry logic with exponential backoff - Time sync (immediate) - IAS binding (with fallback to polling) - Cluster discovery (all endp
lib/pairing/EventDeduplicator.jsEventDeduplicator - Prevents duplicate flow triggers
lib/pairing/LearnmodeTemplates.jsLearnmodeTemplates (P2498) WHY(P215): Athom owns Zigbee pair UI - our only pairing UX surface is zigbee.learnmode.instruction (+ image).
lib/pairing/PermissiveMatchingEngine.js_no header_
lib/pairing/TuyaTimeSyncEngine.jsTuyaTimeSyncEngine - Critical for Tuya devices that wait for time sync Many Tuya sensors won't report until they receive time sync
lib/pairing/TwoPhaseEnrichment.jsTwoPhaseEnrichment - 2-phase pairing for Tuya devices Phase 1: Accept device (minimal matching) Phase 2: Post-pairing enrichment
lib/pairing/UXMessages.jsUXMessages - User-friendly status messages for pairing Reduces 80% of forum tickets by showing clear status
lib/pairing/UniversalPairingManager.jsUniversalPairingManager - Universal Device Pairing Inspired by fairecasoimeme/ZiGate pairing patterns Intelligent device identification and configuration Features: - Automatic device type detection - Quirk application -
lib/pairing/UserMisattributionRegistry.jsUserMisattributionRegistry - community wrong-driver / pairing conflict cases.
lib/pairing/index.jsPairing Module - Universal Pairing System
lib/pairing/logPairingIdentity.jslogPairingIdentity.js (P2366) WHY: Unknown Zigbee Device diags often lack mfr+pid - emit at pairing for next diag.
lib/performance/AutoDiscoveryPollingOptimizer.jsAuto-Discovery Polling Optimization - PERFORMANCE #63 Optimizes device discovery polling with: - Adaptive polling intervals based on network activity - Priority-based device scanning - Batch discovery requests - Smart co
lib/performance/BootBudget.jsBootBudget - keep Homey Pro JS heap + RSS free for driver onNodeInit, then run the same features later when RAM and radio allow it.
lib/performance/DiagnosticLoggerRotation.jsDiagnosticLogger Buffer Rotation - PERFORMANCE #70 Manages diagnostic log buffer with automatic rotation: - Size-based rotation (rotate when buffer exceeds limit) - Time-based rotation (rotate every N minutes) - Compress
lib/performance/FragmentBufferMemoryLimiter.jsFragment Buffer Memory Limit - PERFORMANCE #64 Monitors and limits memory usage of fragment reassembly buffers: - Per-device buffer size tracking - Global memory budget enforcement - LRU eviction when limits exceeded - M
lib/performance/IntelligentLazyLoad.jsIntelligentLazyLoad - Ship M / P2586 (Homey-safe) WHY: Homey Pro ~64MB RSS - defer/scale, never eager-load giant JSON at boot.
lib/performance/MemoryLeakDetector.jsMemory Leak Detection - PERFORMANCE #74 Monitors heap usage for memory leaks: - Periodic heap snapshots - Growth rate analysis - Object count tracking - Leak suspicion scoring
lib/performance/PerformanceOptimizer.js_no header_
lib/performance/SmartClusterEngineThrottling.jsSmartClusterEngine Throttling - PERFORMANCE #69 Intelligent throttling for cluster read/write operations: - Per-device operation queuing - Adaptive rate limiting based on network congestion - Priority-based operation sch
lib/performance/StartupTimeProfiler.js_no header_
lib/performance/TuyaDPCompression.jsTuyaDP JSON Compression - PERFORMANCE #67 Compresses and optimizes Tuya DP data storage: - Dictionary encoding for repeated string values - Delta encoding for sequential numeric values - Run-length encoding for repeated
lib/performance/index.js_no header_
lib/presence/AdvancedPresenceEngine.jsAdvancedPresenceEngine - Multi-technology fusion and occupancy prediction Combines: - RoomSignalAggregator capability events - MotionAwarePresenceDetector / ZigbeeHealthMixin RSSI/LQI inputs - SignalCartography coverage
lib/presence/NetworkPresenceCorrelation.jsNetworkPresenceCorrelation - WiFi / Bluetooth / router-based presence proxy Homey SDK3 does not expose raw WiFi RSSI, ARP tables, or Bluetooth scans, so this module uses indirect signals that are available inside Homey a
lib/presence/PresenceConfidenceScorer.jsPresenceConfidenceScorer - Multi-signal confidence scoring engine v1.0.0: Calculates presence confidence (0-100%) from multiple device signals.
lib/presence/RoomSignalAggregator.jsRoomSignalAggregator - Listens to device capability changes and maps them to presence signals v1.0.0: Subscribes to Homey device capability events, maps them to SIGNAL types, and feeds them into PresenceConfidenceScorer.
lib/presence/SignalCartography.jsSignalCartography - Zigbee LQI-based signal mapping engine Builds a live radio map of the home from device-reported LQI values.
lib/presence/SignalTriangulation.jsSignalTriangulation - Zigbee signal-space room estimation This does NOT perform physical RF triangulation.
lib/presence/VirtualPresenceDetector.jsVirtualPresenceDetector - Core engine for inferring room presence v1.0.0: Orchestrates PresenceConfidenceScorer + RoomSignalAggregator to provide real-time room occupancy estimation without a dedicated presence sensor.
lib/profile-engine/ProfileEngine.jsP-KB2 declarative device profile engine (optional, additive, kill switch).
lib/profile-engine/ProfileLayerAttach.jsP-KB3 profile layer - wires the declarative profile engine into TuyaZigbeeDevice as an OPTIONAL, ADDITIVE layer.
lib/profile-engine/availability.jsP-KB2 availability (idea from Z2M availability feature: active vs passive timeouts).
lib/profile-engine/groups.jsP-KB3 Zigbee groups (Z2M groups idea, own implementation): opt-in membership via setting pe_group_id (1..0xFFF7).
lib/profile-engine/options.jsP-KB2 generic report options (own implementation of ideas from Zigbee2MQTT generic device options: debounce, throttle, filtered_attributes, optimistic - https://www.zigbee2mqtt.io/guide/configuration/devices-groups.html)
lib/profile-engine/transforms.jsP-KB2 profile engine - value transforms (own implementation).
lib/profile-engine/transition.jsP-KB3 transition (Z2M "transition" option, own implementation): optional transitionTime (1/10 s) for level/color commands.
lib/profiles/LinptechES1Profile.jsP2258 / P2261 - Linptech ES1ZZ(TY) / Moes ZSS-LP-HP02-MS mmWave presence (TS0225) WHY: Settings must NOT go to EF00 DP9 (distance RX collision).
lib/profiles/ZsSf00Profile.jsP3019: Arteco ZS-SF00 soil fertility sensor - exact couple A89G12C \| Arteco.
lib/protocol/BindingPersistence.jsBinding Persistence - PROTOCOL #11 Persists Zigbee binding state across restarts and handles: - Binding state persistence to device store - Automatic rebinding on device rejoin - Binding conflict resolution - Group bindi
lib/protocol/BitmapMultiFieldParser.jsBitmap Multi-Field Parser - PROTOCOL #3 Parses Tuya bitmap/byte-field DPs into individual boolean/numeric sub-fields.
lib/protocol/CommunicationPathFinder.jsARCH / SSOT: Rank Zigbee/Tuya I/O paths for flexible device communications (P2270).
lib/protocol/DPFragmentationHardening.jsDP Fragmentation Hardening - PROTOCOL #2 Robust reassembly of fragmented Tuya DP payloads with: - Multi-frame reassembly with checksum validation - Timeout-based session cleanup - Duplicate fragment detection - Out-of-or
lib/protocol/HardwareDetectionShim.jsHardwareDetectionShim - Runtime hardware detection & capability correction Détecte le hardware réel d'un device et corrige automatiquement les capabilities si le driver assigné ne correspond pas au hardware.
lib/protocol/HybridProtocolArbitrator.js_no header_
lib/protocol/HybridProtocolManager.js+==============================================================================+ \| [MIX] HYBRID PROTOCOL MANAGER - v5.5.41 INTELLIGENT PROTOCOL DETECTION \| +=============================================================
lib/protocol/IntelligentProtocolDetect.jsIntelligentProtocolDetect - single source of truth for ZCL <-> Tuya EF00 (0xEF00).
lib/protocol/IntelligentProtocolRouter.js_no header_
lib/protocol/KnownProtocolsDatabase.js_no header_
lib/protocol/MoesZemismartActionMerge.jsP2834 - Moes / Zemismart complementary action merge (UNION, never degrade).
lib/protocol/OccupancySensingEnhancement.jsOccupancy Sensing Enhancement - PROTOCOL #5 Enhanced motion/occupancy detection with: - Configurable hold time (auto-clear after N seconds) - Multi-zone occupancy aggregation - Sensitivity levels (low/medium/high) - Pres
lib/protocol/ScheduleDataEncoder.jsSchedule Data Encoder - PROTOCOL #9 Encodes/decodes Tuya timer and schedule data for thermostats, switches, curtains.
lib/protocol/ZigbeeProtocolComplete.js_no header_
lib/quirks/FirmwareQuirks.jsFirmwareQuirks - pair-scoped (mfr + pid) workarounds for known firmware bugs.
lib/quirks/QuirksDatabase.jsQuirksDatabase - Device-Specific Fixes and Workarounds Inspired by fairecasoimeme/zha-device-handlers Contains device quirks, workarounds, and special handling Quirk types: - forceOnOff: Force OnOff cluster instead of Le
lib/registry/CapabilityMetadata.jsv9.0.40: Capability Metadata Registry (Z2M pattern) Exposes min/max/unit/decimals for capabilities Used by flow cards, UI, and validation
lib/registry/CentralizedDPRegistry.jsCentralizedDPRegistry - v1.0.0 Single source of truth for all Tuya DataPoint mappings Features: - Consolidated DP definitions from multiple sources - Priority-based conflict resolution - Device type grouping - Runtime qu
lib/registry/DeviceProfileRegistry.js_no header_
lib/registry/index.jsDevice Profile Registry - Index v5.8.80 - Centralizes ALL device profiles and exports registry singleton
lib/registry/profiles/buttons.jsButton Device Profiles - v5.8.80 Covers: TS0041-TS0046, TS004F, scene switches
lib/registry/profiles/covers.jsCover/Curtain Device Profiles - v5.8.80 Covers: TS0601 curtains, TS130F ZCL, TS0302, blind motors
lib/registry/profiles/lights.jsLight Device Profiles - v5.8.80 Covers: TS0501-TS0505 dimmers/bulbs, TS0601 LED strips
lib/registry/profiles/plugs.jsPlug Device Profiles - v5.8.80 Covers: TS011F energy plugs, TS0121, TS0601 plugs, water valves
lib/registry/profiles/sensors.jsSensor Device Profiles - v5.8.80 Covers: contact, motion, water leak, climate, smoke, vibration, illuminance
lib/registry/profiles/switches.jsSwitch Device Profiles - v5.8.80 Static profiles for all known switch variants Covers: TS0001-TS0004, TS0011-TS0014, TS0601 switches, TS0726
lib/registry/profiles/thermostats.jsThermostat Device Profiles - v5.8.80 Covers: TRVs, thermostats, heater controllers (mostly TS0601)
lib/reliability/ZigbeeResilience.js_no header_
lib/resilience/FirmwareQuirkCompensator.jsFirmwareQuirkCompensator (P2392) - fleet-wide Homey/Tuya firmware gap compensations.
lib/resilience/HomeyGapCompensator.jsHomeyGapCompensator (P2222 / P2224 / P2228) - Homey app runtime only.
lib/scraper/FreeScrapeStack.jsFREE SCRAPE STACK - keyless-first multi-reader orchestrator ========================================================================== Philosophy: burn $0 by default.
lib/scraper/reader-fallback.jsREADER FALLBACK - free web-reader chain for fetches blocked by the origin.
lib/scraper/smart-fetch.jsSMART FETCH - P55 unified smart scraper lib ========================================================================== One entry point for ALL scrapers, crawlers, dumpers, and fetchers in the project.
lib/security/CommandRateLimiter.jsCommand Rate Limiting Per User - SECURITY #79 Rate limits device commands to prevent abuse: - Per-user command rate tracking - Per-device command rate tracking - Burst allowance with sustained rate limiting - Adaptive ra
lib/security/DPValueInputValidator.jsDP Value Input Validation - SECURITY #78 Validates incoming DP values before processing: - Type checking - Range validation - Injection prevention - Rate-based anomaly detection
lib/security/LocalKeyValidator.jsLocal Key Validation - SECURITY #76 Validates Tuya local encryption keys: - Format validation (16-byte hex) - Key strength checking - Key rotation tracking - Encrypted communication verification
lib/security/SecurityGuard.jslib/security/SecurityGuard.js - v1.0 (P37.7)
lib/security/UDPDiscoveryKeyRotation.jsUDP Discovery Key Rotation - SECURITY #83 Manages rotation of UDP discovery keys: - Scheduled key rotation - Key derivation from master key - Grace period for old key acceptance - Discovery packet signing/verification
lib/security/UntrustedContentGuard.jsUntrustedContentGuard (P2527) WHY: Forum / scrape / Gmail / GitHub issue bodies are untrusted DATA - never instructions.
lib/security/index.jsSecurity Module Index - v5.5.797 Re-exports security-related managers from their actual locations Using lazy loading to avoid circular dependencies
lib/sensors/ContactDefaultInvert.jsWHY(P3011): contact_sensor_zigbee + sensor_contact_water had an invertedByDefault list checked with includesCI(mfr, id) - argument order reversed (includesCI expects (array, value)), so it was ALWAYS false and the v5.1
lib/sensors/ContactSourceLatch.jsContactSourceLatch - single source of truth for alarm_contact (P2763).
lib/sensors/IasZoneTypeRouter.jsIAS zoneType -> Homey alarm capability (ZCL spec 8.2.2.2.1.3).
lib/sensors/IntelligentDPAutoDiscovery.js_no header_
lib/sensors/IntelligentPresenceInference.jsIntelligentPresenceInference - v8.0.0 Calculates presence from multiple data sources when DP1 returns null Sources: Z2M #27212, #30326, #8939, HA t/862007, ZHA #3969
lib/sensors/RadarDirectMode.jsP2791 / GH#550 - radar "direct mode" (per-device opt-in setting radar_direct_mode).
lib/sensors/SoilDpGuards.jsP3021c - forum #2093 (blutch32, diag 3690dfdb, app v9.0.13, mfr A89G12C).
lib/sensors/SoilTempScale.jsWHY(P3011): soil drivers checked includesCI(mfr, '_tze200_oitavov2') - reversed argument order, always false, so oitavov2 DP5 always went through the legacy scaling branch.
lib/session/SessionManager.js_no header_
lib/settings/migrateSettingKey.jsRead the old settings key, write the new one, leave the old value in place.
lib/shims/color-space-shim.jsColor Space Shim v5.8.25 Fixes: Cannot find module './rgb' error in Homey sandbox
lib/smart/AdaptiveBackoff.jsP3023: adaptive re-probe backoff (pure).
lib/smart/ClusterModel.jsClusterModel - Modèle de données pour les clusters intelligents Types de clusters: - room: pièce implicite (devices corrélés spatialement) - functional: groupe fonctionnel (toutes les lumières, tous les switches) - energ
lib/smart/ClusterScoring.jsClusterScoring - Moteur de scoring pour le clustering intelligent Calcule la similarité entre 2 devices en croisant 5 signaux: A.
lib/smart/ClusterStorage.jsClusterStorage - Persistance des clusters intelligents Stocke les clusters dans Homey settings (homey.settings) pour survivre aux redémarrages de l'app.
lib/smart/ConfidenceModel.jsP3023: confidence scoring for interpretations (pure).
lib/smart/CoupleKnowledge.js_no header_
lib/smart/SmartClusterEngine.jsSmartClusterEngine - Moteur de clustering intelligent Architecture demandée: lib/smart/ +-- SmartClusterEngine.js <- ce fichier +-- ClusterModel.js +-- ClusterScoring.js +-- ClusterStorage.js +-- SmartCoordinator.js Pipe
lib/smart/SmartCoordinator.jsSmartCoordinator - Orchestrateur des Smart Features Centralise: - SmartEnergyEngine (estimation conso sans capteur) - PresenceEngine (détection présence sans capteur) - SmartClusterEngine (clustering intelligent de devic
lib/smart/SoakFlags.jsP3023: behaviour changes that SOAK on master before reaching stable-v5 / bastien-home.
lib/smart/ValueAnomaly.jsP3023: generic value-anomaly detection for reported measurements (per device, bounded).
lib/smart/index.jslib/smart/ - Module Smart Features Architecture: lib/smart/ +-- index.js <- Point d'entrée +-- SmartCoordinator.js <- Orchestrateur principal +-- SmartClusterEngine.js <- Moteur de clustering intelligent +-- SmartEnergyE
lib/smartadapt/SuggestionEngine.jsSuggestionEngine - Non-Destructive Smart Adaptation Instead of automatically removing/adding capabilities, this engine: 1.
lib/suppress-punycode.jsSuppress punycode deprecation warning (DEP0040) The punycode built-in module is deprecated since Node.js 21 in favor of userland alternatives.
lib/telemetry/DataProvenance.jsDataProvenance (P2556 -> P2558) - measured-first + elegant estimate/calc/predict UX WHY(P215): - Pourquoi: prioritize precise real measurements; never confuse with smart estimate, complete calculation, or forward predict
lib/telemetry/LocalSmartEnergyLearner.jsLocalSmartEnergyLearner (P2560) - on-device habit + power learning (no cloud AI).
lib/templates/BEST_PRACTICE_DEVICE_TEMPLATE.jsSDK3 Best Practice Device Template This template follows all Athom SDK3 best practices: - CLUSTER constants instead of numeric IDs - reportOpts integrated in registerCapability - triggerFlow() method for flow cards - JSD
lib/templates/TuyaTS0601DeviceTemplate.jsTuyaTS0601DeviceTemplate - v5.3.15 CORRECT implementation template for Tuya TS0601 devices in Homey SDK3 USE THIS AS REFERENCE for all TS0601 drivers! KEY PRINCIPLES: 1.
lib/temporal/EvolutionTracker.jsEvolutionTracker.js - Temporal Consciousness: Evolution Engine Tracks the evolution of key project metrics over time: - Driver count (Zigbee + WiFi) - Fingerprint count (manufacturerName + productId) - Capability count -
lib/temporal/ProjectTimeline.jsProjectTimeline.js - Temporal Consciousness: Timeline Engine Tracks all project evolution over time: commits, PRs, issues, forum posts.
lib/temporal/RegressionDetector.jsRegressionDetector.js - Temporal Consciousness: Regression Engine Detects regressions in the project by analyzing: - Fix reversions (a fix commit whose changes are later undone) - Bug reintroduction (same issue number re
lib/temporal/index.jsTemporal Consciousness System - Index Exports the three temporal engines as a unified API: - ProjectTimeline (T0): commit/PR/issue history - EvolutionTracker (T1): metric snapshots & trends - RegressionDetector (T2): reg
lib/testing/TestFramework.jsTestFramework - v1.0.0 Unified test infrastructure for Tuya Zigbee drivers Features: - Mock DP report generation - Capability update verification - Flow card trigger testing - Device simulation - Assertion helpers
lib/testing/index.js_no header_
lib/tuya-camera/TuyaCameraClient.js_no header_
lib/tuya-engine/VirtualBidirectionalSync.js+==============================================================================+ \| [SYNC] VIRTUAL BI-DIRECTIONAL PHYSICS (Mode B) \| +==============================================================================+ \| Ha
lib/tuya-engine/converters/battery.jsBattery Converter - SDK3 Optimized Handles battery percentage conversions: - Zigbee standard: 0..200 (0.5% resolution) - Homey capability: 0..100 (1% resolution) - Tuya DP: Usually 0..100 directly SDK3 BEST PRACTICES: -
lib/tuya-engine/converters/dim.js_no header_
lib/tuya-engine/converters/humidity.js_no header_
lib/tuya-engine/converters/illuminance.jsIlluminance Converter Handles illuminance conversions: - Zigbee: measuredValue in log-lux format - Homey: lux (linear scale) - Tuya DP: Usually lux directly
lib/tuya-engine/converters/index.jsCONVERTERS INDEX Export tous les converters disponibles
lib/tuya-engine/converters/onoff.js_no header_
lib/tuya-engine/converters/temperature.js_no header_
lib/tuya-engine/index.jsTUYA DP ENGINE - Production Ready Moteur universel pour devices Tuya (TS0601 et autres) Architecture: - fingerprints.json: manufacturer+model -> profile - profiles.json: profile -> capabilities + dpMap + options - conver
lib/tuya-engine/traits/index.js_no header_
lib/tuya-engine/utils/dp.js_no header_
lib/tuya-engine/utils/logger.jsLeveled logging utility for Tuya Zigbee devices LOG_LEVEL environment variable controls verbosity: - 'info' (default): Essential events only - 'debug': Detailed operational information - 'trace': Full packet-level inform
lib/tuya-local/AirQualityVerdict.jsP2647 - WiFi AQI verdict helpers (com.tuyalocal Store Test inspiration).
lib/tuya-local/CloudDpTable.jsP2956 - Read a cloud DP table carried on a discovered device, when one is present.
lib/tuya-local/CoverModeInference.jsP2950 - Roller-shutter switch that only shows DP1.
lib/tuya-local/CoverPositionSource.jsP2952 - Target vs actual position on Wi-Fi curtain motors.
lib/tuya-local/CoverTravelEstimator.jsCoverTravelEstimator - opt-in time-based position for Wi-Fi covers that only expose open/close/stop (no position DP).
lib/tuya-local/DPValueParser.js_no header_
lib/tuya-local/DeviceFingerprintDB.jsDeviceFingerprintDB.js - v1.0.0 THE "CLOUD-LESS / IA-LESS" MASTER DATABASE.
lib/tuya-local/Dp17EnergyHandler.jsP2705 - glue between TuyaLocalDevice and lib/energy/WifiDp17Energy (see there for WHY).
lib/tuya-local/EvChargerChargeHistory.jsEvChargerChargeHistory.js - P2642 complementary WHY: Phase-JSON "e"/"d" fields are ambiguous; completed charge records prove kWh.
lib/tuya-local/EvChargerPhaseJson.jsEvChargerPhaseJson.js - P2641 complementary WHY: Some Tuya EV chargers (category qccdz) send all phase measurements as one JSON DP (often 102) instead of packed binary phase blocks.
lib/tuya-local/GenericDpAutoMapper.jsP2930 - Last-resort DP guesser for unknown WiFi products (no category, no catalog hit).
lib/tuya-local/LanRepairStatus.jsP3072c: what the repair screen shows for a Tuya Wi-Fi device, and a one-shot re-probe.
lib/tuya-local/LocalConnectionGate.jsP2930 - One LAN session per Tuya device id, app-wide.
lib/tuya-local/LocalDeviceInsights.jsP2951 - Glue between the P2950 inference modules and the device / pairing flow.
lib/tuya-local/LocalIpSettings.jsP3072 - one IP for a Wi-Fi Tuya device, whatever setting key holds it.
lib/tuya-local/LocalTuyaOptions.jsP3080 - opt-in LAN options, ideas from localtuya (rospogrigio/localtuya, xZetsubou/hass-localtuya).
lib/tuya-local/ManualEntryNormalizer.jsP2931 - Normalise what a user types in the manual LAN pairing / repair form.
lib/tuya-local/MultiSocketInference.jsP2950 - Power strip paired as a single plug (only DP1 driven).
lib/tuya-local/OemEnumTokens.jsP2647 - OEM enum tokens (com.tuyalocal Cloud Lookup lesson).
lib/tuya-local/SupportBundle.jsP2950 - Support-bundle style diagnostic export for a Tuya LAN device.
lib/tuya-local/TinyTuyaImport.jsP2930 - Import local keys from a tinytuya wizard export (devices.json / snapshot.json, jasonacox/tinytuya, MIT) or a tuya-cli / localtuya style list.
lib/tuya-local/TuyaAuthCatalog.jsTuyaAuthCatalog.js (P2409) SSOT for Tuya / SmartLife cloud auth regions, app schemas, and device-list APIs.
lib/tuya-local/TuyaCloudAPI.jsv5.12.7: TuyaCloudAPI - Tuya Open API client for WiFi device discovery Pattern from jurgenheine/com.tuya.cloud + Drenso/com.tuya2 Used during pairing to discover devices on the user's Tuya account
lib/tuya-local/TuyaCloudMQTT.jsv5.12.7: TuyaCloudMQTT - MQTT real-time updates for Tuya Cloud devices
lib/tuya-local/TuyaCommandPlan.jsP2930 - Which Tuya LAN command to use, per protocol and firmware family.
lib/tuya-local/TuyaDeviceDiscovery.js_no header_
lib/tuya-local/TuyaDeviceTemplates.jsTuyaDeviceTemplates - pure, side-effect-free helpers that translate between Homey capability values and the value conventions seen on Tuya Wi-Fi (LAN protocol) devices.
lib/tuya-local/TuyaDpDetector.js_no header_
lib/tuya-local/TuyaGatewayHub.jsP2932 - One shared LAN client per Tuya WiFi gateway; each sub-device gets a channel that filters by cid.
lib/tuya-local/TuyaKeyTypes.jsTuyaKeyTypes.js (P2408) Document + normalize all Tuya WiFi credential shapes used on Homey.
lib/tuya-local/TuyaLocalClient.js_no header_
lib/tuya-local/TuyaLocalDevice.js_no header_
lib/tuya-local/TuyaLocalDriver.js_no header_
lib/tuya-local/TuyaPairingOrchestrator.jsTuyaPairingOrchestrator.js (P2409 + P2411) Max discovery: UDP burst + mDNS + TinyTuya TCP/6668 force scan + cloud<->LAN match.
lib/tuya-local/TuyaProtocolVersions.jsP2930b - What a Tuya "version" label really means, and how to fall back.
lib/tuya-local/TuyaQuirk.jsv9.0.40: TuyaQuirk - ZHA-inspired quirk class for WiFi Tuya devices Pattern from zhaquirks/tuya/__init__.py Provides device-specific overrides for firmware quirks
lib/tuya-local/TuyaReconnectPolicy.jsTuyaReconnectPolicy - pure helpers for LAN reconnect pacing and sleepy-device availability.
lib/tuya-local/TuyaShadowPulsar.js_no header_
lib/tuya-local/TuyaSharingClient.jsTuyaSharingClient.js - Smart Life / Tuya Smart "User Code + QR" account link.
lib/tuya-local/TuyaSmartLifeAuth.jsTuyaSmartLifeAuth.js (P2409) SmartLife / Tuya Smart / IoT Platform auth for local_key extraction (pairing only).
lib/tuya-local/TuyaTcpForceScan.jsTuyaTcpForceScan.js (P2411) WHY: Silent 3.5 / filtered-UDP devices still listen on TCP/6668 (TinyTuya Force Scan).
lib/tuya-local/TuyaUDPDiscovery.js_no header_
lib/tuya-local/TuyaUserLogin.jsTuyaUserLogin.js (P2471) SSOT for Smart Life / Tuya Smart Easy Login identity + country/region heuristics.
lib/tuya-local/TuyaWhiteLabelCatalog.jsTuyaWhiteLabelCatalog.js - Wi-Fi brands that ship Tuya modules under their own app.
lib/tuya-local/TuyaWiFiHybridManager.jsv9.0.40: DEPRECATED - This module is currently unused (dead code).
lib/tuya-local/TuyaZigbeeBridge.jsWHY(P2656): Local control of Zigbee sub-devices via Tuya WiFi gateway (cid).
lib/tuya-local/UdpDiscoveryKeys.jsUdpDiscoveryKeys.js (P2367 + P2408) Shared Tuya UDP discovery crypto - SSOT for TuyaUDPDiscovery + TuyaDeviceDiscovery.
lib/tuya-local/WiFiDPRegistry.jsWiFiDPRegistry.js (P2367 + P2407 + P2619) Product/category -> DP capability hints (tuya-local / TinyTuya / LocalTuya / com.tuyalocal).
lib/tuya-local/WifiDriverWiring.jsP2954 - Driver-side wiring for the P2950/P2953 helpers.
lib/tuya-local/WifiLanLessons.jsP2953 - Further lessons from the Tuya Local Homey thread (topic 154077, author Andi), rewritten in our own words.
lib/tuya-local/normalizeTuyaUsername.jsP2476 - Normalize Smart Life / Tuya Smart username (email OR phone).
lib/tuya-local/tuya-local-wizard.js_no header_
lib/tuya-local/wifiLanReliabilitySettings.jsP2619 / P2642 - WiFi LAN reliability settings (complementary from andiwirz/com.tuyalocal).
lib/tuya/BatteryMixin.jsIts functionality has been consolidated into UnifiedBatteryHandler.js.
lib/tuya/DataRecoveryManager.js_no header_
lib/tuya/DeviceFingerprintDB.js============================================================================== UNIVERSAL ZIGBEE DEVICE FINGERPRINT DATABASE ============================================================================== v8.0.0: Externali
lib/tuya/DpByteArrayProfiles.jsDpByteArrayProfiles - parse Tuya DP type 0 (RAW / byte_array) per locked couple.
lib/tuya/DpCoalescer.jsWHY(2026-10-10): Tuya light controllers (Gledopto SPI, TS0601 RGB) drop or mis-apply bursts of DP writes and sometimes freeze.
lib/tuya/Ef00MultiGangProfiles.jsP2485 - EF00 multi-gang profile heuristics (Z2M-locked couples).
lib/tuya/EnergyJumpGuard.js+==============================================================================+ \| ENERGY JUMP GUARD - Defensive cumulative-energy check \| +==============================================================================
lib/tuya/EnrichedDPMappings.js_no header_
lib/tuya/FaultBitmapDecoder.jsv9.0.40: Fault Bitmap Decoder Inspired by Z2M's fault bitmap decoding for Tuya circuit breakers and water meters Decodes bitfield fault codes into human-readable descriptions v9.0.40+: Extended with Z2M's full 17-fault c
lib/tuya/GlobalTimeSyncEngine.jsGlobalTimeSyncEngine - Time sync for Tuya devices Supports configurable time epoch: - Unix epoch (1970): seconds since 1970-01-01 (standard Unix/Linux) - Tuya/Zigbee epoch (2000): seconds since 2000-01-01 (ZCL standard)
lib/tuya/HobeianZg301zHeal.jsP2632 - HOBEIAN ZG-301Z wall module heal (Bastien kitchen light) Symptom: light turns off ~5s after ON without a second click.
lib/tuya/IntelligenceHealth.js_no header_
lib/tuya/LocalTuyaEntityHandler.js_no header_
lib/tuya/LocalTuyaInspired.jsLocalTuyaInspired.js - v5.5.682 Inspired by LocalTuya + TinyTuya
lib/tuya/LocalWiFiTuyaBridge.js[BRIDGE] LocalWiFiTuyaBridge - v2.0.0 Inspired by LocalTuya, this bridge allows the Universal Tuya Engine to manage WiFi devices via local network communication.
lib/tuya/MCUFormatDatabase.js_no header_
lib/tuya/MCUVersionHelper.jsMCUVersionHelper - TS0601 init: optional mcuVersionRequest (0x10) then dataQuery (0x03).
lib/tuya/MagicPacketRegistry.jsMagicPacketRegistry - restored from pre-P92.17 (was deleted as "dead" but profiles were never elevated).
lib/tuya/PassiveDpRx.js_no header_
lib/tuya/PayloadNormalizer.jsP2972 - PayloadNormalizer: turn any "shape" of a Tuya DP payload into a Buffer, then into DP records.
lib/tuya/RainDpDecoder.jsP2972 - Tuya rain sensor DP decoder (old and new firmware layouts).
lib/tuya/SanityFilter.jsSanityFilter - v9.0.0 (L14 Hardening Layer) Provides sophisticated signal processing for Tuya sensors: 1.
lib/tuya/SpiPixelColour.jsPure helpers for the Gledopto GL-SPI-206P (DP layout from zigbee-herdsman-converters gledopto.ts, Koen Kanters and contributors; own implementation).
lib/tuya/SpmPhaseDecoder.jsDecoder for Tuya SPM01 (1P+N) / SPM02 (3P+N) DIN energy monitors.
lib/tuya/TS0601_EMERGENCY_FIX.jsTS0601 EMERGENCY FIX Force TuyaEF00Manager initialization for specific TS0601 sensors that are not reporting data.
lib/tuya/ThermostatMeteringDps.jsP3067: power metering datapoints of a few Tuya thermostats / TRVs, exact manufacturer names only (facts from Zigbee2MQTT tuya.ts; own implementation, credit Koen Kanters and the zigbee-herdsman-converters contributors):
lib/tuya/TimeSyncPolicy.jsPer-device opt-out of Tuya time sync (#110, Z2M #13004): some devices misbehave when the time is pushed to them.
lib/tuya/TongouAcFrequency.jsTongouAcFrequency - Homey port of Z2M herdsman #12993 WHY(P2580): _TZE284_6ocnqlhn DP32 sometimes reports centihertz (4999->49.99) and sometimes already-truncated Hz (49/50).
lib/tuya/Ts0004SwitchModuleHeal.jsP2634 - TS0004 4-gang switch module heal (SML-04Z family) Sacred couples (Z2M TS0004_switch_module / ZHA Switch_4G_Metering): _TZ3000_ltt60asa + TS0004 _TZ3000_mmkbptmx + TS0004 _TZ3000_liygxtcq + TS0004 WHY: Homey showe
lib/tuya/Ts0049Countdown.jsP3019: Haozee HZ-WT02 water valve (TS0049 _TZ3000_kz1anoi8) - watering countdown through the Tuya private cluster 0xE001, command 0xFE (setCountdown).
lib/tuya/TuyaAdapter.jsTuyaAdapter - Tuya Unified EF00 send adapter Handles multiple API variations across Homey SDK versions Feature-detects available methods and uses appropriate fallback
lib/tuya/TuyaBrightnessScale.jsTuya MCU brightness scale (0-1000).
lib/tuya/TuyaClusterWrapper.jsTuyaClusterWrapper - v5.3.15 Correct implementation of Tuya EF00 cluster for Homey SDK3 CRITICAL: Homey SDK3 does NOT natively support: - Cluster 0xEF00 (Tuya specific) - dataRequest method - DP parsing This wrapper prov
lib/tuya/TuyaCommandSender.jsTuyaCommandSender - v5.3.16 Universal helper for sending commands to Tuya EF00 cluster PROBLEM: The method tuyaCluster.dataRequest() doesn't exist in Homey SDK3 SOLUTION: Try multiple methods in order of availability T
lib/tuya/TuyaDPDataLogger.js_no header_
lib/tuya/TuyaDPDatabase.js_no header_
lib/tuya/TuyaDPDeviceHelper.jsTuya DP Device Helper According to CURSOR_REFACTOR_GUIDE_PART1.md Phase 6 Purpose: Separate Tuya DP devices from standard Zigbee devices to avoid timeout errors on cluster configuration
lib/tuya/TuyaDPFlowCardManager.js_no header_
lib/tuya/TuyaDPManager_Enhanced.jsTuyaDPManager_Enhanced - Gestion optimale des DataPoints Tuya Améliorations v4.9.336: - Détection automatique des DPs critiques - Mapping intelligent batterie multi-source - Cache des valeurs DP avec timestamp - Retry au
lib/tuya/TuyaDPMapper.jsTUYA DP AUTOMATIC MAPPER Inspiré de: - Zigbee2MQTT converters (github.com/Koenkk/zigbee-herdsman-converters) - LocalTuya (github.com/rospogrigio/localtuya) - Home Assistant Tuya integration - TinyTuya (pypi.org/project/t
lib/tuya/TuyaDPParser.jsTUYA DATA POINT (DP) PARSER Parses the raw buffer from Tuya cluster 0xEF00 into structured DP data Handles encoding/decoding of Tuya proprietary Data Points
lib/tuya/TuyaDataPointEngine.jsTuyaDataPointEngine.js COMPLETE Tuya DataPoint (DP) engine for TS0601 devices Handles ALL Tuya climate sensors, motion sensors, etc.
lib/tuya/TuyaDataPointsComplete.jsTuyaDataPointsComplete - COMPLETE Tuya DataPoints Database Sources: - https://github.com/zigbeefordomoticz/wiki/blob/master/en-eng/Technical/Tuya-0xEF00.md - https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirk
lib/tuya/TuyaDataPointsJohan.jsTuyaDataPointsJohan.js - Versioned DP Definitions from Johan Bendz Source: https://github.com/JohanBendz/com.tuya.zigbee/blob/master/lib/TuyaDataPoints.js This file provides comprehensive, versioned data point definition
lib/tuya/TuyaDataPointsZ2M.js_no header_
lib/tuya/TuyaDataQuery.js_no header_
lib/tuya/TuyaDpCommandArgs.jsP3050 - build the argument object of an outgoing Tuya DP command (0xEF00 cmd 0x00 / 0x04) from the schema of the cluster class that is ACTUALLY live on the node.
lib/tuya/TuyaDpProfileCodec.jsPure value codec for TuyaDpProfileDevice profiles (kept free of Homey imports so it is testable).
lib/tuya/TuyaDpValue.jsP2769 - Tuya DP type VALUE (0x02) decoding.
lib/tuya/TuyaE002AlarmManager.jsTuyaE002AlarmManager - write climate/LCD alarm thresholds on 0xE002 WHY P2267: Google/Z2M/ZHA/HA - E002 is alarm config only (not live temp/hum).
lib/tuya/TuyaEF00Base.jsTuyaEF00Base - Central Helper for Tuya EF00 Manager Initialization PHASE 1 - Safe EF00 Manager Access Provides safe initialization and access to the global TuyaEF00Manager to prevent "tuyaEF00Manager not initialized" cra
lib/tuya/TuyaEF00Manager.js_no header_
lib/tuya/TuyaEF00Parser.jsTuyaEF00Parser - v5.3.15 Lightweight parser for Tuya EF00 frames Use this for quick DP parsing without full cluster wrapper
lib/tuya/TuyaGatewayEmulator.js_no header_
lib/tuya/TuyaHelpersJohan.jsTuyaHelpersJohan.js - Helper Functions from Johan Bendz Source: https://github.com/JohanBendz/com.tuya.zigbee/blob/master/lib/TuyaHelpers.js Provides utility functions for: - Parsing Tuya DP values (getDataValue) - Sched
lib/tuya/TuyaMCUManager.jsTuyaMCUManager - v3.0.0 (P2472b) MCU negotiation for TS0601 / EF00 devices: - Version query + store cache - Magic packet wake - Time-sync format guess (couple -> MCUFormatDatabase -> TuyaTimeSyncFormats) - Heartbeat + so
lib/tuya/TuyaManufacturerCluster.js_no header_
lib/tuya/TuyaMcuTimeService.jsP2933 - Tuya MCU time & housekeeping service (optional overlay, additive).
lib/tuya/TuyaModernExtend.jsTuyaModernExtend - v9.0.0 Reusable "Traits" for Tuya devices, inspired by Z2M Modern Extend.
lib/tuya/TuyaMotorDirection.jsTuyaMotorDirection - Homey port of Z2M herdsman PR #13207 / #13191 WHY(P2580): tubular / Moes covers occasionally report motor_direction as a string ("back"/"forward"/"reversed"/"normal") instead of enum 0/1.
lib/tuya/TuyaMultiDpFrame.jsWHY(2026-10-10, Gledopto GL-SPI-206P): bursts of single-DP writes freeze some Tuya light MCUs (Koenkk/zigbee2mqtt#32754).
lib/tuya/TuyaMultiGangManager.js_no header_
lib/tuya/TuyaNegPower24.jsSigned decoding of the 24-bit active power field found in Tuya packed "phase" DPs.
lib/tuya/TuyaPhaseLongV2.jsP3002b - 18-byte "V2" phase datapoint (phase_a DP6 on Powbay JGQW01-class breakers).
lib/tuya/TuyaPhaseStruct.jsDecoder for the 8-byte "phase" raw datapoint some Tuya DP meters and breakers send (voltage, current and power of one phase packed together).
lib/tuya/TuyaProfiles.js_no header_
lib/tuya/TuyaProtocolManager.js[MIX] TUYA PROTOCOL MANAGER - Système Unifié Intelligent Fusion et optimisation de: - TuyaAdapter.js - TuyaDataPointEngine.js - TuyaManufacturerCluster.js - TuyaSpecificCluster.js - IntelligentProtocolRouter.js Documenta
lib/tuya/TuyaRadarRangeScale.jsTuyaRadarRangeScale - dual-scale range DPs (Z2M /100 vs ZHA x0.1) WHY(P2583 / GH#547 gkfbdvyx + Z2M#27445 + ZHA quirk): near/far detection DPs arrive as cm (/100) OR decimeters (/10).
lib/tuya/TuyaSensorDatabase.js_no header_
lib/tuya/TuyaSpecificCluster.jsTuyaSpecificCluster - Custom Homey SDK3 Implementation Implements Tuya's manufacturer-specific cluster 0xEF00 Based on Homey's zigbee-clusters architecture References: - https://athombv.github.io/node-zigbee-clusters - h
lib/tuya/TuyaSpecificClusterDevice.js_no header_
lib/tuya/TuyaSpecificDevice.js_no header_
lib/tuya/TuyaSyncManager.js_no header_
lib/tuya/TuyaTimeSync.js_no header_
lib/tuya/TuyaTimeSyncFormats.js_no header_
lib/tuya/TuyaTimeSyncHandler.jsTuyaTimeSyncHandler v1.2.0 - Stabilized & Exhaustive Centralized handler for Tuya Cluster 0xEF00 Command 0x24 (TUYA_MCU_SYNC_TIME).
lib/tuya/TuyaTimeSyncManager.js_no header_
lib/tuya/TuyaUnifiedParser.js_no header_
lib/tuya/TuyaUniversalMapper.js_no header_
lib/tuya/TuyaUnsignedValue.jsTuyaUnsignedValue - harden Tuya VALUE (type 2) as unsigned 32-bit WHY(P2580 / Z2M#32561 MTG275 detection_range): some MCU reports / host stacks surface VALUE as signed int32.
lib/tuya/TuyaZigbeeDevice.js_no header_
lib/tuya/TuyaZigbeeProfileOverlay.jsP2931 - Optional overlay: builds the per-device Tuya Zigbee protocol profile at runtime (TuyaZigbeeProtocolProfile) from Basic attributes and the EF00 commands actually seen.
lib/tuya/TuyaZigbeeProtocolProfile.jsP2930c - Tuya Zigbee (EF00) protocol profile, per device, built at runtime.
lib/tuya/UniversalDPReceiver.jsUniversalDPReceiver v5.7.29 - Audited & Improved (20+ hooks) MODES: 1.
lib/tuya/UniversalDPSender.jsUniversalDPSender v5.7.42 - Curtain Motor Fix v5.7.42: FIX - Tuya 'value' type ALWAYS uses 4 bytes (GitHub #122 elgato7) Types: bool, enum, bitmap(1-8bytes+BigInt), value(4bytes fixed), string, raw
lib/tuya/UniversalTimeSync.jsUniversalTimeSync - v5.5.107 Enhanced Time Synchronization Provides hourly time synchronization for all Tuya devices with clocks/displays.
lib/tuya/UniversalTuyaParser.jsQUARANTINED (P2269) - UniversalTuyaParser was dead (no live requires).
lib/tuya/UpstreamDpGuards.jsP3150 (t733u findings): small, additive DP guards confirmed by upstream sources.
lib/tuya/_quarantine/UniversalTuyaParser.legacy.js_no header_
lib/tuya/dp-parser-enhanced.jsdp-parser-enhanced.js - Enhanced Tuya DP parser Handles multiple payload formats: - Raw Buffer - Base64 string - JSON string - Endpoint 242 special handling Supports multi-gang DP mappings (e.g., DP 1 = gang 1, DP 2 = ga
lib/tuya/dpMapper.jsdpMapper.js - v5.3.17 Tuya Unified DP to Homey Capability mapper Usage: const mapTuyaDPToCapabilities = require('./dpMapper'); mapTuyaDPToCapabilities(device, dp, value);
lib/tuya/fingerprintShardId.jsP2678 - Fingerprint shard id (shared builder + runtime) WHY: Homey Pro ~64MB - never JSON.parse the full ~0.9MB broad catalog at once.
lib/tuya/index.js[SKY] Tuya Protocol Index - v7.0.0 (Antigravity Overhaul) Centralized exports for all Tuya protocol handlers.
lib/tuya/profiles/P3013DedicatedZ2MProfiles.jsP3013 - exact DP tables for four master-only dedicated drivers.
lib/tuya/tuya-universal-mapping.jsTUYA UNIVERSAL MAPPING SYSTEM Système ultra-complet de mapping entre: - Tuya DataPoints (DPs) - Zigbee Clusters (standard + manufacturer-specific) - Homey Capabilities (standard + custom) Sources consolidées: - Zigbee2MQ
lib/tuya/tuyaDpBool.jsTrue, false, or null when the report is not a Tuya bool.
lib/ui/TileStateGuard.jsP3130 / t699u: Homey tile state consistency.
lib/util/color.js_no header_
lib/util/index.js_no header_
lib/utils/AdaptiveDataParser.jsAdaptiveDataParser - Universal data type handler v5.3.62: Auto-adapts to ANY data format (raw, string, buffer, object, etc.) Handles: - Tuya DP values (all types: bool, value, enum, string, raw, bitmap) - ZCL attribute r
lib/utils/AdaptiveEventEmitter.js_no header_
lib/utils/AppVersion.jsAppVersion - Dynamic Version Utility Utility to get the current app version from app.json This ensures all version banners stay synchronized with the actual version.
lib/utils/BatteryCurveFallback.js_no header_
lib/utils/BidirectionalButtonState.jsBidirectionalButtonState - P2283 SSOT helpers for physical <-> virtual buttons.
lib/utils/BoundedJsonCache.jsBoundedJsonCache - load big read-only JSON data files lazily, at first use, into a bounded LRU that the memwarn guard can drop.
lib/utils/ButtonE000RawInterceptor.jsButtonE000RawInterceptor - P2387 SSOT for E000 raw frame gap-fill on button remotes.
lib/utils/CacheManager.jsCacheManager - SHA-256 based HTTP cache for MFS Aggregator Stores ETag / Last-Modified headers and content hashes per source URL.
lib/utils/CapabilityAutoAdapter.jsCapabilityAutoAdapter - Auto-adapt capabilities per device variant Detects manufacturer capability gaps, auto-removes unused capabilities, and adapts ranges per manufacturer
lib/utils/CapabilityManager.jsCapabilityManager - Safe capability creation and management Prevents duplicate capability errors by checking existence before creation.
lib/utils/CapabilityMapCache.jsCapabilityMapCache - Caches capabilityMap computation for devices Problem: The capabilityMap getter in TuyaLocalDevice (and Zigbee devices) creates new closures on every call, causing GC pressure.
lib/utils/CapabilityMigrator.jsv9.0.40: Capability Migration Helper Inspired by gpmachado/com.gpm.homesuite migrateCapabilities.js Handles driver updates that add/remove capabilities gracefully
lib/utils/CaseInsensitiveMatcher.jsCaseInsensitiveMatcher v10.0.0 - BACKWARD-COMPAT SHIM As of v10.0.0 (P82, 2026-07-23), this module is a backward-compat shim that delegates to lib/utils/TuyaNormalizer.js (the ULTIMATE single source of truth).
lib/utils/CircuitBreaker.jsCircuitBreaker - Resilience pattern for external API calls States: CLOSED = normal operation, requests pass through OPEN = failing, requests are rejected immediately HALF_OPEN = testing recovery, limited requests allowed
lib/utils/ClassExtendsGuard.jslib/utils/ClassExtendsGuard.js P24.7 - Safe class extends wrapper for TuyaZigbeeDevice / TuyaSpecificClusterDevice P64.0 - Belt-and-suspenders: handles destructured modules, double-fallback chain, and NEVER returns undef
lib/utils/ClickAggregator.jsClickAggregator (P2798) - app-level multi-click counting for remotes whose firmware only sends one command per press (e.g.
lib/utils/ClickWindowAuto.jsClickWindowAuto (P2910) - decides, per device and per button, whether the app-level click window (ClickAggregator, P2798) is needed.
lib/utils/ClimateSensorClassHeal.jsClimateSensorClassHeal - one-shot class fix for a temperature/humidity sensor that was paired through a socket-class driver (Wilhelm Dall suggestion, 2026-10-17, _TZ3000_bjawzodf / TY0201).
lib/utils/ClusterDPDatabase.jsClusterDPDatabase - Universal Cluster & DataPoint Database Comprehensive mapping of: - Zigbee standard clusters - Tuya DataPoints (DP) - Manufacturer-specific clusters - Capabilities mapping Covers ALL device types for m
lib/utils/ConnectionStateTracker.jsConnectionStateTracker - Track device connection state with history and statistics v5.0.0 - TITAN Protocol V5 Tracks connection state transitions for WiFi and Zigbee devices.
lib/utils/CoupleGuard.jsP3039d / t524u - per-couple runtime guard.
lib/utils/CrashPrevention.jsCrashPrevention - v9.0.260 (P63) Centralized "never-throw" wrappers for the most common device crash patterns observed in Gmail diagnostics 2026-07-15: - 7x "this._inferCapabilityFromValue is not a function" (UnifiedSens
lib/utils/DeviceClassMigration.jsOne-shot device class migration for already-paired devices.
lib/utils/DeviceTelemetryEstimator.js_no header_
lib/utils/DriverMappingLoader.js_no header_
lib/utils/DriverUtils.jsDRIVER UTILITIES Reusable functions based on discovered patterns and best practices
lib/utils/EnergyEstimator.js_no header_
lib/utils/ErrorClassifier.js_no header_
lib/utils/GangIndexResolver.jsv9.0.413 (P92.121): GangIndexResolver - 0-based vs 1-based normalisation.
lib/utils/HomeyButtonUiCharter.jsHomeyButtonUiCharter (P2492) WHY: Physical wall presses and Homey UI tiles must stay coherent - Homey charter: switches = onoff primary; scene remotes = button.N in device view; never invent onoff on class:button; mainte
lib/utils/HomeyCapabilityUx.jsHomeyCapabilityUx (P2500 / P2553) WHY: Athom + Device Capabilities (T43287) - sensor readables must stay getable so Homey shows tiles + Insights History.
lib/utils/LifecycleCleanup.jsLifecycleCleanup - Shared cleanup utilities for device classes Extracts duplicated try/catch cleanup patterns from BaseUnifiedDevice, UnifiedSwitchBase, UnifiedSensorBase, and other device classes.
lib/utils/LocalizedMessage.jsP3070 - localized device-status messages with a safe English fallback.
lib/utils/LogBuffer.jsLogBuffer - Circular buffer for logs accessible via Homey.ManagerSettings Enables MCP (Model Context Protocol) agents to read app logs remotely by querying Homey.ManagerSettings.get('debug_log_buffer') Features: - Circul
lib/utils/Logger.jsLOGGER PROFESSIONNEL HOMEY SDK3 Système de logging avancé conforme à la documentation Homey SDK v3 - Niveaux de log: ERROR, WARN, INFO, DEBUG, TRACE - Logs structurés avec contexte - Support Zigbee (clusters, endpoints,
lib/utils/ManufacturerNameAccessor.jsManufacturerNameAccessor - v9.0.249 (P59) Patches ZigBeeDevice (the root base class from homey-zigbeedriver) with a getManufacturerName() method so every driver can use this.getManufacturerName() without each drive
lib/utils/ManufacturerNameHelper.jsManufacturerNameHelper.js - Normalisateur Canonique de Marques (v8.1.0) Fournit une normalisation centralisée des noms de fabricants Zigbee/Tuya.
lib/utils/MathUtils.jsMATH UTILITIES (Safe arithmetic to prevent crashes) v1.0.0 - Extracted from tuyaUtils.js to break circular dependencies
lib/utils/MemwarnGuard.jsMemwarnGuard: reacts to Homey's documented memwarn event (Homey emits it before killing an app that uses too much memory).
lib/utils/MeterWriteCoalescer.jsMeterWriteCoalescer (P3298) - per-capability write coalescing for chatty metering devices.
lib/utils/NetworkResilience.jsNetworkResilience - shared local-first network guard for Homey Pro (~64MB budget).
lib/utils/OwnedTimerSweep.jsP3065: owned-timer sweep, run when a device is deleted or uninitialised.
lib/utils/PromiseUtils.jsPromiseUtils - Safe promise handling utilities Prevents "Cannot read properties of undefined (reading 'catch')" errors
lib/utils/ProtocolQuirkLookup.jsProtocolQuirkLookup (P116) Shared, case-insensitive lookup into data/protocol_quirk_table.json.
lib/utils/RateLimiter.jsRateLimiter v1.0.0 Prevents network flooding by debouncing high-frequency updates (e.g.
lib/utils/ReconnectNoticeGate.jsWHY(P3037b / forum 157537, Device Watchdog by Rick_D, v1.9.49-v1.9.51): a monitoring app must not raise "device lost" alerts while Homey is still starting (routers and sleepy end devices need minutes to report back), and
lib/utils/RejoinDetector.jsv9.0.40: Rejoin Detector - Burst-based power-restore detection Inspired by gpmachado/com.gpm.homesuite rejoin detection Detects power-restore rejoin by monitoring 3+ DP bursts within 600ms (all gangs dump state simultane
lib/utils/ReportingConfig.jsReportingConfig - Optimized attribute reporting configurations Based on analysis of professional Homey Zigbee apps (Philips Hue, Xiaomi, Aqara) Key findings: - Battery: min 1 hour, max 16 hours (slow changing) - Motion:
lib/utils/RetryWithBackoff.jsRetryWithBackoff - Exponential backoff retry utility for Zigbee operations v5.2.9 - Handle stubborn battery devices that don't respond immediately
lib/utils/SafeCapability.jsSafeCapability - v9.0.240 (P58) Standalone safe-capability helpers.
lib/utils/SafeTimerAccessor.jsSafeTimerAccessor - v9.0.253 (P62) Patches ZigBeeDevice (the root base class from homey-zigbeedriver) with a safeSetTimeout method that survives the device being destroyed.
lib/utils/Sdk3ZclSafe.jsSdk3ZclSafe - Homey Apps SDK3 Zigbee init / ZCL promise helpers (P2547).
lib/utils/SleepyDeviceInit.js_no header_
lib/utils/SmartValueProcessor.js_no header_
lib/utils/TitleSanitizer.jsTitleSanitizer - Smart Name Cleanup for Devices PROBLÈME (Diagnostic 5bbbabc5): (quoted passage, see the file header) SOLUTION:
lib/utils/TuyaDataPointUtils.jsTuyaDataPointUtils v5.5.740: Utility module for Tuya DataPoint handling Source: Inspired by PR #740 (maccyber) utils.js pattern This module provides a centralized location for: - DataPoint ID constants - DataType constan
lib/utils/TuyaDatapointArgs.jsFill the fields of a Tuya EF00 datapoint command that a caller left out.
lib/utils/TuyaDeviceHelper.js_no header_
lib/utils/TuyaNormalizer.jsTuyaNormalizer v10.0.0 ULTIMATE The DEFINITIVE case-insensitive normalizer for all Tuya device matching across the entire app.
lib/utils/TuyaPressTypeMap.jsv5.9.22: Centralized 0-indexed press type map (prevents v5.9.19 regression).
lib/utils/UniversalDataHandler.jsUniversalDataHandler - v5.5.397 Unified facade for all data handling operations Imports modular components from lib/utils/data/ Architecture: - DataConverter: Raw data format conversion (Buffer/Hex/Array/Binary) - TuyaPr
lib/utils/UniversalThrottleManager.js_no header_
lib/utils/UnknownDPLogger.js_no header_
lib/utils/ZigbeeRetry.jsZigbee Retry Utilities Handles "Zigbee est en cours de démarrage" and other transient errors
lib/utils/battery-reader.jsBattery Reader - Enhanced battery & voltage reading with fallbacks Handles: standard clusters, voltage fallback, Tuya DP protocol Based on: User feedback - "Aucune data sur les batteries"
lib/utils/battery-reporting-manager.jsBattery Reporting Manager - HYBRID VERSION Handles automatic battery reporting for BOTH: - Standard Zigbee devices (genPowerCfg cluster) - Tuya TS0601 devices (Tuya DP protocol) Based on Athom best practices and Homey SD
lib/utils/boundedJson.jsP3068: bounded JSON for logs in frame / DP / attribute handlers.
lib/utils/capability-safe-create.jsSafe Capability Creation - Prevents duplicate capability crash Homey throws error if capability already exists: (quoted passage, see the file header) This wrapper catches the e
lib/utils/capability-safe.jscapability-safe.js - Safe capability creation with persistence Prevents "Capability already exists" crashes by tracking created capabilities in device store and checking before creation.
lib/utils/cluster-configurator.jsv5.2.77: Use centralized Tuya detection
lib/utils/clusterUtils.js_no header_
lib/utils/data-collector.jsData Collector - Comprehensive data collection & storage Inspired by: Homey SDK3 best practices, community apps Collects data from: - Standard Zigbee clusters (battery, power, climate, etc.) - Tuya DP protocol (hidden cl
lib/utils/dp-log-sampler.jsP3065: per-DP receive log volume.
lib/utils/dp-transform.jsP3065: one place to apply a DP transform - plain function or ValueConverterRegistry { fromDevice } object.
lib/utils/driver-preference.jsDriver Preference Manager Stores user's manual driver selection to prevent auto-adaptation from overriding it Based on: User feedback - "USB 2 socket s'affecte au mauvais driver même si bon sélectionné"
lib/utils/driver-switcher.jsDriver Switcher - Safe automatic driver switching with heuristics Respects user preference and only switches when proven necessary Based on: User feedback - "Bascule automatique safe si driver recommandé faux"
lib/utils/endpointCapability.jsStrict multi-gang endpoint -> capability mapping.
lib/utils/energy-kpi.jsEnergy KPI Collector - Rolling window metrics for energy monitoring Inspired by: Homey SDK3 best practices & community apps Stores energy samples in rolling windows for: - Average power consumption - Peak power detection
lib/utils/ensureGangUiCapabilities.jsP2397 - Soft-ensure Homey UI gang representations (button.N + onoff.gangN).
lib/utils/fingerprint-matcher.jsfingerprint-matcher v1.0.0 (P92 heuristic matching) Heuristic, case-insensitive matcher for Tuya manufacturerName / productId fingerprints.
lib/utils/heapGate.jsP3214 (02/11/2026, Bastien diag 7f72cffe "c3 crache souvent"): the app died with heap out of memory in JSON.parse of the 2 MB zigbee-OTA index while HEAP-SENTINEL already read 57 MB.
lib/utils/index.js_no header_
lib/utils/interviewEndpoints.jsHomey Zigbee interview helpers. Interviews always expose endpoint 242 (Green Power proxy) plus the real application endpoints. Counting Object.keys(endpoints) as gangs is how TS0002 (EP1+EP2+242) becomes a 3-gang and TS0
lib/utils/json-load-note.jsBounded note of large JSON loads (Bastien 1.0.229).
lib/utils/lazyRequire.jsP2931 - lazy module handle. lazy(() => require('./X')) returns a stand-in that loads the module on first real use (new, call, property read, instanceof) and then forwards everything to it. WHY: every driver loads at ap
lib/utils/log-buffer.jslib/utils/log-buffer.js
lib/utils/manufacturerResolver.jslib/utils/manufacturerResolver.js Résolution d'identité des fabricants selon la Rule 24 (normalisation insensible à la casse) v10.0.0: Now delegates NFKD + accents to TuyaNormalizer (single source of truth)
lib/utils/mask-pii.js_no header_
lib/utils/memwarn-cleaners.jsWHY: Homey emits memwarn before killing an app over its memory budget (SDK docs).
lib/utils/migration-queue.jsMigration Queue System Safe alternative to device.setDriver() (SDK2 only, not available in SDK3) Instead of calling device.setDriver() directly (which crashes): 1.
lib/utils/nativeTimer.jsP3068: the single gateway for NATIVE timers in lib/.
lib/utils/parse-trace.jsStderr breadcrumbs for large app-owned JSON.parse calls.
lib/utils/rf-channel-coexistence.jsRF channel coexistence helpers (2.4 GHz).
lib/utils/safe-auto-migrate.jsSafe Auto-Migration System Validates migration before execution: - Confidence must be high (>90%) - Target driver must exist - User preference must not be set - Tuya DP devices protected (never auto-migrate) - Invalid dr
lib/utils/safe-capability.jsPrefer device.safeSetCapabilityValue (L14) when available.
lib/utils/safe-get-driver-patch.jsP2306 / P2351 / P2373 / P2480 / P2481 / P2482 - Soft-fail ManagerDrivers.getDriver for foreign driver IDs.
lib/utils/safe-guards.jsSafe Guards - Protection NPE
lib/utils/safe-timers.jslib/utils/safe-timers.js - defensive setTimeout helpers
lib/utils/safeLogger.jsv9.0.40: Safe Logger - Replaces direct console.log fallbacks in lib/ utilities Provides a consistent interface that works with or without a device reference
lib/utils/safeMemoryUsage.jssafeMemoryUsage (P3045) - read the process memory figures without ever throwing.
lib/utils/safeMigrate.jssafeMigrate.js - Safe device driver migration wrapper Prevents crashes during driver migration by validating target driver and catching errors gracefully.
lib/utils/scene-remote-classify.jsShared scene-remote / button-actuator classification (P2235/P2237).
lib/utils/transientNetRetry.jsP2930e (21/10/2026 Paris): bounded retry for cloud HTTPS calls that die on a transient socket error.
lib/utils/tuya-dp-detector.jsTuya DP Detector - extracted from lib/helpers/device_helpers.js Single source of truth for "is this device a Tuya DP device?" Extracted to break the circular dependency between: - lib/helpers/device_helpers.js - lib/util
lib/utils/tuya-dp-parser.jsTuya DP Parser - Parse cluster 0xEF00 data points Handles: Soil sensors, PIR sensors, climate sensors, etc.
lib/utils/tuyaUtils.js_no header_
lib/utils/zigbee-retry.jslib/utils/zigbee-retry.js
lib/utils/zigbee-tuya-evolution.jsZigbee + Tuya evolution brief (P2537).
lib/ux/PrePairingCompatibilityCheck.jsPre-Pairing Compatibility Check - UX #90 / P2498 Soft advisories only.
lib/ux/RealTimeCommunicationMonitor.jsReal-Time Communication Monitor - UX #89 Monitors and displays real-time device communication: - Live message feed - TX/RX statistics per device - Protocol distribution (ZCL vs Tuya DP) - Error rate tracking - Signal qua
lib/ux/SettingsUITooltips.jsSettings UI with Tooltips - UX #88 Provides tooltip definitions and settings validation for device settings: - Human-readable tooltip text for every setting - Settings validation with descriptive error messages - Setting
lib/ux/VisualBatteryHealthIndicator.jsVisual Battery Health Indicator - UX #92 Provides rich battery health information for display: - Health score (0-100) - Trend analysis (charging/discharging/stable) - Estimated remaining life - Color-coded status levels
lib/ux/index.jsUX Modules Index - v9.1.0 Centralized exports for all UX modules
lib/validation/ConfigSchemaValidator.js_no header_
lib/validation/index.js_no header_
lib/version.js_no header_
lib/wifi/CloudHealthState.jsProcess-local cloud health signals for local-first WiFi decisions.
lib/wifi/LanRebindRouter.jsP3072 step B - follow a Wi-Fi Tuya device to its new IP (DHCP lease change, router reboot).
lib/wifi/LocalCredentialPersist.jsLocalCredentialPersist (P2525) WHY (T146735 Smart Life cloud thread): Homey reboot / update often forces QR re-login and devices go offline (error 2001) because cloud session died.
lib/wifi/LocalFirstResolver.jsLocalFirstResolver - v9.1.1 Local-first transport resolver for Tuya WiFi devices (tuya-local inspired).
lib/wifi/WiFiConnectionPolicy.js_no header_
lib/wifi/WifiFixIt.jsP2621 / P2647 - WiFi Fix-It helpers (inspired by com.tuyalocal Fix It + Cloud Lookup).
lib/xiaomi/XiaomiSpecialHandler.jsXiaomiSpecialHandler - Xiaomi/Lumi Device Special Handling Inspired by fairecasoimeme/Xiaomi repository Handles Xiaomi-specific attributes and keep-alive Features: - Attribute 0xFF01 parsing (battery, temp, etc.) - Keep-
lib/xiaomi/index.jsXiaomi Module - Xiaomi/Lumi Device Support
lib/zigbee/BastienIeeeIdentity.jsP2667 / P2694 - Bastien Developer Tools "Unknown Node" IEEE -> sacred couple map Homey Zigbee tools show Unknown when interview lost mfr/pid but the IEEE was previously live-interviewed.
lib/zigbee/CapabilityCommandRouter.jsCapabilityCommandRouter - low-level UNSUPPORTED_CLUSTER handling When Homey/ZCL rejects a control cluster (status 0x81 / "UNSUPPORTED_CLUSTER"), cascade through parallel protocol methods and remember the winner: 1.
lib/zigbee/DeviceOperatingMode.jsDevice operating modes - one policy for remotes, relays, and DP switches.
lib/zigbee/DpCatalogDecoder.jsP3018: exact Tuya DP decoding from the shipped per-couple catalogue (lib/zigbee/data/unknown-dp-catalog.json v2: names + converter tokens).
lib/zigbee/DynamicBindingAdapter.jsP3207 DynamicBindingAdapter - GH#598 generalised (docs/rules/DYNAMIC_ADAPTATION.md).
lib/zigbee/Ef00OnlyInterview.jsP2473 / P2573 - EF00-only interview shape (Joep Insoma / Moes ZTS / FrankEver / Michaelp #2244 TRV / VicHY clrdrnya radar) WHY: Homey pairs Unknown when compose requires clusters the interview lacks (classic: OnOff 6 w
lib/zigbee/EndpointCoverage.jsP3018: every interviewed endpoint is inventoried, listened to (read-only) and routed or exposed.
lib/zigbee/ExoticQuirkEngine.js_no header_
lib/zigbee/FallbackChains.jsv9.0.414 (P92.122): FallbackChains - every "unsupported" gets a working alternative, and the working path is REMEMBERED.
lib/zigbee/GreenPowerCluster.jsGreenPowerCluster - Zigbee Green Power Cluster (0x0021) Implementation This cluster handles Green Power Device (GPD) communication for: - Energy-harvesting switches (kinetic/solar) - Friends of Hue switches - Philips Hue
lib/zigbee/GreenPowerManager.js_no header_
lib/zigbee/InferredDpLayer.jsP3018b: OPTIONAL low-confidence "inferred" Tuya DP layer (master only).
lib/zigbee/InitTxPacer.jsP3040 - first-start / pairing TX pacer.
lib/zigbee/IntelligentFrameAnalyzer.js_no header_
lib/zigbee/ManufacturerFeatureMapper.js_no header_
lib/zigbee/MatterCompatibilityLayer.js_no header_
lib/zigbee/MeshFloodCalm.jsP2663 - Zigbee mesh flood calm WHY (P215): - Pourquoi: Bastien live mesh (~8x HOBEIAN switch_1gang) saturated with thousands of msgs - tip 1.0.34 configured haElectricalMeasurement reporting (minInterval 10) on modules w
lib/zigbee/MethodChain.jsP3017: MethodChain - ordered, self-healing method chains per device and per operation.
lib/zigbee/MethodCoverage.jsP3017: MethodCoverage - the 20 indirect/alternative methods applied to every capability of every device family, plus a generic per-capability READ/REFRESH chain built on MethodChain.
lib/zigbee/MultiEndpointCommandListener.jsMultiEndpointCommandListener - Listen for commands on ALL endpoints.
lib/zigbee/PollControlPolicy.jsPoll Control (0x0020 / genPollCtrl) - do not bind or answer check-in on sleepy nodes.
lib/zigbee/PowerClusterPolicy.jsPower Configuration cluster (0x0001) policy - listen, do not poll sleepy nodes.
lib/zigbee/RawAdaptiveObserver.jsP3207 RawAdaptiveObserver - raw-data level of docs/rules/DYNAMIC_ADAPTATION.md (t778u/t780u).
lib/zigbee/RawFrameDeduplicator.js_no header_
lib/zigbee/RejectionTriage.jsP3011: triage for process-level unhandled rejections.
lib/zigbee/SmartGestureEngine.jsSmartGestureEngine - v1.0.0 Deciphers complex button gestures (Single, Double, Triple, Hold) across multiple protocols.
lib/zigbee/TimeClusterPolicy.jsTime cluster (0x000A) policy - respond on request, do not poll sleepy nodes.
lib/zigbee/TimeServerBoundCluster.jsP2933 - ZCL Time cluster (0x000A) server on Homey's side: devices that read genTime (Tuya LCD/TRV clocks, ZCL spec 3.12) get UTC, timezone and DST from the Homey clock.
lib/zigbee/TuyaMagicPacket.jsv9.0.413 (P92.121) + P103 era-enrich + P2249 + P2685: TuyaMagicPacket - complementary basic-cluster handshake (soft; never boot-fatal).
lib/zigbee/UnknownCommandEngine.jsP3016: UnknownCommandEngine. Per-device orchestration for unknown frames and DPs. UnknownCommandSink.record -+ +-> app trigger unknown_command_received +-> interpret -> learn ---+-> app trigger inferred_button_action Unk
lib/zigbee/UnknownCommandInterpreter.jsP3016: UnknownCommandInterpreter.
lib/zigbee/UnknownCommandSink.jsP3011: UnknownCommandSink - nothing a device sends is lost.
lib/zigbee/UnknownLearning.jsP3016: UnknownLearning. A bounded, persisted per-device memory that maps an unknown pattern (cluster/cmd/payload pattern, or dp/type/value pattern) to the action that was inferred. - LRU of at most MAX_KEYS entries, kept
lib/zigbee/UnknownLifecycle.jsP3020 - lifecycle release for the P3011 / P3016 / P3017 per-device state.
lib/zigbee/UnsupportedRegistry.jsv9.0.412 (P92.120): UnsupportedRegistry - negative cache for unsupported ZCL operations.
lib/zigbee/ZclClusterLexicon.jsARCH / SSOT: Lexer for ZCL + Tuya proprietary cluster IDs/names (P2270).
lib/zigbee/ZclDefaultResponsePolicy.jsSome mains relays (ZBMINIR2, BASICZBR3) never send a ZCL Default Response to setOn/setOff.
lib/zigbee/ZclErrorKind.jsP3011: ZclErrorKind - one classifier for every "this did not work" outcome of a Zigbee op.
lib/zigbee/ZclFrameHeader.jsP3017: decode the ZCL header of a raw incoming frame for diagnostics.
lib/zigbee/ZclSwitchConfigPolicy.jsHomey settings win over a Tuya ZCL power-restore dump.
lib/zigbee/ZclTsnContinuity.jsP3029: ZclTsnContinuity: one outgoing ZCL transaction sequence number (TSN) per physical device, continued across app restarts.
lib/zigbee/ZclUnsupportedGuard.jsP3011: ZclUnsupportedGuard - process-wide, per-device handling of "unsupported" outcomes at the zigbee-clusters layer, so EVERY call site (455 drivers, lib managers, Flow actions) benefits without being rewritten.
lib/zigbee/ZigbeeCommandManager.jsZigbeeCommandManager - Inspired by ZiGate Command Handling Robust command execution with: - Automatic retry on resource errors (0x80-0x86, 0x8B) - Queue management for concurrent requests - Error code handling (all 0x80-
lib/zigbee/ZigbeeCommandPacer.jsPer-device Zigbee TX queue. Spacing (NOT retry): 15-50 ms between successive commands so multi-gang bursts do not collide on the air. Retry (separate): up to 3 attempts with a FIXED 350 ms delay on MAC/APS no-ack. Do not
lib/zigbee/ZigbeeDataQuery.jsZigbeeDataQuery - v5.5.33 Zigbee-native Data Query PHILOSOPHY: TRUE HYBRID - Query data via BOTH Tuya DP AND ZCL PROBLEM: Some devices use ZCL for some data and Tuya DP for others SOLUTION: Query BOTH protocols and merge
lib/zigbee/ZigbeeDebug.jsZIGBEE DEBUG HELPER Helper pour debugger les devices Zigbee selon la documentation SDK v3 - Inspection des clusters - Test d'attributs - Monitoring des reports - Diagnostic complet
lib/zigbee/ZigbeeErrorCodes.jsZigbeeErrorCodes - Complete Error Code Database Based on ZiGate comprehensive error handling Source: https://zigate.fr/documentation/commandes-zigate/ Provides: - Complete error code definitions - Error severity classifi
lib/zigbee/ZigbeeHealthMonitor.js_no header_
lib/zigbee/ZigbeeHelper.jsZigbee Helper Utilities Fonctions utilitaires partagées pour tous les drivers Zigbee
lib/zigbee/ZigbeeHelpers.js_no header_
lib/zigbee/ZigbeeLibBackports.jsLocal backports from newer Athom libraries, kept here because the app stays on zigbee-clusters 2.6.0 / homey-zigbeedriver 2.2.17: the newer releases require Node >= 22, which Homey only ships from firmware v12.9.0, while
lib/zigbee/ZigbeeProtocolPatchManager.js_no header_
lib/zigbee/ZigbeeTimeout.jsZigbeeTimeout - Utility for adding timeouts to Zigbee operations Prevents infinite hangs when devices don't respond
lib/zigbee/ZigpyIntegration.js_no header_
lib/zigbee/cluster/AttributeIO.jsAttributeIO - readAttributes / writeAttributes with timeout, bounded retry and fallbacks: 1.
lib/zigbee/cluster/BindingPlanner.jsBindingPlanner - bind the client (output) clusters a device uses to talk to Homey, on EVERY endpoint that declares them, with bounded retries.
lib/zigbee/cluster/ClusterLayerAttach.jsClusterLayerAttach (P2935) - wires the P2931 cluster layer into every TuyaZigbeeDevice, AFTER native setup (called from the deferred init block).
lib/zigbee/cluster/ClusterRegistry.jsClusterRegistry - idempotent, order-independent cluster registration.
lib/zigbee/cluster/EndpointAdapter.jsEndpointAdapter - compare what the driver expects (driver.compose zigbee endpoints) with what the device really exposes (node descriptor from the interview) and produce an ADDITIVE adaptation plan: extra endpoints/ clust
lib/zigbee/cluster/ReportingPlan.jsReportingPlan - sensible configureReporting defaults per capability, and a bounded polling fallback ONLY for attributes whose reporting config failed.
lib/zigbee/cluster/RoutedBoundCluster.jsRoutedBoundCluster - one BoundCluster factory for every client-side command a device sends to Homey (onOff, levelControl, scenes, colorControl, windowCovering, iasZone, iasACE, ota, time, pollControl, groups, and the Tuy
lib/zigbee/cluster/ZclCodec.jsZclCodec - frame-level fallback parser for raw ZCL frames, independent of zigbee-clusters' cluster registry.
lib/zigbee/cluster/index.jsLazy accessors: nothing is required until first use (startup memory budget).
lib/zigbee/index.jsZigbee Utilities Index - v5.5.797 Centralized exports for all Zigbee-related utilities
lib/zigbee/obsolete/safe-io.jsSafe I/O wrapper with retry logic for Zigbee operations Handles "Timeout: Expected Response" and other transient errors
lib/zigbee/obsolete/wait-ready.jsWait for Zigbee to be ready before attempting operations Prevents "Zigbee est en cours de démarrage" errors
lib/zigbee/registerClusters.js_no header_
lib/zigbee/zigbee-cluster-map.jsZIGBEE CLUSTER MAPPING Global cluster ID mapping table for Zigbee devices Maps symbolic names to numeric cluster IDs Usage: const CLUSTER_MAP = require('./zigbee-cluster-map'); const clusterId = CLUSTER_MAP.get('POWER_CO

Gates and CI scripts (629)

FilePurpose (from its header)
scripts/ci/STRICT_SYNTAX_GUARD.jsSTRICT_SYNTAX_GUARD.js - v1.2.0 Formal gatekeeper for Tuya Unified Zigbee.
scripts/ci/ai-fallback-repair.js_no header_
scripts/ci/antigravity-controls.js🛰️ antigravity-controls.js - v1.0.0 Advanced AI-driven control system for Tuya Zigbee drivers.
scripts/ci/appjson-compose-drift-gate.jsP3025 — app.json ↔ compose drift gate (check by default, --fix rewrites deterministically).
scripts/ci/auto-validation-gate.js══════════════════════════════════════════════════════════════════════════════ AUTO-VALIDATION GATE v1.0.0 ══════════════════════════════════════════════════════════════════════════════ Automated checks derived from inve
scripts/ci/autonomous-review.cjsApproval-independent review for pull requests and pushes.
scripts/ci/autonomy-heartbeat.jsP3097: checks that each core automation succeeded within its window (hours) and re-dispatches stale ones once.
scripts/ci/autonomy-learn.jsP3097 (t643u): bounded learning ledger for self-repair workflows.
scripts/ci/bot-batch.jsP3255d — batch bot data commits (t824u: at most one silent bot commit per day on master).
scripts/ci/bot-silence.jsP3255: canonical module lives in scripts/lib (sparse-checkout friendly).
scripts/ci/bug-hunter.jsbug-hunter.js - Enhanced bug detection with predictive analysis for Tuya Zigbee codebase Run: node scripts/ci/bug-hunter.js [--json] [--predictive] Scans for common bugs and regressions: - Hardcoded /app/ paths - Legacy
scripts/ci/button-path-coverage.jsP2926 — static coverage report: every button/remote/scene/knob driver and the paths it listens on.
scripts/ci/capability-coherence-audit.jsP3135 (t719u/t721u/t722u/t723u): static capability coherence audit.
scripts/ci/chain-route-new-couples.jsWHY(P3243, 02/11/2026 Paris): only kb/apply-batch and leads/strict-apply routed new couples through the chain (P3223 firstNonFull).
scripts/ci/check-button-flow-routing.js_no header_
scripts/ci/check-flow-ids.jscheck-flow-ids.js - Flow Card ID Uniqueness Validator Scans all driver.flow.compose.json files to ensure no duplicate flow card IDs.
scripts/ci/ci-control-center.js╔══════════════════════════════════════════════════════════════════════════════╗ ║ CI/CD CONTROL CENTER v1.0 ║ ║ Centralized orchestration for all pre-flight checks before publish/push ║ ╠════════════════════════════════
scripts/ci/ci-health-check.js_no header_
scripts/ci/compose-parity-gate.cjsP3079 — compose ↔ app.json parity gate.
scripts/ci/compose-rebuild.cjsP3079 — rebuild app.json from compose sources the way Homey CLI does, without touching the repo.
scripts/ci/couple-removal-guard.jsP3134 couple-removal guard (#585, user t727u).
scripts/ci/diag-investigate-orchestrator.jsdiag-investigate-orchestrator.js Chains free-scrape → diag UUID harvest → Homey/Gmail fetch → polarity/sacred routing.
scripts/ci/diagnostic-history-gate.jsDiagnostic history gate. Turns sanitized Gmail/Homey diagnostic artifacts into CI-ready signals: recurring crash categories, top error signatures, recommended local checks, and missing guardrails. Historical user reports
scripts/ci/diagnostic-report.jsdiagnostic-report.js - Comprehensive CI/CD Diagnostic Report with Predictive Health Scoring Generates a full health report covering: - Build status (app.json validation) - Driver health (total, valid, invalid, empty manu
scripts/ci/digest-guard.jsP3138 (t736u): fail-closed privacy gate on every GENERATED digest / ledger before commit.
scripts/ci/disk-inode-guard.jsP3096 (31/10/2026): disk + inode guard.
scripts/ci/driver-continuations-check.jsWHY(P3206): CI consistency check for config/architecture/driver-continuations.json (docs/rules/DRIVER_CONTINUATIONS.md).
scripts/ci/driver-signature-dup-gate.jsWHY(P3238, 02/11/2026 Paris): stop driver sprawl.
scripts/ci/fetch-gh-reports.js_no header_
scripts/ci/fetch-homey-app-diag-by-uuid.jsFetch a Homey app diagnostic report by UUID (forum "Diagnostic code").
scripts/ci/find-bloat.jsfind-bloat.js - Bundle Bloat Detector for CI/CD Scans the app bundle for oversized files that may cause OOM crashes on Homey Pro (64MB limit).
scripts/ci/fingerprint-catalog-audit.js_no header_
scripts/ci/firmware-limit-audit.jsP3101 (t656u): report-only audit of firmware-limit compensation.
scripts/ci/footprint-report.jsFootprint report (P2830d): ROM (payload / app.json / lib / drivers / node_modules / duplicates), RAM (module-load heap upper bound via scripts/perf/boot-heap.js) and CPU-ish static signals (setInterval / process.memoryUs
scripts/ci/gmail-search-diag-uuid.jsSearch Gmail (IMAP + OAuth) for a Homey app-diagnostic UUID and extract sanitized crash/device payloads.
scripts/ci/grok-off-deadman.jsP3111 (01/11/2026 Paris, t673u): dead-man switch for "Grok Bot unplugged" mode.
scripts/ci/guard-external-replies.jsGuard External Replies - Prevents auto-reply bots from posting on external repos This script should be called before any GitHub API comment/issue operation to ensure we never accidentally post on external repositories.
scripts/ci/history-secret-scanner.jsFast redacted Git-history audit.
scripts/ci/homey-app-diag-index.jsP3088: .github/state/homey-app-diag was never present on any branch: fetch-homey-app-diag-by-uuid.js only mkdirs after a successful Athom fetch (fetch-diags passed HOMEY_PAT but not HOMEY_REFRESH_TOKEN, so it threw first
scripts/ci/homey-build-status.jsRead-only Athom build status (uses HOMEY_PAT the same way as direct-api-publish.js: delegation token -> AthomAppsAPI).
scripts/ci/homey-cli-pin.cjs_no header_
scripts/ci/homey-online-guidelines-audit.js_no header_
scripts/ci/homey-secrets-health.jsHomey secrets health check (read-only, free, no AI).
scripts/ci/homey-token-refresh.jsHomey account-token refresher for CI.
scripts/ci/json-ledger-merge.jsWHY(P3199, 01/11/2026 Paris): auto-enrich-closed-loop-ledger lost its findings on #557 ("conflit de rebase", run 41354032591) because two workers append to data/progress/ledger.json at the same time.
scripts/ci/lint-ratchet.jsP3025 — ESLint ratchet for the npm run lint scope (lib/ drivers/).
scripts/ci/load-heap-sim.js_no header_
scripts/ci/manifest-budget.jsWHY(P3243, 02/11/2026 Paris): Athom finding of 02/11 — builds with the 347 already-published drivers pass, and adding ANY never-published driver (heiman_keyfob alone, heiman_siren alone, ay204t+ay222z) gives processing_f
scripts/ci/memory-budget.jsP2914 — memory budget probe (CI report + gate).
scripts/ci/memory-hazard-ratchet.jsP3068 — memory-hazard ratchet (Homey app heap ~64 MB, Bastien OOM/reboot history).
scripts/ci/mfr-multi-driver-audit.jsP3039d / t524u — mfr on several drivers: real couples per source vs parasitic combos.
scripts/ci/npm-cache-key.jsP3026: dependency-only npm cache key for actions/setup-node.
scripts/ci/payload-preflight.cjsP2902 payload preflight — run on the exact directory that will be packed and uploaded to Athom, before upload.
scripts/ci/perf-budget-gate.jsP3097 (t650u): perf budgets (manifest parse ms, heap MB after loading the manifest).
scripts/ci/platform-budget-gate.jsP3026: platform budget gate. One report for every limit listed in config/platform-limits.json (Athom payload, Homey memory, GitHub Actions / repo / API). Each measure is compared with warnPct and failPct (default 80 / 90
scripts/ci/pre-commit-checks.jspre-commit-checks.js - CI Pre-Commit Violation Gate ============================================================================ Lightweight gate that checks for violations the auto-fix scripts can repair.
scripts/ci/predictive-health.jspredictive-health.js - Master Predictive Health Dashboard Combines outputs from all diagnostic scripts to predict potential issues before they happen and generate a unified health score with recommendations.
scripts/ci/privacy-guard.jsPrivacy Guard — Vérifie qu'aucun fichier sensible ou données opérationnelles privées ne soit commité par erreur.
scripts/ci/privacy-redact.jsWHY(P3119, 01/11/2026 Paris, owner t682u/t693u): no home data of Bastien or of ANY user may sit in the repo (room names, device labels, IEEE addresses, Homey ids, personal mails).
scripts/ci/publish-dir-guard.cjsThe directory passed to homey app publish --path must already be the filtered payload.
scripts/ci/publish-dir.cjs_no header_
scripts/ci/publish-payload-identity.cjsWHY(P3025b): AggregateError hunt.
scripts/ci/publish-size-gate.cjsPublish payload size gate. Homey/Athom failures often surface as dashboard "processing_failed" or a generic AggregateError while the root cause is an oversized upload payload. This check keeps the size rules in one place
scripts/ci/publish-stage-filter.cjsDecide whether one path is copied into the Athom staging directory.
scripts/ci/purge-sensitive-history.jsPurge sensitive paths from git history.
scripts/ci/push-with-retry.jsWHY(P3025, 25/10/2026 Paris): node twin of .github/scripts/git-push-retry.sh, used by safe-auto-commit.js.
scripts/ci/repo-autopilot.jsP3022 — repo autopilot: process every open PR and issue of this repo, without posting anything.
scripts/ci/report-structure-ratchet.jsscripts/ci/report-structure-ratchet.js — keeps our reports readable and our own (P3069, t585u).
scripts/ci/reserved-setting-prefix-gate.cjs_no header_
scripts/ci/reserved-setting-prefix.cjs_no header_
scripts/ci/resolve-collisions.jsCI Collision Resolver - Resolves fingerprint collisions for CI Run: node scripts/ci/resolve-collisions.js [--dry-run] [--json] Reads driver compose files, detects manufacturer+productId collisions, and resolves them by r
scripts/ci/rules-gates.jsShared rules-gate runner: one list, one runner, used by the rules-gates composite action (.github/actions/rules-gates) and by scripts/ci/safe-auto-commit.js.
scripts/ci/safe-auto-commit.jsscripts/ci/safe-auto-commit.js — the ONLY way automation should commit to master/stable-v5.
scripts/ci/scan-homey-crashes-for-uuid.jsScan Athom Apps API crashes across recent builds for a diagnostic UUID, then optionally open Developer Tools via Puppeteer and paste the code.
scripts/ci/security-scanner.js🔐 Security Scanner v8.5.0 ========================== Scans the repository for: - Hardcoded secrets, tokens, API keys - .env files committed - credentials.json/token.json committed - GitHub tokens in git config - npm/.ne
scripts/ci/signature-audit.js_no header_
scripts/ci/skill-check.jsskill-check.js Validates that drivers follow the required Antigravity and Zero-Defect patterns.
scripts/ci/smart-energy-fixer.js_no header_
scripts/ci/standing-rules-gate.jsP3102: standing user rules as a deterministic gate (pure git + file reads, no network).
scripts/ci/storage-cleanup.jsP3033 — CI storage cleanup (GitHub Actions caches + artifacts), run daily by .github/workflows/storage-cleanup.yml.
scripts/ci/stray-file-gate.cjsP3081 — stray / pasted file guard.
scripts/ci/titan-pre-commit.jsTITAN v2 Pre-Commit Gate ============================================================================ Lightweight pre-commit hook that runs TITAN v2 checks before every commit.
scripts/ci/unwired-script-ratchet.jsP3097 (t641u): every new fix/lesson ships with its GHA automation.
scripts/ci/upload-archive-ceiling.cjsP3356: ratchet on the packed upload archive.
scripts/ci/upload-manifest-ceiling.cjsP3342: block growth of the upload app.json above config/upload-manifest-ceiling.json (raw file bytes, as uploaded).
scripts/ci/upstream-watch.jsP3097 (t645u): free, low-frequency watch of Homey SDK / athombv / Z2M / ZHA changes.
scripts/ci/validate-all-yaml.jsvalidate-all-yaml.js - YAML Syntax Validator for CI/CD Validates all YAML files in the repository for syntax correctness.
scripts/ci/validate-github-actions-policy.jsGitHub Actions policy gate. This complements YAML syntax validation with the CI/CD rules learned from real failures: voice-safety checks must run before publish/validation, smart PR merge must verify the head reached mas
scripts/ci/version-health-check.jsVersion health check — apps-api crash/regression watcher.
scripts/ci/workflow-about.jsscripts/ci/workflow-about.js — writes a short "about" header at the top of every workflow (P3069, t585u).
scripts/ci/workflow-hygiene-gate.jsP3025 (25/10/2026 Paris): CI/CD hygiene ratchet for .github/workflows + .github/actions.
scripts/ci/workflow-resource-gate.jsP3097 (t649u): every workflow needs a concurrency group and every job a timeout-minutes.
scripts/ci/zero-defect-control.js🛡️ zero-defect-control.js - v5.13.6 (Antigravity Enhanced) High-performance quality guard checking: - 100% correct super.onNodeInit lifecycle invocation.
scripts/gates/init-non-native-guard.jsRule "native first, non-native optional" (docs/rules/ZIGBEE_TUYA_RULES.md §Non-native never mandatory).
scripts/gates/native-matrix-gate.jsSpec 002 gate: (a) no non-native cluster listed in driver endpoint clusters (pairing manifest), (b) a case-insensitive mfr+pid couple lives on one driver only.
tools/ci/LocalWorkflowLearner.jsLocalWorkflowLearner (P2562) — habit learning for GitHub Actions / CI (no cloud AI).
tools/ci/_add-missing-zg204-mfrs.jstools/ci/_add-missing-zg204-mfrs.js P64.8 — Add missing HOBEIAN ZG-204Z family MFRs to mfs_db, sacredCouples, fingerprints.json, and driver.compose.json.
tools/ci/_add-volt.jsAdd measure_voltage to sensorCapabilities in device.js
tools/ci/_apply-adjudication.js_no header_
tools/ci/_curtain-couple-audit.js_no header_
tools/ci/_fix-stale-mfr-top-level.jstools/ci/_fix-stale-mfr-top-level.js P64.4 — Fix stale top-level mfs_db entries that point to wrong drivers.
tools/ci/_fix-zg204-mixed-case.jstools/ci/_fix-zg204-mixed-case.js P64.8 — Fix ALL the remaining stale top-level and lowercase fingerprints entries for the ZG-204 family that point to wrong drivers.
tools/ci/_fix-zg204-zv-zx-sacred.jstools/ci/_fix-zg204-zv-zx-sacred.js P64.8 — Fix sacredCouples entries for ZG-204ZV and ZG-204ZX that were incorrectly pointing to vibration_sensor / motion_sensor_radar_mmwave / generic_diy.
tools/ci/_migrate-bare-batch-p102.jsOne-shot P102 Phase 3 migrator: retarget safe bare ZigBeeDevice drivers to TuyaZigbeeDevice.
tools/ci/_migrate-mixin-bare-p102.js_no header_
tools/ci/_z2m-gap-audit.jsP64.13 — Cross-reference: audit all our drivers against Z2M exposes.
tools/ci/adaptive-double-division-gate.jsP120/P123 — Adaptive double-division residual gate (report → hard) Flags driver/lib paths that risk AdaptiveDataParser and a local divisor on the same DP handling chain.
tools/ci/add-button-flow-cards.jsP26.4 — Add flow card triggers for buttons 2, 3, 4 in button_wireless_smart The current driver.flow.compose.json only has button 1 triggers.
tools/ci/add-defaults-shell.jsP72.2 — Add defaults.run.shell: bash to workflows that are missing it.
tools/ci/add-sacred-couples.jsadd-sacred-couples.js — Add Sacred Couples from REAL sources only
tools/ci/add-scene-recall-to-all-buttons.jsP31.4 — Add scene_recall flow card to all button drivers missing it.
tools/ci/aggregate-error-fixer.jsaggregate-error-fixer.js (P58.6) ========================================================================== Standalone fixer for AggregateError + process errors encountered in tools/ci, scripts/, lib/, and GHA workflow l
tools/ci/ai-context-compress.jsP2491 — Smart AI / bot context compression WHY: GHA bots were shipping ~59KB rules on every remote AI call.
tools/ci/ai-plan-guard.jsai-plan-guard.js (P2227) Hard guard for "forfait inclus" / token-plan mode: - Never enable paid providers unless AI_ALLOW_PAID=true - Enforce included daily caps from config/security/ai-plan-forfait.json - Soft-stop befo
tools/ci/ai-quota-report.jsai-quota-report.js (P92.79) Weekly visibility on AI usage vs daily caps (the billing guard enforces hard limits; this SURFACES them so quota exhaustion never comes as a surprise).
tools/ci/align-driver-images.jsP2315 — Align driver images + compose paths 1) Regenerate small/large/xlarge PNG from each driver's own icon.svg (same padding/design pipeline → visual coherence) 2) Point compose images to {{driverAssetsPath}}/images/{s
tools/ci/align-mfs-db-intelligent.jsalign-mfs-db-intelligent.js (P169) Intelligent alignment of data/mfs_db.json with the rest of the sacred-couple stack: 1) user-misattribution-registry (highest — community locks) 2) exclusive compose claim (one non-wide
tools/ci/analyze-all-builds.jsanalyze-all-builds.js — full analysis
tools/ci/analyze-dashboard.jsanalyze-dashboard.js — analyze the build dashboard data
tools/ci/analyze-diag-locally.jsanalyze-diag-locally.js (P170 + P2211 enrich) Local-first triage of Homey crash/diag text against: - lib/diagnostics/DiagContentEnricher (log id, couples, signals) - data/error-patterns.json - docs/knowledge/device-truth
tools/ci/analyze-emails.jsanalyze-emails.js — Deep analysis of 10,742 emails
tools/ci/analyze-failures.jsanalyze-failures.js — deep analysis of build failures
tools/ci/analyze-p72-crashes.jsP72 — Crash analysis on diagnostics-report.json Aggregates errs from crash reports + the diagnostics summary, then filters to ones we can fix server-side.
tools/ci/analyze-real-collisions.jsanalyze-real-collisions.js — P53 v2 Identify the REAL collisions (same case-sensitive mfr+pid in multiple drivers) vs false positives (case differences only)
tools/ci/analyze-recent-builds.jsanalyze-recent-builds.js
tools/ci/analyze-recent-failures.jsanalyze-recent-failures.js — look at recent failed builds
tools/ci/analyze-tuya-local.jsanalyze-tuya-local.js — check how many parallel fetchAll calls
tools/ci/analyze-version-intel.jsanalyze-version-intel.js
tools/ci/anti-bot-regression-gate.jstools/ci/anti-bot-regression-gate.js P94+: Fail CI if auto-fix-all / bot reintroduces known wrong Sacred Couple routings.
tools/ci/apply-blakadder-new-fps-r68.jsP68: Apply 12 brand-new Blakadder fingerprints (R68 batch) + 35 high-confidence Blakadder mfrs not in mfs_db but in driver Source: zigbee.blakadder.com/assets/js/database.js (2026-07-16 680 unique mfrs) Cross-ref method:
tools/ci/apply-blakadder-new.jsapply-blakadder-new.js — P53 Take the 48 Blakadder-only fingerprints (not in mfs_db) and try to add them to the appropriate driver.compose.json based on category → driver mapping.
tools/ci/apply-button-mode-setting.jsP27.1 — Apply button_mode setting to all button drivers Adds the button_mode setting to drivers that have buttons: - button_wireless_1/2/3/4 - button_wireless_smart - button_wireless_usb - smart_knob_rotary
tools/ci/apply-canonical-gaps-final.jsapply-canonical-gaps-final.js Apply all canonical gaps (pairs in canonical fingerprint but NOT in driver.compose.json) to the right driver.
tools/ci/apply-class-scale-sacred-fixes.jsP168 — Apply class-scale sacred-couple / energy honesty fixes.
tools/ci/apply-curtain-couples.jsapply-curtain-couples.js (P2363 / P2363b verdict 2026-09-01) Harvest verified cover motors (mfr + TS0601) from Z2M herdsman; add to curtain_motor; strip wrong-class / sibling-owned bleed.
tools/ci/apply-forum-146735-silent.jsapply-forum-146735-silent.js Silent, local-only enrichment from topic 146735 scan artifacts.
tools/ci/apply-forum-fixes.jsapply-forum-fixes.js — apply fixes from forum findings
tools/ci/apply-forum-silent-multi.jsapply-forum-silent-multi.js (P109) Dry-run by default.
tools/ci/apply-forum-test-fixes.jstools/ci/apply-forum-test-fixes.js Add missing manufacturerName to drivers based on forum-routing-regressions.test.js
tools/ci/apply-issue-439-fps.jsapply-issue-439-fps.js — P53 Apply the 678 missing FPs from issue #439 to generic_tuya driver.
tools/ci/apply-learnmode-priority.jsP2498 — apply class-aware learnmode to priority Zigbee drivers missing it.
tools/ci/apply-market-couples.jsapply-market-couples.js (P2231) Apply ONLY apply-safe market couples (registry / exact DB / Z2M description) into driver.compose.json.
tools/ci/apply-mfr-pid-cross-ref.jsapply-mfr-pid-cross-ref.js — apply new mfr+PID pairs from user data
tools/ci/apply-p101-sacred-lot2.jsP101 Lot2 — sacred-couple rehomes (mfr+pid) still stuck in generic_tuya.
tools/ci/apply-p102-sacred-lot3.jsP102 Lot3 — sacred-couple rehomes (mfr+pid) still wrong-class or stuck in generic_tuya / button_wireless_* / climate_sensor.
tools/ci/apply-p117-sacred-rehomes.jsP117 — Sacred-couple rehomes from forum/Gmail/GitHub triage.
tools/ci/apply-p122-multi-source-fixes.jsP122 — Multi-source sacred/data fixes from forum/GH/diag sweep.
tools/ci/apply-p2234-z2m-web-sacred.jsP2234 — Sacred couples from external Z2M/ZHA web research (2026-07/08).
tools/ci/apply-p2236-forum-integral-fix.jsP2236 — Integral forum silent fixes (SHADOW).
tools/ci/apply-p98-sacred-lot1.jsP98 Lot1 — sacred-couple rehomes (mfr+pid) from generic/wrong-class drivers.
tools/ci/apply-safe-sync.jsP52 — Direct sync of safe files from master to stable-v5
tools/ci/apply-safe-timers.jsapply-safe-timers.js
tools/ci/apply-tb25-zemismart-couples.jsapply-tb25-zemismart-couples.js Applies verified TB25/Zemismart/NovaDigital couples from: - Forum post #2173 (Gabriel_Pedrosa_Mach — field-validated) - Z2M converters (Koenkk/zigbee-herdsman-converters, tuya.ts) - Blakad
tools/ci/arch-coverage-deep.jsP76.8: Deep architectural coverage - tracks all wrapper patterns and percentages
tools/ci/archive-disabled.jsarchive-disabled.js
tools/ci/assert-compose-drivers-exist.jsP2483 — Assert every app.json / compose driver id has drivers/<id>/ on disk.
tools/ci/audit-forum.jsaudit-forum.js — audit forum scraper
tools/ci/audit-gh-writes.jsaudit-gh-writes.js - find all scripts that POST/PUT to GitHub
tools/ci/audit-homey-caps.jsAudit our drivers against the OFFICIAL Homey SDK3 capability list (extracted from homey-zigbeedriver's lib/system/capabilities/ + known SDK3 standard capabilities like button, target_temperature, etc.)
tools/ci/audit-johan-references.jsaudit-johan-references.js CRITICAL: audits all workflows, scripts, and configs for any reference to the UPSTREAM repo (JohanBendz/com.tuya.zigbee).
tools/ci/audit-p72-flow-cards-v2.jsP72 v2 — Tighter flow card cross-ref: 1.
tools/ci/audit-p72-flow-cards.jsP72 — Cross-ref every flow card ID used in driver.js against driver.flow.compose.json (or .homeycompose/flow/*.json) declarations.
tools/ci/audit-p72-require-paths.jsP72 — Audit for require-path issues like the sensor_presence_radar bug.
tools/ci/audit-p72-unsafe-methods.jsP72 — Audit for unsafe method calls in driver.js files.
tools/ci/audit-rate-limits.jsaudit-rate-limits.js — P54 Source of truth audit Find all external API call sites in the codebase, with their current rate limit settings.
tools/ci/audit-regressions.jsaudit-regressions.js — P57 Comprehensive Regressions & Degradations Audit Identifies regressions and degradations that have accumulated: 1.
tools/ci/audit-sacred-couple-by-class.jsClass-scale sacred-couple / energy honesty audit (P151 scale playbook).
tools/ci/audit-sacred-couple-dps.jsaudit-sacred-couple-dps.js (P2212) Cross-ref sacred couples (mfr+pid) × driver dpMappings × dp_registry × dp_couple_knowledge.
tools/ci/audit-sacred-couple.jsAudit one manufacturer (or sacred couple) across compose, registry, mfs_db, collisions.
tools/ci/audit-workflows.jsaudit-workflows.js — P54 Source of truth audit Find cron schedule conflicts, timeout issues, rate limit problems in workflows
tools/ci/auto-bot-issue-triage.jsP119 — Auto bot issue triage + close Treats open bot/[Auto]/auto-scan issues on dlnraja/com.tuya.zigbee: 1.
tools/ci/auto-enrich-closed-loop.jsR69 / P99 — auto-enrich-closed-loop.js Closes the loop: crawl → cross-ref → apply FPs → case-variants → re-inject manual fixes → anti-bot gate → validate → commit.
tools/ci/auto-investigate-need-action.jsauto-investigate-need-action.js (P2217) Investigate all need-action forum posts without waiting for user reply.
tools/ci/automation-couple-guard.jsAutomation couple guard — stops bots (auto-fix-all, master→stable/bastien sync, promote/enrich jobs) from undoing curated couple decisions.
tools/ci/backport-candidates.jsbackport-candidates.js (P92.78) Weekly report: lib/ files where master is AHEAD of stable-v5 for more than 7 days — i.e.
tools/ci/bare-zigbee-device-gate.jsbare-zigbee-device-gate.js P102 Phase 3: Fail CI if a driver still extends bare ZigBeeDevice outside known exceptions / allowlist (hybrid leftovers pending migration).
tools/ci/bastien-promote-upstream.jsbastien-promote-upstream.js (P2606 / P2607) Autonomous one-way promote: bastien-home → master → (BOTH reliability) stable-v5.
tools/ci/battery-button-intelligence-gate.jsbattery-button-intelligence-gate.js — P180 Report-only static gate for the two subsystems that silently degrade without ever throwing: battery percentage reporting and button / SOS alarm wiring.
tools/ci/battery-cartography.jsP28.2 — Battery Cartography Tool Maps ALL battery-related code paths in master and stable: 1.
tools/ci/battery-gaps.jsP28.3 — Battery Gaps + Missing Fallbacks Detection Identifies drivers with battery issues: 1.
tools/ci/battery-graph.jsbattery-graph.js — P54 audit tool Show the import graph: who imports which battery files
tools/ci/battery-graph2.jsbattery-graph2.js — fixed version using node's actual resolution
tools/ci/battery-imports.jsbattery-imports.js — P54 audit tool Find which battery files are imported from drivers
tools/ci/battery-summary.jsbattery-summary.js — Print summary of active battery files
tools/ci/bidirectional-enricher.jsbidirectional-enricher.js Master/Stable bidirectional enricher.
tools/ci/blakadder-couple-audit.jsP2819 — Blakadder full couple-aware audit vs our drivers WHY: mfr-only coverage (100%) hides wrong-class placements and pid gaps.
tools/ci/blakadder-cross-ref.jsblakadder-cross-ref.js — P53 Cross-reference the Blakadder database (2693 devices) against our existing knowledge: mfs_db, Johan issues, Gmail diagnostics, our drivers.
tools/ci/blakadder-fetch.jsblakadder-fetch.js — Fetch + parse the Blakadder Zigbee compatibility database Source: https://zigbee.blakadder.com/assets/js/database.js Format: window.database = { "<slug>": { model, vendor, title, zigbeemodel, categor
tools/ci/branch-specific-paths.jsP3019c: files whose content is specific to ONE branch (master / stable-v5 / bastien-home).
tools/ci/brute-force-token-scan.jsbrute-force-token-scan.js
tools/ci/build-device-truth.jsBuild the per-driver device-truth catalog for AI agents.
tools/ci/build-fingerprint-shards.jsbuild-fingerprint-shards.js (P2678) Splits lib/tuya/fingerprints.json into lib/tuya/fp-shards/*.json so Homey runtime can load one small shard on demand.
tools/ci/build-firmware-updates.jsbuild-firmware-updates.js (P92.70 / P194) Generates Homey NATIVE Zigbee firmware updates (firmware v13.2.0+ feature): for every OEM Tuya image in the Koenkk/zigbee-OTA index that matches one of OUR curated fingerprints (
tools/ci/build-gmail-unique-fps.jsbuild-gmail-unique-fps.js Collect Tuya-like manufacturer fingerprints from diagnostic artifacts into .github/state/gmail-unique-fps.json for sacred-couple / driver cross-ref.
tools/ci/build-knowledge-graph.jsbuild-knowledge-graph.js — P56 Knowledge Graph Builder Cross-references ALL documentation, code, drivers, fingerprints, issues, and lessons in the project to build a queryable knowledge graph.
tools/ci/build-product-reference.jsbuild-product-reference.js (v9.0.375) Builds data/product-reference.json: the merged product database used for battery-type-aware curves, energy estimation and device identification.
tools/ci/build-wifi-community-dp-hints.jsP2407 — Build compact WiFi DP hints from community crawls (make-all/tuya-local + tinytuya scanners → Homey runtime catalog).
tools/ci/build-z2m-cache.jstools/ci/build-z2m-cache.js v1.0.0 P64.11 — Auto-build z2m_herdsman_cache.json from Koenkk/zigbee-herdsman-converters.
tools/ci/bump-actions-v4-to-v5-v2.jsbump-actions-v4-to-v5-v2.js Bump remaining @v4 → @v5 in workflows.
tools/ci/bump-actions-v4-to-v5.jsBulk-bump actions/checkout and actions/setup-node from @v4 to @v5
tools/ci/button-cartography.jsP26.2 — Button Cartography Maps every driver's button configuration: - buttonCount (1, 2, 3, 4, 6, etc.) - endpoint support (1, 1+2, 1+2+3+4) - virtual + physical button detection - flow card registration Output: .github
tools/ci/button-flow-harvest.jsbutton-flow-harvest.js (P2364) Harvest all button/scene/knob/remote/SOS drivers — flows, cards, triggers.
tools/ci/button-issues-deep.js_no header_
tools/ci/button-physical-gang-parity-gate.jsP2395 — Legacy underscore switch drivers must declare physical_gang{N} cards (parity with canonical switch_Ngang / wall_switch_*_1way).
tools/ci/case-variant-fixer.jscase-variant-fixer.js (v9.0.373) Homey matches zigbee manufacturerName CASE-SENSITIVELY at pairing time.
tools/ci/categorize-collisions.jscategorize-collisions.js — P53 v2 Categorize the 3,274 fingerprint collisions by pattern/reason.
tools/ci/check-collision-safety.jstools/ci/check-collision-safety.js P83.2 - Compare against LAST KNOWN state (pre-current-changes) Uses git to compute Sacred Couples at HEAD and at HEAD~1, then diffs
tools/ci/check-cron.jscheck-cron.js — show current cron schedules of conflicting files
tools/ci/check-empty-productid.jscheck-empty-productid.js (P2309) Fail CI/local if any zigbee driver.compose.json has productId: [] — Homey prepare-publish FATAL (seen: button_wireless_4_ts0041).
tools/ci/check-import.jscheck-import.js — Show what UnifiedSensorBase imports from battery
tools/ci/check-johan-count.jscheck-johan-count.js
tools/ci/check-open-buttons.js_no header_
tools/ci/check-rate-limit.jscheck-rate-limit.js
tools/ci/check-stats.js_no header_
tools/ci/check-targets.jscheck-targets.js
tools/ci/check-writes.jscheck-writes.js
tools/ci/classify-dual-app-change.jsclassify-dual-app-change.js Prints BOTH / MASTER_ONLY / STABLE_ONLY guidance for a path or commit message.
tools/ci/cleanup-ghost-workflows.jstools/ci/cleanup-ghost-workflows.js — identify + delete ghost workflows
tools/ci/coherent-icon-generator.jscoherent-icon-generator.js Generates coherent driver icons that respect the Homey design system: - SVG viewBox: 0 0 960 960 (Homey standard) - Color palette: blue tones (#2C5282, #4299E1, #1A365D) + neutrals - PNG: 75x75
tools/ci/collect-johan-comments-to-delete.jscollect-johan-comments-to-delete.js Extracts ALL comment IDs from JohanBendz/com.tuya.zigbee posted by dlnraja OR by our bots (Mavis, github-actions, etc.) Output: - .github/state/johan-comments-to-delete.json (with comm
tools/ci/compare-mfs-db.jscompare-mfs-db.js — compare mfs_db.json between master and stable
tools/ci/compensate-incomplete-reports.jscompensate-incomplete-reports.js (P2418 / P2419 hang-proof) WHY: Forum/gmail posts often omit productId — do not stall.
tools/ci/compose-appjson-fingerprint-sync-gate.jsP2791 — compose ↔ app.json fingerprint drift gate (check only, never writes).
tools/ci/compose-mfsdb-class-guard.jscompose-mfsdb-class-guard.js (P92.68) mfs_db.json is the CURATED per-device truth (mfr → driverId).
tools/ci/contributor-repo-dump.jscontributor-repo-dump.js — READ-ONLY intel from sibling Homey Zigbee repos.
tools/ci/couple-absent-search.jscouple-absent-search.js (P2365) When a diag has couple ABSENT: search / cross-ref / soft-hypothesize — NEVER invent pid, NEVER write compose.
tools/ci/couple-pin-gate.jsCouple pin gate: every manufacturerName listed in config/architecture/couple-driver-pins.json as an exact mfr+pid couple must be claimed (case-insensitive) only by its pinned driver.
tools/ci/coverage-dp-cluster-flow.jscoverage-dp-cluster-flow.js (P2247) Single CI report for DP knowledge × cluster lexicon × flow compose coverage.
tools/ci/cross-project-better-reimpl.jsP116 — Cross-project better reimplementation gate Does NOT copy Z2M/ZHA/Johan code.
tools/ci/cross-ref-all-sources.jscross-ref-all-sources.js — extract mfr+PID from ALL sources and find new combinations P2231/P2232: blakadder, z2m, zha, deconz, forum, gmail, github-own, interview, device-truth
tools/ci/cross-ref-gmail-fps-v2.jsV2: Correct cross-ref - FPs = manufacturerName in zigbee section of driver.compose.json Requires / builds .github/state/gmail-unique-fps.json (via build-gmail-unique-fps.js).
tools/ci/cross-ref-gmail-fps.jsCross-ref Gmail FPs with our mfs_db + app.json + drivers
tools/ci/cross-ref-mfs.jscross-ref-mfs.js — v9.0.265 (P64.7) Regular practice helper: cross-reference an MFS (manufacturer + product ID + optional device name) against ALL known sources.
tools/ci/cross-source-user-report-triage.jscross-source-user-report-triage.js — P184 Cross-references the Zigbee identities that REAL USERS mentioned against what the drivers actually claim, using every local evidence source at once: - GitHub issues and pull requ
tools/ci/daily-digest.jsR8 — Daily activity digest Reads all the state files and produces a concise summary
tools/ci/daily-knowledge-sync.jsdaily-knowledge-sync.js — P56 Daily Knowledge Graph Sync Runs daily (off-peak) to: 1.
tools/ci/dashboard-both-apps.jsP25.7 / P2240 — Dashboard monitor for BOTH apps (master + stable) Runs dashboard-monitor.js per Athom app ID with portable repo paths.
tools/ci/dashboard-state-summary.jsP76.8 / P2240: Dashboard state summary (single app + dual-app report)
tools/ci/dead-module-audit.jsdead-module-audit.js — finds lib modules that nothing in the repo requires.
tools/ci/debug-events.jsDebug: print event types distribution
tools/ci/debug-variants.jsCheck Z2M cache for case variants of our 96 mfrs
tools/ci/debug-water-valve.jsdebug-water-valve.js
tools/ci/dedup-duplicate-mfrs.jsdedup-duplicate-mfrs.js (P58.11) ========================================================================== Find and dedup 211 duplicate manufacturerNames in driver.compose.json.
tools/ci/deep-functional-enrich-pass.jsdeep-functional-enrich-pass.js (P2529) WHY: Inbox/cron must not stop at mfr+pid — force DP/cluster/flow/RX-TX audit checklist.
tools/ci/delete-johan-all.jsdelete-johan-all.js — ONE-SHOT full execution CARTE BLANCHE mode (P11) — No confirmations.
tools/ci/delete-johan-comments.jsdelete-johan-comments.js ⚠️ CARTE BLANCHE — P11 policy change (2026-07-12) ⚠️ PREVIOUSLY required 3 confirmations (ALLOW_UPSTREAM_WRITE, --confirm, GH_TOKEN).
tools/ci/design-system-audit.jsdesign-system-audit.js Audits the existing driver image design system: - PNG dimensions and sizes - SVG viewBox conventions - Color palettes - Style patterns
tools/ci/detect-data-flooding.jsdetect-data-flooding.js — P57 Data Flooding Detector Scans all driver device.js files in drivers/ to detect: 1.
tools/ci/detect-multi-device-mfrs.jsdetect-multi-device-mfrs.js For each of the 96 newly-integrated mfrs, detect if it could/should be in MULTIPLE drivers (one mfr → multiple devices is valid per the user's note "le mfrs peut avoir plusieurs devices et var
tools/ci/device-investigator.jstools/ci/device-investigator.js v9.0.270 P64.10 — Comprehensive per-device deep investigator.
tools/ci/device-io-facade-smoke.jsP102 DeviceIOFacade smoke — full API + compensation + fusion hooks.
tools/ci/diag-forum-p94-routing.jstools/ci/diag-forum-p94-routing.js Read-only diagnostic for forum P94 fingerprint placements.
tools/ci/diag-recursive-inbox-automate.jsdiag-recursive-inbox-automate.js (P2233) Automates: list missing Gmail msg IDs → ingest bodies → recursive treat → investigation summary.
tools/ci/diagnostics/inspect-circular-dep.jsInspect circular dep files
tools/ci/diff-collision-baseline.js_no header_
tools/ci/disable-redundant-workflows.jsdisable-redundant-workflows.js Identifies scheduled workflows that overlap with continuous-flow.yml and moves them to .github/workflows/.disabled/ (or appends .disabled).
tools/ci/discovery-lineage-enrich-gate.jsP2281 — Discovery lineage enrich gate WHY: Workflows must carry past (P102–P2266), recent (P2267 E002, P2268 parallel), and present (P2269+) discoveries — SHADOW, mfr+pid only, never invent pid.
tools/ci/download-gh.js_no header_
tools/ci/download-z2m-all.jsDownload and parse z2m device definitions for ALL vendor categories.
tools/ci/download-zha-quirks.jsDownload ZHA quirks from zha-device-handlers repo and extract (manufacturer, model) pairs.
tools/ci/dp-diagnostic.jsP26.5 — Lower-Level Tuya DP Diagnostic Tool Captures all DPs from a device interview and identifies DPs that are NOT handled by the current driver.
tools/ci/dp-registry.jstools/ci/dp-registry.js v1.0.0 P64.11 — Smart DP inference registry.
tools/ci/driver-class-fleet-enrich.jsdriver-class-fleet-enrich.js (P2372) Enrich ALL Homey driver classes (button/socket/switch/sensor/light/curtain/ thermostat/meter/fan/lock/siren/ir/wifi) — coverage report + safe apply hooks.
tools/ci/driver-confidence-scoring.jsP24.4 — Driver confidence scoring (gamification by points) Combines multiple signals into a per-driver confidence score: - z2m support: +10 points (well-maintained, large community) - ZHA quirks: +8 points (official ZHA
tools/ci/drivers-smoke-test.jsdrivers-smoke-test.js — requires every drivers/<id>/device.js in an isolated subprocess (homey stub preloaded) and reports load failures.
tools/ci/dual-app-benefit-recent.jsP2543 — Dual-app intelligent benefit (BOTH).
tools/ci/dual-claim-compose-gate.jsdual-claim-compose-gate.js Report-only gate: find manufacturerName values (case-folded) that appear in 2+ drivers whose productId sets intersect — exact dual-claim / fingerprint collision risk under Homey pairing.
tools/ci/dynamic-db-orchestrator.jstools/ci/dynamic-db-orchestrator.js P83.2 - Master orchestrator: cross-references ALL data sources with drivers, applies safe enrichments, syncs master+stable, audits Sacred Couples, and produces a complete report.
tools/ci/email-guard.jsP2957: no third-party personal email addresses in tracked files (forum users, store authors, diag senders).
tools/ci/energy-compose-gate.jsenergy-compose-gate.js Homey Energy v3 rule: a driver MUST NOT define both energy.approximation and power metering capabilities (measure_power / meter_power).
tools/ci/enforce-dual-couple-legacy.jsP2797 — keep dual-couple resolutions (P2794) from being undone by enrichment scripts.
tools/ci/enhance-locales.jsP31.5 — Locale Enhancement Script Ensures every button driver has full trilingual (en/fr/nl/de) coverage for button_mode setting + scene_recall flow cards.
tools/ci/enrich-battery-drivers.jsP79.2: Enrich battery drivers - add UnifiedBatteryHandler to drivers that have measure_battery but don't have it yet.
tools/ci/enrich-button-drivers.jsP77.2: Enrich button drivers with safety patterns Adds _destroyed checks and orig() wrappers to button drivers that lack them
tools/ci/enrich-driver-settings-intelligent.jsIntelligent driver settings enrichment (L99 / forum-driven) WHY: Homey users need power_scale / Solar Sync / backlight strings without inventing sacred couples.
tools/ci/enrich-market-colocate.jsenrich-market-colocate.js (P2319) Enrichment-first: for market-new sacred couples, ADD mfr∧pid onto the verified driver so Homey can pair.
tools/ci/enrich-mfs-p2295-multi-identity.jsenrich-mfs-p2295-multi-identity.js Doctrine: - Sacred couple = (manufacturerName, productId) only.
tools/ci/enrich-orig-wrappers.jsP77.3: Add orig() wrapper to button drivers that lack it The orig() pattern preserves the original function so SDK3 auto-registration still works for capabilities that aren't manually handled.
tools/ci/enrich-orphan-drivers.jsenrich-orphan-drivers.js (P80.5) — v7 variants-aware variant of v4 V4 was good (135 mfrs, 0 collisions) but didn't account for: - mfrs that cover MULTIPLE PIDs (e.g.
tools/ci/enrich-sacred-couples.jsP24.9 — Sacred Couple Auto-Enrichment Runs as a cron job (every 6h via shadow-mode-runner).
tools/ci/ensure-case-variants.jsensure-case-variants.js (P99 + P2677) Homey compose fingerprint matching is case-sensitive at the string level.
tools/ci/ensure-physical-flow-cards.jsensure-physical-flow-cards.js (P205) Scan drivers that use PhysicalButtonMixin / VirtualButtonMixin and ensure driver.flow.compose.json declares {driver}_physical_gang{N}_{on\|off} (and 1-gang {driver}_physical_{on\|off}
tools/ci/extract-crash-details.jsextract-crash-details.js — extract full stack traces from crashes
tools/ci/extract-forum-couples-once.jsExtract actionable mfr+pid couples from forum silent digest + new-fps
tools/ci/extract-gmail-fps.jsExtract unique FPs from Gmail diagnostics + categorize
tools/ci/extract-new-mfrs-from-johan.jsextract-new-mfrs-from-johan.js Extracts the mfrs that are referenced in Johan issues but NOT yet in the canonical fingerprints DB.
tools/ci/fetch-all-activity.jsP30.2-P30.4 — Unified Activity Fetcher Fetches in one pass: - All open/recent GH issues - All recent GH comments (with issue link) - All recent GH events - All recent PRs - All recent forum topics with full discussion th
tools/ci/fetch-dlnraja-comments-public.jsfetch-dlnraja-comments-public.js Uses PUBLIC GitHub API (no auth) to fetch all dlnraja comments on JohanBendz/com.tuya.zigbee.
tools/ci/fetch-forum.jsfetch-forum.js — fetch homey community forum via public RSS + categories
tools/ci/final-emails-analysis.jsfinal-emails-analysis.js — comprehensive analysis of all 10,742 emails
tools/ci/final-p10-state.jsfinal-p10-state.js
tools/ci/final-p9-state.jsfinal-p9-state.js
tools/ci/find-battery-index-imports.jsfind-battery-index-imports.js — Find who requires lib/battery or lib/battery/index directly
tools/ci/find-battery-missing-mfs.jsP77.1: Find battery drivers that need enrichment Battery drivers are 247 of 431.
tools/ci/find-battery-name-uses.jsfind-battery-name-uses.js — Find any code that uses the removed re-exports
tools/ci/find-battery-no-destroyed-v2.jsP76.4 v2: Check if base class has _destroyed check
tools/ci/find-battery-no-destroyed.jsP76.4: Find battery drivers missing _destroyed check (potential crash)
tools/ci/find-battery-no-safeset-v2.jsP76.8 v2: Check if base class has safeSetCapabilityValue
tools/ci/find-battery-no-safeset.jsP76.8: Find battery drivers missing safeSetCapabilityValue
tools/ci/find-broken-drivers.jsfind-broken-drivers.js — find drivers missing manufacturerName
tools/ci/find-case-mismatch-mfrs.jsfind-case-mismatch-mfrs.js (P82.4) - ULTIMATE EDITION v10.0.0: Now uses lib/utils/TuyaNormalizer for normalization.
tools/ci/find-flow-issues.jsfind-flow-issues.js — find all flow card inconsistencies
tools/ci/find-global-timers.jsP76.3 v2: Find drivers using GLOBAL setTimeout/setInterval (not this.homey, not safe variant)
tools/ci/find-incoherent-icons.jsfind-incoherent-icons.js - Find drivers whose icons don't follow the design system
tools/ci/find-invalid-flow-cards.jsfind-invalid-flow-cards.js — find the exact invalid card IDs
tools/ci/find-missing-mfrs.jsP76.8: Find drivers missing manufacturerNames
tools/ci/find-no-oninit.jsP79.1: Find drivers with simple onNodeInit (no battery, no button enrichment)
tools/ci/find-raw-capability-value-v2.jsP76.2 v2: Find ACTUAL raw setCapabilityValue (not super, not this.setCapabilityValue) P76.2 fix: use line-by-line analysis to find calls NOT in the safe set
tools/ci/find-raw-capability-value.jsP76.2: Find drivers using raw setCapabilityValue (not safe variant)
tools/ci/find-raw-timers.jsP76.3: Find drivers using raw setTimeout/setInterval (not safe variant)
tools/ci/find-syntax-errors.jsP72 — Find syntax errors in all drivers/ files.
tools/ci/find-workflow-escape-bugs.jsP76.6: Find workflows with potential escape bugs (trailing \n in heredocs)
tools/ci/firmware-updates-gate.jsfirmware-updates-gate.js (P194 / P2359) Homey Device Updates (v13.2+): files[].name is a basename under drivers/<id>/assets/firmware/<name>.
tools/ci/fix-door-sensor-mfrs.jsfix-door-sensor-mfrs.js Fix the 5 mfrs that were "mapped" to door_sensor (which doesn't exist as a driver).
tools/ci/fix-double-prefix-flow-ids.jsfix-double-prefix-flow-ids.js — v9.0.263 (P64.1) Several driver.flow.compose.json files have flow card IDs with double prefixes (e.g.
tools/ci/fix-double-slash-assets.jsP2311: Homey compose expands /{{driverAssetsPath}}/... to //drivers/... which Athom resolves as a missing S3 key ("The specified key does not exist").
tools/ci/fix-driver-compose-gaps-v2.jsfix-driver-compose-gaps-v2.js — fix canonical gaps using canonical FP lookup
tools/ci/fix-driver-compose-gaps.jsfix-driver-compose-gaps.js — apply canonical gaps to actual driver.compose.json files
tools/ci/fix-flow-card-dups-r68v2.jsR68 v2: Fix flow card ID collisions across drivers (R65 had a bug) For each cross-driver collision, rename the subdriver's copy by prepending the driver name to make it unique.
tools/ci/fix-mojibake.jsfix-mojibake.js (v9.0.368) Repairs UTF-8 double-encoding (mojibake) in JSON files using a STRICT map of known-corrupt sequences only (é→é, °→°, …).
tools/ci/fix-unbound-catch-this-error.jsP117 — Fix unbound .catch(this.error) crash vector (Gmail unbound_destroyed).
tools/ci/fix-yaml-separators-v2.jsfix-yaml-separators-v2.js — P53 (updated P55.1 for stable) Remove the extra --- separator that P54 D1 commit 8565cb363 added between defaults: and the next section (name: or comment block) in 11 workflows.
tools/ci/fix-yaml-separators.jsfix-yaml-separators.js — P53 Fix workflows that have multiple YAML documents (caused by merge regressions).
tools/ci/fleet-intelligent-enrich.jsfleet-intelligent-enrich.js (P2371) Full silent fleet enrichment: crawl Z2M/ZHA/Blakadder/deCONZ + forum cross-ref → apply-safe sacred couples, mfs alignment, settings/flows, collision prune.
tools/ci/flow-card-dup-gate.jsflow-card-dup-gate.js Detect duplicate Flow card IDs the way Homey compose merges them: global .homeycompose/flow/(triggers\|conditions\|actions)/.json + each drivers//driver.flow.compose.json
tools/ci/flow-coherence-audit.jstools/ci/flow-coherence-audit.js
tools/ci/flow-fleet-enrich.jsflow-fleet-enrich.js (P2375) CI-only fleet flow enrichment — all driver classes, all sources.
tools/ci/flow-l99-orchestrator.jsflow-l99-orchestrator.js — Ship F Aggregates existing flow gates into one report (CI only — not Homey bundle).
tools/ci/flow-mcp-shape-gate.jsFlow-card shape gate for AI assistants (Homey MCP server / ChatGPT app, mcp.athom.com).
tools/ci/flow-titleformatted-args-gate.jsP2749f — Flow titleFormatted must include every arg for every locale.
tools/ci/forum-actionable-processor.jsforum-actionable-processor.js (P2210) Process every actionable forum post ONE BY ONE: - Sacred couple (mfr+pid) extraction - Cross-ref: drivers, misattribution registry, KNOWN_ROUTES, device-truth - Dual-app classificati
tools/ci/forum-ai-paste-gate.jsforum-ai-paste-gate.js (P108 / T157628) Detects "unchecked AI paste" patterns in forum drafts / reply templates.
tools/ci/forum-deep-investigate.jsforum-deep-investigate.js Deep investigation of all recent Homey forum posts, images, PMs, and threads.
tools/ci/forum-dispatch-diag-if-new.jsDispatch Tuya Deep Diagnostics for at most one UUID harvested from PMs.
tools/ci/forum-fetch-140352.jsforum-fetch-140352.js — P53 v2 Fetches ALL messages from the Homey community forum topic #140352 (Universal Tuya Zigbee Device App — main user feedback channel).
tools/ci/forum-fetch-146735.jsforum-fetch-146735.js READ-ONLY scan of Homey community topic #146735 (Tuya Smart Life / Smart Living — official/cloud thread).
tools/ci/forum-fetch-post.jsQuick tool to fetch a forum post by number
tools/ci/forum-fetch-posts.js_no header_
tools/ci/forum-full-analyze.jsforum-full-analyze.js — Classifies every post of the full forum topic: bug reports, device requests, diagnostics codes, questions, thanks, maintainer answers.
tools/ci/forum-full-fetch.jsforum-full-fetch.js — P87 Fetch ALL posts from topic 140352 + search related topics on community.homey.app.
tools/ci/forum-full-retry.jsforum-full-retry.js — retries the missing post IDs with longer delays and merges them into forum-full-topic.json.
tools/ci/forum-full-scrape.jsforum-full-scrape.js — Fetches EVERY post of the forum topic via the Discourse JSON API (post stream + batched post fetches), extracting text, image URLs and link URLs for each post.
tools/ci/forum-integration.jsforum-integration.js Autonomous forum thread integration.
tools/ci/forum-media-deep-scan.jsforum-media-deep-scan.js Silent deep scan of recent Homey forum posts: FPs + image alts/URLs + hyperlinks.
tools/ci/forum-pm-read-only.jsRead-only Homey Community PM harvest (T157628).
tools/ci/forum-poll.jsforum-poll.js — P69 Polls the Homey community forum (Discourse API) for new posts in our 140352 thread and related topics.
tools/ci/forum-signal-extract.jsForum text → fingerprints + cluster IDs + reliability symptoms.
tools/ci/forum-silent-multi-scan.jsforum-silent-multi-scan.js (P108) READ-ONLY scan of Homey Discourse topics for fingerprints + symptoms.
tools/ci/forum-t140352-recent-harvest.jsWHY (P215): Live T140352 harvest — Discourse /t/{id}/{N}.json is post_number, not page.
tools/ci/forum-tail.jsforum-tail.js — P87 Walks Discourse's /t/{id}.json?page=N to get ALL posts (or up to N pages), then keeps the LAST 100 with their full content + FPs.
tools/ci/forum-temporal-collect.jsP26.6.1 — Get all forum messages with timestamps via Discourse API Discourse exposes public API: - /search.json?q=tuya+zigbee+button (with auth) - /t/{id}.json (single topic with all posts + timestamps) - /posts.rss (RSS
tools/ci/forum-threads-scan.jsOne-off: fetch recent posts from Tuya/Zigbee forum threads, extract (mfr, pid) pairs, and diff against the local fingerprint catalog.
tools/ci/fp-count.jsCount FPs in fingerprints.json
tools/ci/free-scrape-budget.jsfree-scrape-budget.js (P2372) Shared daily budget for free/keyless readers (Jina, Microlink, AllOrigins, Wayback, Firecrawl).
tools/ci/free-scrape-crossref.jsfree-scrape-crossref.js — autonomous free-tier multi-source cross-ref Re-runs the session investigation prompts using $0 scrapers: Homey forum · Z2M · GitHub · Blakadder · Reddit (public JSON) Usage: node tools/ci/free-s
tools/ci/generate-catch-all-snapshot.jstools/ci/generate-catch-all-snapshot.js
tools/ci/generate-docs-index.jsgenerate-docs-index.js (v9.0.368) Generates docs/INDEX.md — a grouped table of contents of every docs/*.md, with the first heading of each file as its title, plus an "archivable" section for docs that are old AND unrefer
tools/ci/generate-flow-handlers.js_no header_
tools/ci/get-job-failures.jsGet jobs + their conclusions for a given run
tools/ci/gh-run-info.jsGet run info via API
tools/ci/github-security-elementary-gate.jsP2383 — harden GitHub elementary security gate (P2206+) Checks: 1.
tools/ci/gmail-crash-pattern-gate.jsgmail-crash-pattern-gate.js (P100) Cross-ref Gmail crash/diag emails + carto/dashboard reports into a single actionable signature report.
tools/ci/gmail-diagnostics.jsCompatibility wrapper — AGENTS.md / mega-crawler historically pointed here.
tools/ci/harden-mfs-db.jsharden-mfs-db.js (P2368) Full mfs_db maintenance pipeline.
tools/ci/harden-unknown-zigbee.jsharden-unknown-zigbee.js (P2366) Reduce "Unknown Zigbee Device" / generic Zigbee pairing failures: 1.
tools/ci/harden-wifi-local.jsharden-wifi-local.js (P2367) WiFi local-first hardening orchestrator: 1.
tools/ci/harvest-all-sources.jsharvest-all-sources.js (P2365) Full silent harvest: Z2M + ZHA + Blakadder + deCONZ + cross-ref → apply-safe sacred couples into driver.compose.json.
tools/ci/homey-dashboard-check.js_no header_
tools/ci/homey-heap-json-gate.jshomey-heap-json-gate.js — prevent Homey Pro ~64MB heap regressions from huge JSON.
tools/ci/homey-sdk-rules-doc.jsP2964 — (re)generate docs/knowledge/HOMEY_SDK_RULES.md from tools/ci/homey-sdk-rules.js.
tools/ci/homey-sdk-rules-refresh.jsP2964 — Refresh the data snapshot used by tools/ci/homey-sdk-rules.js.
tools/ci/homey-sdk-rules.jsP2964 — Homey SDK v3 rules checker (data-driven).
tools/ci/homey-store-peer-probe.jsP2657 — Homey Store peer probe (Zigbee / Tuya / SmartLife / WiFi / alts).
tools/ci/house-data-guard.jsP3120 (01/11/2026 Paris, t682u): nothing from the Bastien house (device/room names, schedules, presence, Homey ids, IEEE addresses, flows) may live in the repo.
tools/ci/identifier-audit.jsR20 identifier audit. Homey pairs on the EXACT manufacturerName/productId strings (case-sensitive), so compose lists keep the reported forms; this audit finds what exact matching hides: 1. malformed entries: whitespace/N
tools/ci/image-full-audit.jsimage-full-audit.js (P92.90) Complete image/icon audit across all drivers (rules IC1-IC4): - IC1: driver SVG icons — viewBox 960, no gradients, no embedded rasters, ≤50KB - IC3: PNG images small/large/xlarge present per
tools/ci/import-grok-bot-prompts.js_no header_
tools/ci/inbox-diag-uuid-harvest.jsP2326 — Harvest Homey diag UUIDs from forum media + local reports, fetch via Athom.
tools/ci/infer-enrich-from-incomplete.jsinfer-enrich-from-incomplete.js When forums/git/Gmail/external sources are partial or empty, still investigate using ALL local corpora, score heuristics, and propose (or apply) high-confidence Sacred Couple rehomes.
tools/ci/inject-forfait-env-workflows.jsP2562 — Inject forfait + local-learn env into ALL workflows (not only cron/AI).
tools/ci/inspect-all.jsinspect-all.js
tools/ci/inspect-dashboard.jsinspect-dashboard.js — inspect the deep diag data
tools/ci/inspect-opencode-db.jsinspect-opencode-db.js
tools/ci/integrate-new-mfrs.jsintegrate-new-mfrs.js APPLIES the 96 mapped mfrs from Johan to: 1.
tools/ci/intelligent-cache-bridge.jsintelligent-cache-bridge.js — stats / invalidate across CI cache dirs (SSOT).
tools/ci/intelligent-github-respond.jsintelligent-github-respond.js — Ship 0 WHY: Human issues/PRs need verified couple-aware replies; forum stays SHADOW.
tools/ci/intelligent-logger.jsIntelligentLogger — CI / tools only (not Homey bundle).
tools/ci/intelligent-source-diff.jsintelligent-source-diff.js (P2376) Git-diff-style orchestrator for external enrichment sources.
tools/ci/intelligent-variant-finder.jsintelligent-variant-finder.js INTELLIGENT variant finder: for each mfr, search for ALL possible device IDs and alternative device names.
tools/ci/inventory-features-bugs.jsinventory-features-bugs.js (P2225) Inventories feature domains + historical bug classes + critical gaps.
tools/ci/investigate-device-peculiarities.jsCross-source investigation of every locked peculiarity (registry + compound DB).
tools/ci/johan-dump.jsjohan-dump.js — READ-ONLY regular fetch of JohanBendz/com.tuya.zigbee NO writes.
tools/ci/johan-enrichment.jsjohan-enrichment.js — cross-reference Johan dump with our drivers + mfs_db NO writes to Johan.
tools/ci/johan-ticket-importer.jsjohan-ticket-importer.js Autonomous Johan Bendz GitHub issues integration.
tools/ci/js-syntax-audit.jsjs-syntax-audit.js — syntax-checks every repo JS file IN-PROCESS (vm.Script), ~100x faster than spawning node --check per file.
tools/ci/kg-query.jskg-query.js (v9.0.368) — Knowledge Graph query tool Answers questions like: node tools/ci/kg-query.js mfr _TZE204_YJJDCQSQ → pids associés node tools/ci/kg-query.js pid TS0207 → mfrs associés node tools/ci/kg-query.js un
tools/ci/l14-capability-writers-gate.jsl14-capability-writers-gate.js (P205) Fail if primary battery/energy writers bypass safeSetCapabilityValue.
tools/ci/l99-dual-app-enrich-gates.jsL99 dual-app enrich gates — regular CI enrichment WHY: Two apps (master 9.0 / Universal Tuya vs stable 5.12 / .stable).
tools/ci/l99-inbox-intelligence-orchestrator.jsl99-inbox-intelligence-orchestrator.js (P2352) WHY: Regular intelligent harvest of Gmail + GitHub (issues/PRs) + Homey forum + driver/couple gates → prioritized silent enrichment report (never forum POST).
tools/ci/layer-coverage-gate.jsP206 — layer coverage gate Ensures orphan / stub bases inherit TuyaZigbeeDevice and bootstrap exists.
tools/ci/layer-pass-audit.jsLayer pass audit: energy / buttons / flows (report-only by default).
tools/ci/lib-smoke-test.jslib-smoke-test.js — loads every lib JS file in an isolated subprocess (5s timeout each) and reports which ones crash at require time.
tools/ci/lib/reviewed-duals.jsShared reader for data/native-matrix-reviewed-duals.json (user decision 2026-10-04): reviewed exact-pair placements where the old driver keeps the couple.
tools/ci/lint-bare-zigbee-device.jsAlias / baseline helper for bare-zigbee-device-gate.js Prefer: npm run check:bare-zigbee --update-baseline rewrites tools/ci/bare-zigbee-allowlist.json from current tree.
tools/ci/list-runs.jsList runs via API to avoid gh wrapper issues
tools/ci/local-agenttrace.jslocal-agenttrace.js v2.0 Real implementation of agenttrace-style analysis for Codex sessions.
tools/ci/local-auto-improve-orchestrator.jsP2542 — Local auto-improve orchestrator (ZERO remote AI).
tools/ci/local-intelligent-solver.jsP2438 — Local intelligent solver (no remote AI).
tools/ci/local-workflow-learn.jsP2562 — CLI for LocalWorkflowLearner (all GHA workflows).
tools/ci/locale-completeness.jslocale-completeness.js (v9.0.368) Verifies every locale has the same leaf keys as en.json (nested), and that no file contains UTF-8 double-encoding mojibake (é, °, …).
tools/ci/malformed-mfr-gate.jsR16: malformed / synthetic manufacturerNames (OCR digit padding with the wrong shape, placeholders like _TZE200_xxxxx) can never match a real device and are never ADDED.
tools/ci/mark-battery-deprecated.jsmark-battery-deprecated.js — P54 phase 1 Add @deprecated JSDoc to the 14 battery files that are NEVER IMPORTED anywhere.
tools/ci/market-couples-intake.jsmarket-couples-intake.js (P2231) Regular recovery of new sacred couples (manufacturerName + productId) from market sources: Blakadder, Z2M, ZHA, deCONZ, forum SHADOW, Gmail/diag/crash, own GitHub intel, interviews, devic
tools/ci/market-driver-infer.jsmarket-driver-infer.js (P2231 / P2232) Infer Homey driver from Z2M/Blakadder/interview/device-truth + soft adaptive heuristic.
tools/ci/max-coverage-investigate.jsmax-coverage-investigate.js — P177 Single entry for FREE / local-first max coverage investigation + maintenance dry-runs.
tools/ci/mega-crawler.jsmega-crawler.js — P53 Orchestrates ALL external data source crawlers in sequence.
tools/ci/mfs-db-dedupe.jsmfs-db-dedupe.js (P92.61) data/mfs_db.json keys are matched CASE-INSENSITIVELY at runtime (lib/utils/fingerprint-matcher.js normalizes every lookup).
tools/ci/mfs-db-enricher.jsmfs-db-enricher.js Enriches data/mfs_db.json with new mfrs from Johan/forum/canonical integration.
tools/ci/mocha-flaky-retry.jsP3243b: a git hook exports GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE; tests that git init a fixture would then write into the REAL repo (core.bare=true, core.worktree=<other tree>, fixture commits on a live branch).
tools/ci/module-load-health.jsmodule-load-health.js — P187 node --check only parses.
tools/ci/multi-source-enrich-orchestrator.jsP114 — Multi-source enrich orchestrator Closed chain across local state + CI sources: forum silent routes → sacred lots (p101/p102) → blakadder → infer-enrich (dry) → collision gate (dry) → diag sacred dry-gate NEVER bli
tools/ci/no-auto-post-gate.jsReport-only gate (add --strict to fail): lists scripts that look like they POST to the forum, GitHub comments or mail without going through scripts/lib/post-guard.js.
tools/ci/node-test-strict.jsP3243b: a git hook exports GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE; tests that git init a fixture would then write into the REAL repo (core.bare=true, core.worktree=<other tree>, fixture commits on a live branch).
tools/ci/non-diag-ids.jsP3221: shared lookup for UUIDs that look like Homey diag codes but are not (e.g.
tools/ci/normalize-homey-changelog.jsP2964 — Normalize .homeychangelog.json to the shape Athom documents: { "<x.y.z>": { "en": "...", "<lang>": "..." }, ...
tools/ci/ocr-delegate-preview.jsWHY(P2582): forfait-safe OCR delegate preview (no LLM).
tools/ci/ocr-delegate-rules.jsWHY(P2582): resolve Homey-tuned OCR rules for critical runtime paths.
tools/ci/ocr-intelligent-cron.jsP2592 — Intelligent Alibaba Open Code Review (forfait / free) WHY: - Gratuit: ocr delegate preview only (no OCR LLM / no paid tokens) - Intelligent: skip when recent commits do not touch reviewable paths - Regular: cal
tools/ci/offline-crash-analyzer.jsP31.2 — Offline Crash/Diagnostic Analyzer Pure heuristic engine.
tools/ci/p2138-sacred-couple-matrix-gate.jsP2138 / sacred-couple matrix gate (HomeSuite + PresentSky lessons) Enforces runtime + catalog rules that workflows must not regress: 1.
tools/ci/p214-intelligent-protocol-gate.jsGate: all driver lineages must adapt ZCL ↔ EF00 via IntelligentProtocolDetect.
tools/ci/p216-zcl-battery-half-percent-gate.jsP216 — refuse blind ZCL battery /2 on hot paths (100% → 50%).
tools/ci/p217-fork-harvest-gate.jsP217 fork / alternative-app harvest gate WHY: JohanBendz PRs #1435/#1437/#1439/#1442 and sister forks shipped verified (mfr+pid) couples that we had in the wrong driver or not at all.
tools/ci/p2182-lock-tb25-wall-pids.jsLock TB25 ZCL wall-switch sacred couples onto subdevice drivers and strip climate/sensor cartesian productIds.
tools/ci/p2268-apply-parallel-couple-fixes.jsP2268 — Apply parallel-project sacred-couple corrections (shadow enrich) Sources: ZHA #5260, #5117 · Z2M PJ-MGW1203 / ATMS10013Z3 · misattribution cleanup
tools/ci/p2270-apply-min-discoveries.jsP2270 — Apply-min discoveries (tier A/B) Dry-run by default.
tools/ci/p2270-discussion-harvest.jsP2270 — Validate discussion harvest report (shadow).
tools/ci/p2270-regenerate-discoveries-md.jsRegenerate discussion-harvest DISCOVERIES.md + fix JSON count.
tools/ci/p2284-handleframe-chain-gate.jsP2284 gate — handleFrame chain must not blind-overwrite.
tools/ci/p2415-pir-multicap-enrich.jsP2415 — PIR / multi-cap presence enrich (verified couples only) WHY: ZG-204ZV TZE200 siblings sat on motion_sensor; ZG-204* pids polluted motion cartesian; soil o9ofysmo wrongly listed in radar configs; curtain r0jdjrvi
tools/ci/p2448-rotary-knob-gate.jsP2448 — Rotary knob command-mode gate Prevents regression of ERS-10 / ZG-101ZD rotation: 1.
tools/ci/p2449-declared-flow-wire-gate.jsP2449 — Declared flow cards must be wirable (fleet) — optimized Uses ripgrep when available; otherwise scoped hotspot scan (not full tree walk).
tools/ci/p244x-knob-flow-gate.jsP244x — single entry: P2448 + P2449 gates then critical tests (one npm hop).
tools/ci/p2495-publish-path-gate.jsP2495 — Publish path + CI/CD Contre quoi gate WHY(P215): - Pourquoi: discoveries P2490–P2494 (couple-native, sacred-keep, family gates, P139 soft-continue) must stay wired into publish scripts AND workflows - Comment: va
tools/ci/p2498-pairing-discovery-gate.jsP2498 — Pairing / discovery Contre quoi gate
tools/ci/p2500-capability-ux-gate.jsP2500 — Homey Capability UX Contre quoi gate Never getable:false / preventInsights on sensor readables in compose.
tools/ci/p2519-anti-regression-enrich-gate.jsP2519 — CI gate: enrich must be append-only (no capability wipe, no sacred drop).
tools/ci/p2520-complementary-variant-enrich-gate.jsP2520 — Complementary variant enrich gate Contre quoi: missing doctrine SSOT/helper, or merge helper that allows shrink.
tools/ci/p2525-t146735-local-first-gate.jsP2525 gate — T146735 local-first SSOT + wiring present.
tools/ci/p2527-untrusted-content-gate.jsP2527 gate — UntrustedContentGuard + SSOT present; Contre quoi unit tests green.
tools/ci/p2529-deep-functional-enrich-gate.jsp2529-deep-functional-enrich-gate.js Contre quoi: workflows/L99 stop at mfr+pid without deep functional pass.
tools/ci/p2530b-kq1l5eu5-wall-curtain-fix.jsP2530b — strip forbidden kq1l5eu5 from curtain_motor; complete on wall_curtain_switch
tools/ci/p2530d-wall-dimmer-firmware-mfr-sync.js_no header_
tools/ci/p2531-complementary-coverage-mega.jsP2531 — Complementary coverage mega enrich WHY: One pass that scrapes Homey forum + Z2M/ZHA/Blakadder/alt sources, then unions OEM overlays / case variants / caps / settings / flows without wiping generics (P2520 complem
tools/ci/p2531-repair-complementary-shrink.jsP2531 repair — restore shrunk drivers from HEAD, then APPEND OEM overlays without case-collapsing the whole manufacturerName array (Homey needs dual cases).
tools/ci/p2537-zigbee-tuya-evolution-gate.jsP2537 — Enforce Homey Zigbee/Tuya evolution implications 1.
tools/ci/p2542-local-auto-improve-gate.jsP2542 — Gate: cron/automation workflows must force local AI forfait.
tools/ci/p2547-external-sdk3-inspiration-gate.jsP2547 — External app + Homey SDK3 inspiration SSOT gate.
tools/ci/p2553-history-fleet-enable.jsP2553 — Intelligent History fleet enable (compose complementary) WHY: Homey History/Insights needs getable:true + preventInsights:false on sensor readables.
tools/ci/p2562-local-workflow-learn-gate.jsP2562 — Gate: EVERY workflow forces local learn + forfait (no cloud AI).
tools/ci/p2570-johan-complementary-enrich.jsP2570 — Johan Bendz complementary enrich (handover completion) WHY: Johan stepped back from Tuya Zigbee; we silently complete his fingerprints/DPs/case variants as UNION enrichments — never wipe.
tools/ci/p2571-t26439-complementary-enrich.jsP2571 — T26439 (Johan thread) → OUR app complementary enrich (silent).
tools/ci/p2571-t26439-deep-harvest.jsP2571 — Deep harvest Homey T26439 (Johan thread) → OUR app only (silent).
tools/ci/p2572-johan-mega-complementary.jsP2572 — Johan issues/PRs mega → OUR app (max investigation, complementary).
tools/ci/p2585-z2m-complementary-apply.jsP2585b — Context-aware Z2M→Homey complementary couple apply (dry by default).
tools/ci/p2585-z2m-herdsman-couple-diff.jsP2585 — Diff Z2M herdsman tuya fingerprints (mfr+pid) vs Homey drivers.
tools/ci/p2585-z2m-surgical-enrich.jsP2585c — Surgical complementary apply from Z2M herdsman research (verified couples only).
tools/ci/p2610-bastien-external-multi-enrich.jsP2610 — Bastien house external multi-source enrich (outbound-first) WHY: Bastien box learns from Z2M / Johan / community FP caches; public apps receive only complementary unions (never wipe) via Bastien→master→stable.
tools/ci/p2628-same-page-button-flow-ux.jsP2628 — Intelligent same-page Flow UX for X-gang remotes/walls 1) Fix FlowCardHelper runListener (device cards have no args.device) 2) Add button dropdown on main press cards so all buttons share one Flow page 3) Registe
tools/ci/p2629-vsxvaj9i-interview-lock.jsP2629 — Apply Bastien live interview _TZ3000_vsxvaj9i+TS0043 Clusters EP1: basic+power+onOff+E000; EP2–4: power+onOff; no EF00.
tools/ci/p2630-axpdxqgu-interview-lock.jsP2630 — Apply Bastien live interview _TZ3000_axpdxqgu+TS0041 EP1: basic(0)+power(1)+onOff(6); out ota(25)+time(10) NO E000 / NO EF00.
tools/ci/p2631-bastien-mesh-complete.jsP2631 — Bastien live mesh completion from Homey Zigbee nodes table Nodes (Bastien house): 0 Homey Pro coordinator 1–2 NodOn SIN-4-FP-21 — EXTERNAL (com.nodon) — do not absorb 3 _TZ3000_axpdxqgu+TS0041 → button_wireless_1
tools/ci/p2660-local-first-doctrine-gate.jsP2660 — Local-first doctrine gate (all apps) Contre quoi: cloud-first defaults, missing SSOT, Zigbee requiring OpenAPI
tools/ci/p2670-bastien-deep-enrich.jsP2670 — Bastien deep complementary enrich (max variants + caps + settings) Contre quoi: shallow compose missing Z2M exposes (countdown / switch_type / alarm_battery / TS0004 electrical / SNZB siblings) while Bastien live
tools/ci/p2671-hobeian-fleet-enrich.jsP2671 — HOBEIAN fleet recognition: case forms + missing Z2M pids + mfs Pourquoi: Bastien Homey interview reports exact HOBEIAN + ZG-*, but several drivers (climate/button on Bastien compact) only kept lowercase `hobe
tools/ci/p2675-curated-fingerprint-sacred-enrich.jsP2675 — Curated fingerprints ← sacred-keep complementary enrich WHY: P2674 skips broad lib/tuya/fingerprints.json (~0.9MB) under Homey heap pressure.
tools/ci/p2746-fleet-button-flow-enrich.jsP2746 — Fleet enrich button/remote Homey Flows (Bastien) Contre quoi: token name === arg name (button) → Homey tagged Flows dead; missing measure_battery_changed on remotes with measure_battery.
tools/ci/p2759-johan-l99-apply.js_no header_
tools/ci/p2800-agent-config-hidden-text-gate.jsP2800 — agent-config hidden-text gate (free, no AI).
tools/ci/p2815-soil-couple-ssot-gate.jsP2815 — soil_sensor must be couple-driven (mfr+pid), not cartesian invent.
tools/ci/p2819-apply-blakadder-severe.jsP2819 — Surgical Blakadder severe wrong-class couple moves (dry-run default) WHY: Never rewrite whole manufacturerName via unionStrings (collapses dual-case → mass loss).
tools/ci/p2820-apply-z2m-zha-severe.jsP2820 — Surgical high-confidence Z2M/ZHA wrong-class moves (dry-run default) WHY: Same as P2819 — never wholesale rewrite manufacturerName arrays.
tools/ci/p2820-z2m-zha-quirks-couple-audit.jsP2820 — Z2M + ZHA quirks + protocol_quirk_table couple-aware audit (same depth as P2819 Blakadder) WHY: mfr-only coverage hides wrong-class placements across herdsman / zha-device-handlers.
tools/ci/p2830-peer-apps-compose-complementary.jsP2830 — Peer Homey apps compose → OUR drivers (intelligent rewrite, C1).
tools/ci/p2832-peer-complementary-cron.jsP2832 — Peer complementary enrich cron orchestrator (free / autonomous) WHY: Automate the complementary UNION pass we do by hand: Johan/Lidl compose rewrite (P2830) + Johan mega couples (P2572) + FP prune.
tools/ci/p2835-zemismart-official-complementary.jsP2835 — Official Zemismart Homey app + ZHA quirks → OUR drivers (UNION).
tools/ci/p2836-forum-zigbee-tag-harvest.jsP2836 — Homey forum #zigbee tag silent harvest WHY (P215): Pourquoi — Tag page surfaces peer Zigbee apps + our T140352 + mesh/pairing lessons.
tools/ci/p2842-flow-publish-self-heal.jsP2842 — Free deterministic self-heal (forfait / AI_ALLOW_PAID=false / no paid AI) Automates Contre quoi from P2839–P2841: - hollow flow get*Card vs driver.flow.compose - backups/ payload bloat (.homeyignore + tracked fil
tools/ci/p2970-bac002-wall-thermostat.jsp2970-bac002-wall-thermostat.js (P2970) WHY(P2970, Umberto Maffii store suggestion "Beca BAC-006AZB pairs but is not a thermostat"): Z2M herdsman tuya.ts declares BAC-002-ALZB (whitelabel Beca BAC-003) on TS0601 + `_TZE2
tools/ci/p3320-shipped-latin1-assets-gate.jsP3320 fail-closed gate (core rules-gates / pre-push / CI).
tools/ci/p87-driver-flow-audit.jsp87-driver-flow-audit.js ========================================================================= Aggregated audit: - For each driver, read driver.compose.json + driver.flow.compose.json - Detect: * Capabilities referen
tools/ci/p89-case-sensitivity-audit.jsp89-case-sensitivity-audit.js ========================================================================= Comprehensive case-sensitivity audit: 1.
tools/ci/p89-dedup-mfs-db.jsp89-dedup-mfs-db.js — P89 Deduplicate mfs_db.json by manufacturerName (case-insensitive).
tools/ci/p89-mfr-tl-by-file.js_no header_
tools/ci/p89-real-mfr-dupes.jsp89-real-mfr-dupes.js — P89 Find real (non-synthetic) mfr duplicates in driver.compose.json.
tools/ci/parse-forum-digest.jsparse-forum-digest.js (P2214) Parse multi-silent-digest for one topic + verify live Discourse highest post.
tools/ci/parse-z2m-tuya.js_no header_
tools/ci/patch-missing-flow-listeners.jsP131 — Patch missing registerRunListener for actuator flow cards.
tools/ci/permisive-variant-matcher.jsP24.5 — Permissive Variant Detection Be PERMISSIVE when matching mfr+pid pairs across sources.
tools/ci/personal-data-guard.jsP3074: keep the maintainer's personal profile data (CV / LinkedIn exports, personal mailbox, phone) out of the repository.
tools/ci/post-issue-439-reply.jspost-issue-439-reply.js — P53 Post a status reply on issue #439 confirming 678 FPs were added to generic_tuya.
tools/ci/post-issue-506-reply.jspost-issue-506-reply.js
tools/ci/post-issue-511-reply.jsPost a detailed reply to issue 511
tools/ci/pr-gate.jspr-gate.js (v9.0.368) PR quality gate — fails (exit 1) on: 1.
tools/ci/preload-homey-stub.jsPreloader for lib-smoke-test: redirects require('homey') to the SDK stub (node_modules contains the homey CLI, which shadows NODE_PATH fallbacks).
tools/ci/prevent-apply-patch-corruption.js_no header_
tools/ci/process-diagnostics-emails.jsprocess-diagnostics-emails.js — Process 132 diagnostic reports with FPs
tools/ci/process-emails-final.jsprocess-emails-final.js — final processing: missing FPs, crash patterns, generate report
tools/ci/process-emails.jsprocess-emails.js — aggregate + analyze ALL email data from GHA gmail-diagnostics runs
tools/ci/process-fresh-gmail.jsprocess-fresh-gmail.js — process the 551 fresh Gmail emails
tools/ci/project-resilience-orchestrator.jsproject-resilience-orchestrator.js (P2222 / P2225) Fleet-wide audit: every feature domain + historical bug class.
tools/ci/promote-hold-guard.jsP3057-2 (26/10/2026): promote guard for the P3036 publish hold.
tools/ci/prune-fp-collision-bleed.jsprune-fp-collision-bleed.js (P2238) Prune manufacturerName bleed causing NEW fp-collision-check failures.
tools/ci/prune-phantom-capabilities.jsprune-phantom-capabilities.js — P181 Removes compose metadata that can never correspond to runtime behaviour: 1.
tools/ci/publish-pipeline-cartography.jsP25 — Full Diag Cartography for Publish Pipeline Maps the COMPLETE publish pipeline with diagnostic points: - 12 main stages - 47 sub-steps - All known failure modes with root causes Output: .github/state/publish-pipelin
tools/ci/push-helper.js_no header_
tools/ci/re-inject-manual-fixes.jsre-inject-manual-fixes.js — v9.0.262 (P63.3) The auto-publish bot (github-actions[bot]) regenerates app.json and drivers/<name>/driver.compose.json from canonical templates.
tools/ci/read-issue-511.jsRead and display issue 511 with all comments
tools/ci/read-issue.jsRead and display an issue + its comments
tools/ci/recent-variant-capability-completer.jsP2530 — Recent-device complementary variant + capability completer Seeds = recently enriched sacred couples; search catalogs for OEM siblings (TZE200/204/284), case forms; union missing capabilities.
tools/ci/recurrent-orchestrator.jsP32.5 — Recurrent Orchestrator Runs ALL analyzers in a pipeline, 100% offline-first.
tools/ci/recursive-diag-interview-treat.jsrecursive-diag-interview-treat.js Same methodology as manual f647d35b paste-analysis, applied recursively to: - local diag excerpts / homey-app-diag dumps - Gmail plaintext dumps under .github/state/diag-recursive-inbox/
tools/ci/refine-p2234-sacred-couple-aware.jsP2234b — Refine prior sacred-couple research (mfr ≠ unique device).
tools/ci/regression-lessons-gate.jsregression-lessons-gate.js Encodes MUST-KEEP reliability fixes as detectable CI rules so auto-fix / publish bots cannot silently regress known fatal eras.
tools/ci/render-diag-treat.jsrender-diag-treat.js — Build human-readable TREAT.md from diagnostics-report.json Usage: node tools/ci/render-diag-treat.js node tools/ci/render-diag-treat.js --out=reports/gmail-forum-2026-08-23
tools/ci/render-enrichment-index.jsrender-enrichment-index.js Generate profile index pages from enrichment layers + last processor state.
tools/ci/reported-couples-publish-survival.jsP3200 (GH#581/#584, t765u): a couple listed in a driver.compose.json can still be MISSING from the package Athom receives, because prepare-publish compacts the mfr x productId matrix (climate_sensor 1949 mfrs -> ~19).
tools/ci/retry-crawlers.jsretry-crawlers.js — P53 Smart retry wrapper for crawlers that timeout (z2m, zha, xiaomi-miot).
tools/ci/rf-channel-coexistence-smoke.js_no header_
tools/ci/rules-enforcement-matrix.jsrules-enforcement-matrix.js — P183 The project states ~90 rules across .cursorrules, AGENTS.md, CORE_RULES.md and docs/rules/**.
tools/ci/run-critical-tests-track-adaptive.jsP2611 — run critical tests adaptively per dual-app track.
tools/ci/run-node-test.jsThin PhaseRunner wrapper: node --test <file>
tools/ci/runtime-safety-gate.jsR21 static runtime-safety check (heuristic, per file).
tools/ci/sacred-couple-dry-gate.jssacred-couple-dry-gate.js Best-effort dry-run of sacred-couple / FP apply scripts.
tools/ci/sacred-couple-pair.js_no header_
tools/ci/safe-sync-to-stable.jstools/ci/safe-sync-to-stable.js — P52 Syncs SAFE changes from master to stable-v5: - FPs additions (fingerprints.json) - Battery chem/mfr profiles (BATTERY_SPECS, MANUFACTURER_PROFILES) - TITAN v5 fixes (typos, safeSetTi
tools/ci/save-gmail-body.jsSave a Gmail PLAIN_TEXT body into the recursive inbox (gitignored).
tools/ci/scaffold-p2621-wifi-dedicated.jsP2621 — one-shot scaffold helper (MASTER_ONLY dedicated wifi drivers).
tools/ci/search-climate-trigger.jssearch-climate-trigger.js
tools/ci/search-forum-posts-v2.jssearch-forum-posts-v2.js — proper search for our app (P55 — uses smart-fetch)
tools/ci/search-forum-posts.jssearch-forum-posts.js — search and save forum results for our app
tools/ci/search-forum-v2.jssearch-forum-v2.js — try different Discourse API endpoints
tools/ci/search-forum.jssearch-forum.js — search forum for our app
tools/ci/search-tokens.jssearch-tokens.js - thoroughly search for GH tokens
tools/ci/secret-loader.jssecret-loader.js SAFE loader for GitHub Secrets / environment variables.
tools/ci/session-start.jsP30.6 — Session-Start Activity Fetcher Quick lightweight fetch of all recent activities to display at the start of each session/prompt.
tools/ci/silent-enrichment-orchestrator.jssilent-enrichment-orchestrator.js (P2215) Thin wrapper around manifest-driven PhaseRunner.
tools/ci/smart-auto-fix.jsP31.3 — Smart Auto-Fix Engine Offline-first auto-fix engine.
tools/ci/smart-discovery-heuristics.jsP24.8 — Smart Device Discovery (heuristic capability detection) For devices with unknown mfr+pid (not in mfs_db), this tool helps: 1.
tools/ci/smart-features-brand-scrub-gate.jsBrand-scrub gate for user-facing Homey flow titles/hints.
tools/ci/smart-home-ecosystem-audit.jsSmart-home ecosystem audit (Matter Bridge -> Apple Home / Google Home / Alexa / SmartThings / Home Assistant, plus Homey's own Google Assistant and Alexa integrations).
tools/ci/smart-investigate.jssmart-investigate.js — P56 Smart Autonomous Investigator Uses the Knowledge Graph (build-knowledge-graph.js) to answer questions and cross-reference ALL sources (docs, drivers, fingerprints, lessons, workflows, issues) f
tools/ci/smart-update-orchestrator.jsSmart Update Orchestrator (P58.3) ========================================================================== Decide which crawlers/workflows ACTUALLY need to run this cycle, based on the diff-cache state — and only trigg
tools/ci/smart-variant-handler.jsP32.2 — Smart Variant Handler Handles the COMPLEXITY of Tuya devices: - 1 manufacturer can have MULTIPLE variants - 1 manufacturer can have MULTIPLE productIds - 1 manufacturer can have MULTIPLE device names - Same manuf
tools/ci/ssot-couple-enrich.jsP3136 — SSOT couple enrichment ledger (t731u).
tools/ci/stagger-cron.jsstagger-cron.js — Stagger cron schedules to avoid simultaneous runs
tools/ci/strip-changelog-backticks.jsSupprime les backticks du changelog (le script d'extraction du pipeline les exécute comme des commandes shell → exit 127).
tools/ci/strip-phantom-battery-mains.jsP115 — Strip phantom measure_battery from mains+power drivers.
tools/ci/strip-registry-forbidden-compose.jsstrip-registry-forbidden-compose.js (P2523) WHY: Fleet enrich re-injects doNotLock invent onto forbidden drivers (krwtzhfd+TS004F → climate_sensor).
tools/ci/stubs/homey.jsMinimal 'homey' SDK stub for offline smoke tests (tools/ci/lib-smoke-test.js).
tools/ci/study-z2m-ts0041.js_no header_
tools/ci/sync-appjson-flow-dedupe.jssync-appjson-flow-dedupe.js (P2376) Driver flow cards belong in driver.flow.compose.json per driver folder ONLY.
tools/ci/sync-appjson-with-drivers.jssync-appjson-with-drivers.js ============================================================================= Sync app.json mfrs/pids with the corresponding driver.compose.json files.
tools/ci/sync-compose-to-mfs-db.jssync-compose-to-mfs-db.js (P2368) Keep data/mfs_db.json aligned with driver.compose.json sacred couples: - Add missing mfr entries from compose (exclusive owner) - Fix wrong driverId when compose has single owner - Prune
tools/ci/sync-dp-couple-knowledge.jssync-dp-couple-knowledge.js (P2247) Seed / merge data/dp_couple_knowledge.json from: - user-misattribution-registry sacred couples - driver device.js dpMappings - Z2M data/dp_registry.json filtered by model when know
tools/ci/sync-driver-mapping-guard.jsP3066: keep the TARGET branch's driver mapping when a cross-branch sync (P52 master → stable-v5) overwrites lib/tuya/fingerprints.json or data/mfs_db.json.
tools/ci/sync-enrichment-profiles.jssync-enrichment-profiles.js Merge forum processor + parse signals into catalog stubs (never overwrite curated rows).
tools/ci/sync-registry-couples-to-compose.jsSync user-misattribution-registry sacred couples into canonical driver compose.
tools/ci/sync-root-package-version.jsP2454 — Root-only package version sync + package-lock integrity.
tools/ci/sync-valve-ef00-clusters.js_no header_
tools/ci/sync-wifi-pair-configure.jsP2471: sync drivers/wifi_generic/pair/configure.html to all wifi_* pair UIs.
tools/ci/temporal-cross-ref.jsP26.6.3 — Build Temporal Cross-Reference Combines forum topics + GH issues with timestamps.
tools/ci/temporal-monitor.jsP29.7 — Temporal Monitoring Cron (refreshed P78) Runs daily to detect NEW GH issues / forum topics that match the patterns we've fixed in past P-iterations.
tools/ci/test-aggregate-error-fixer.jsTest aggregate-error-fixer (P58.6) Run: node tools/ci/test-aggregate-error-fixer.js
tools/ci/test-allowlist.jstest-allowlist.js
tools/ci/test-architectural-coverage.jstest-architectural-coverage.js - P75.34: Test architectural safety patterns Verifies that critical safety patterns are applied across all 431 drivers
tools/ci/test-battery-core-bridge.jsTest BatteryCore v2 bridge in UnifiedBatteryHandler (P58) Run with: node tools/ci/test-battery-core-bridge.js
tools/ci/test-battery-core.jstest-battery-core.js — P54 test suite for BatteryCore
tools/ci/test-button-visual.jstest-button-visual.js — P54 test suite for ButtonVisual
tools/ci/test-class-extends-guard.jsTest suite for lib/utils/ClassExtendsGuard.js Covers the top "Class extends value # is not a constructor or null" crash patterns from Gmail diagnostics 2026-07-15 (3x for smart_knob_rotary, smart_scene_panel, wall_dimmer
tools/ci/test-crash-prevention.jsTest suite for lib/utils/CrashPrevention.js — v9.0.260 (P63) Covers the top crash patterns from Gmail diagnostics 2026-07-15: - _inferCapabilityFromValue is not a function (7x) - safeSetCapabilityValue is not a function
tools/ci/test-dedup-duplicate-mfrs.jsTest dedup-duplicate-mfrs.js (P58.11) Run: node tools/ci/test-dedup-duplicate-mfrs.js
tools/ci/test-flow-card-coverage.jstest-flow-card-coverage.js - P75.32: Test flow card and mixin modules
tools/ci/test-imap.jstest-imap.js — test Gmail IMAP with App Password directly
tools/ci/test-knowledge-graph.jstest-knowledge-graph.js — Test suite for P56 knowledge graph
tools/ci/test-manufacturer-name-accessor.jsTest suite for ManufacturerNameAccessor — v9.0.249 (P59) Covers: - getManufacturerName() standalone function - installManufacturerNameAccessor() idempotency - Patched method works on base class - Never throws on null / m
tools/ci/test-mfs-db-fixes-p61.jsTest suite for P61 mfs_db fixes (forum post #2090-#2110) Cross-checks that recently-reported device pairings route to the correct driver: - _TZE200_npj9bug3 / TS0601 → soil_sensor (was climate_sensor) - _TZE284_myd45weu
tools/ci/test-mixin-coverage.jstest-mixin-coverage.js - P75.32: Test critical mixins not yet covered Goal: increase test coverage to address 168 untested lib files
tools/ci/test-multichannel.jstools/ci/test-multichannel.js — P37 integration test
tools/ci/test-oauth.jstest-oauth.js — test OAuth refresh and Gmail API directly SECURITY: secrets are read from env vars, NOT hardcoded
tools/ci/test-orchestrator.jsTest smart-update-orchestrator + token-sanity-check (P58.3) Run with: node tools/ci/test-orchestrator.js
tools/ci/test-p62-publish-fixes.jsTest suite for P62 publish fixes — v9.0.253 (2026-07-15) Forum crash analysis (Gmail diagnostics 2026-07-15) revealed: - 89x "Cannot read properties of undefined (reading 'setTimeout')" - 48x "Cannot read properties of u
tools/ci/test-p64-10-soil-sensor.jstools/ci/test-p64-10-soil-sensor.js Tests for P64.10 soil sensor fixes: - DP 105 (humidity_calibration on ZG-303Z) is NOT fired as moisture flow - DP 107 (soil_moisture on ZG-303Z) IS handled as moisture - DP 1 is water_
tools/ci/test-p64-11-infrastructure.jstools/ci/test-p64-11-infrastructure.js Tests the P64.11 infrastructure: herdsman cache, DP registry, Homey SDK3 audit.
tools/ci/test-p64-12-zg204-driver.jstools/ci/test-p64-12-zg204-driver.js Tests for P64.12 ZG-204ZM/ZV driver improvements: - 7 new ZG-204ZM DPs added (114 time, 115 alarm_time, 116 alarm_volume, 117 working_mode, 118 auto1, 119 auto2, 120 auto3) - ZG_204ZV
tools/ci/test-p64-13-z2m-cross-ref.jstools/ci/test-p64-13-z2m-cross-ref.js Tests the P64.13 Z2M cross-reference: - #506 (Lalla80111) climate_sensor gets measure_voltage (battery_voltage) - dimmer_wall_1gang gets measure_voltage - sensor_motion_presence gets
tools/ci/test-p68-blakadder-integration.jsP68: Test for R68 Blakadder integration - 12 new fingerprints added to driver.compose.json - 12 + 44 sacred pairs added to mfs_db - All targets exist and validate as JSON
tools/ci/test-p75-32-coverage.jstest-p75-32-coverage.js - P75.32: Master test runner for new coverage tests Runs all coverage tests and reports a summary
tools/ci/test-pairing-gate.jsP2940 — test pairing gate. Lists lib/ and drivers/ JS files added or changed against a base ref that no test under test/ mentions (lib: module file name; drivers: driver folder name). Rollout (dlnraja 21/10/2026): report
tools/ci/test-r68-flow-card-unique.jsR68 v2 test: Verify no cross-driver flow card ID collisions remain
tools/ci/test-regex.js_no header_
tools/ci/test-regression-audit.jstest-regression-audit.js - P75.32: Test that known regressions don't reappear Verifies the audit reports stay healthy: button listeners, flow triggers, multigang failures, scene buttons, dead flows, unmapped DPs.
tools/ci/test-safe-capability.jsTest for SafeCapability mixin and standalone helper Run with: node tools/ci/test-safe-capability.js 20 tests, 0 external deps.
tools/ci/test-sdk3-compat.jsTest script
tools/ci/test-sleepy-device-init.jsTest suite for SleepyDeviceInit — v9.0.251 (P60) Forum reference: dlnraja v5.5.252 fix for ZG-204ZM (post #685): - No blocking operations during init - Only sets up listeners to receive data - Device is marked available
tools/ci/test-smart-data-validator.jstest-smart-data-validator.js — Test suite for P57 SmartDataValidator
tools/ci/test-smart-fetch.jsTest suite for smart-fetch.js (P55) Tests: 1.
tools/ci/test-svg-optimizer.jsTest SVG optimizer (P58) Run with: node tools/ci/test-svg-optimizer.js 12 tests, no external deps.
tools/ci/test-tuya-local-isolated.jstest-tuya-local-isolated.js — Test if the parallel fetchAll works in GHA-like conditions
tools/ci/three-way-promote.jsP3019d: three-way promote decision (merge-base / target / Bastien) for cross-branch promotes.
tools/ci/token-sanity-check.jsToken Sanity Check (P58.3) ========================================================================== Silently verifies which auth tokens are available in the env / gh CLI, and reports which data sources can be reached.
tools/ci/translate-settings-blocks.jstranslate-settings-blocks.js (v9.0.374) Real translations (not en fallback) for the settings blocks power_source + optimization_mode across all locales.
tools/ci/triage-failed-runs.jsTriage all failed GHA runs in last 7 days Usage: node tools/ci/triage-failed-runs.js [days=2]
tools/ci/untrusted-content-sanitize.jsCLI: sanitize untrusted files (forum digests, scrape dumps) before AI / apply.
tools/ci/update-changelog-p76.jsUpdate stable changelog with P76 entry
tools/ci/update-scene-recall-langs.jsP31.5.2 — Update existing scene_recall triggers to add nl/de translations (the original add-scene-recall-to-all-buttons.js only had en+fr).
tools/ci/user-impact-investigator.jsuser-impact-investigator.js (P2213) Per-user device impact matrix from forum posts, diags, inbox, catalog.
tools/ci/validate-all-workflows.jsvalidate-all-workflows.js
tools/ci/validate-continuous-flow.jsvalidate-continuous-flow.js
tools/ci/verify-homey-device-updates.jsverify-homey-device-updates.js (P2359) Full Device Updates verification loop: 1) firmware-updates-gate (--coverage) 2) dry-run build-firmware-updates (source detect vs catalog) 3) HomeyDeviceUpdates helper smoke 4) write
tools/ci/verify-icons.jsverify-icons.js
tools/ci/verify-workflow-fix.js_no header_
tools/ci/weekly-sovereign-loop.jsweekly-sovereign-loop.js — P136 / P136b Quota-safe weekly autopilot backbone (GitHub Actions minutes, not Cursor).
tools/ci/wifi-local-first-gate.jswifi-local-first-gate.js (P194) Tuya wifi_* drivers (not eWeLink / Sonoff) must stay local-first: - settings expose device_id, local_key, and an IP field - protocol_version includes auto (client walks 3.1–3.5) - device.j
tools/ci/workflow-estate-gate.jsworkflow-estate-gate.js (P193) Machine-check the Homey CI estate against WORKFLOW_GUIDELINES.md: - defaults.run.shell: bash - permissions + concurrency + per-job timeout - publish pipelines must not cancel mid-Athom uplo
tools/ci/workflow-lessons-gate.jsP3092 (31/10/2026): today's lessons as one cheap static gate for CI.
tools/ci/workflow-smoke-p2226.jsworkflow-smoke-p2226.js — parse + dry-run key workflows / scripts (P2226) Does not call live Gmail without secrets.
tools/ci/worktree-hygiene.jsP3062: bounded clean-up of temporary git worktrees left behind by automation.
tools/ci/z2m-gap-audit.jsz2m-gap-audit.js (P92.80 — réimplémentation enrichie de l'outil P64.13 supprimé) Cross-reference our 431 drivers against the Z2M herdsman cache: 1.

Workflows (103)

FilePurpose (from its header)
.github/workflows/activity-monitor.ymlActivity Monitor (P30)
.github/workflows/agent-reach.yml🛰️ Agent Reach Channels
.github/workflows/ai-monthly-audit.ymlAI Monthly Audit (TITAN Protocol v2)
.github/workflows/athom-build-history.ymlAthom build history (read-only)
.github/workflows/auto-bot-issue-triage.ymlAuto Bot Issue Triage
.github/workflows/auto-close-supported.ymlBatch Analyze & Respond
.github/workflows/auto-enrich-closed-loop.yml🔄 Auto-Enrich Closed Loop (P69)
.github/workflows/auto-fix-and-publish.yml🤖 Auto-Fix + Publish Pipeline
.github/workflows/auto-publish-on-push.ymlAuto-Publish on Push
.github/workflows/auto-reopen-on-comment.ymlAuto-Reopen on Comment
.github/workflows/automation-loop.ymlAutomation loop (P3048, no AI)
.github/workflows/autonomous-review.ymlAutonomous review
.github/workflows/autonomous-verification.ymlAutonomous Verification (P37)
.github/workflows/autonomy-digest.ymlAutonomy weekly digest (P3103)
.github/workflows/autonomy-watchdog.ymlAutonomy watchdog (P3097)
.github/workflows/bastien-promote-upstream.ymlBastien Promote Upstream
.github/workflows/bastien-publish.ymlPublish Zigbee Bastien
.github/workflows/blakadder-fetch.yml🗂️ Blakadder Integration
.github/workflows/bot-data-fold.ymlBot data daily fold (P3255d)
.github/workflows/bot-revert-on-red.ymlBot revert on red (P3105)
.github/workflows/bug-report-auto-pr.ymlBug Report Auto-PR
.github/workflows/build-error-diag.yml🔍 Build Error Diagnostic (Puppeteer)
.github/workflows/ci-autofix.ymlCI autofix (P3048, no AI)
.github/workflows/ci-self-check.ymlCI self-check (actionlint + YAML + hygiene + manifest/data/lint gates)
.github/workflows/code-quality.ymlcode-quality
.github/workflows/collect-diagnostics.ymlCollect Diagnostics
.github/workflows/community-inbox.yml📥 Community Inbox
.github/workflows/continuous-flow.ymlcontinuous-flow
.github/workflows/crash-triage.ymlCrash triage (P3097)
.github/workflows/daily-digest.yml🤖 Daily Digest
.github/workflows/delete-johan-comments.ymldelete-johan-comments
.github/workflows/delete-own-upstream-comments.ymlDelete My Upstream Comments (Manual)
.github/workflows/dependabot-auto-merge.ymlDependabot Auto-Merge
.github/workflows/deploy-pages.ymlDeploy Device Finder to GitHub Pages
.github/workflows/diag-autoreply-bastien.ymlBastien diag auto-reply (P3110)
.github/workflows/doc-coverage.ymlDoc Coverage (P3032)
.github/workflows/draft-to-test-fleet.ymlDraft to Test Fleet (3 apps)
.github/workflows/draft-to-test.ymlDraft to Test Promotion
.github/workflows/driver-maintenance.ymlDriver Maintenance
.github/workflows/e2e-dashboard-test.ymle2e-dashboard-test
.github/workflows/fetch-diags.ymlFetch Homey Diagnostics
.github/workflows/fleet-intelligent-enrich.yml🧠 Fleet Intelligent Enrich (P2372)
.github/workflows/flow-publish-self-heal.ymlFlow + Publish Self-Heal (P2842)
.github/workflows/forum-pm-read.yml🔇 Forum PM read-only
.github/workflows/forum-poll.yml🌍 Forum Poll (P69)
.github/workflows/free-scrape-crossref.ymlFree Scrape Cross-Ref
.github/workflows/gmail-diagnostics.ymlGmail Diagnostics Auto-Analysis
.github/workflows/gmail-token-keepalive.ymlGmail Auth Health Check
.github/workflows/grok-off-deadman.ymlGrok-off dead-man (P3111)
.github/workflows/homey-app-validate.ymlHomey App Validate (all levels)
.github/workflows/homey-knowledge-refresh.ymlHomey knowledge refresh (weekly)
.github/workflows/homey-secrets-health.ymlHomey Secrets Health
.github/workflows/homey-store-peer-probe.ymlHomey Store Peer Probe
.github/workflows/housekeeping.yml🧹 Repo Housekeeping
.github/workflows/johan-thread-intel.ymlJohan thread intelligence (daily)
.github/workflows/kb-refresh.ymlKB refresh (weekly)
.github/workflows/knowledge-graph-sync.yml🧠 Knowledge Graph Daily Sync
.github/workflows/l99-inbox-intelligence.ymlL99 Inbox Intelligence (P2352)
.github/workflows/labeler.ymlPR Labeler
.github/workflows/market-couples-intake.yml📡 Market Couples Intake
.github/workflows/mega-crawl.yml🕷️ Mega Crawler
.github/workflows/monthly-community-sync.yml🌐 Monthly Community Sync
.github/workflows/monthly-device-enrichment.yml📅 Monthly Device Enrichment
.github/workflows/monthly-enrichment.ymlMonthly Enrichment Pipeline
.github/workflows/monthly-scan.yml📡 Monthly Device Scan
.github/workflows/monthly-tuya-intelligence.yml🌙 Monthly Tuya Intelligence & URL Audit
.github/workflows/nightly-audit.yml🌙 Nightly Audit
.github/workflows/node22-tests.ymlNode 22 runtime tests
.github/workflows/notifications.ymlSecure Notifications (Enhanced)
.github/workflows/offline-crash-analyzer.ymlOffline Crash Analyzer (P31)
.github/workflows/open-code-review.ymlOpen Code Review
.github/workflows/oss-lan-source-enrich.ymlOSS LAN Source Enrich
.github/workflows/peer-complementary-enrich.ymlPeer Complementary Enrich (P2832)
.github/workflows/platform-budget.ymlPlatform Budget (P3026)
.github/workflows/pr-gate.yml🚦 PR Gate
.github/workflows/project-resilience.yml🛡️ Project Resilience Inventory
.github/workflows/publish-diagnose.yml🔬 Publish Diagnose
.github/workflows/publish-hold-bisect.ymlPublish hold bisect (P3095)
.github/workflows/publish-self-heal.yml🩹 Publish Self-Heal
.github/workflows/publish-stable.yml🚀 Publish Stable to Test
.github/workflows/publish.ymlAuto Publish
.github/workflows/recurrent-orchestrator.ymlRecurrent Orchestrator (P32)
.github/workflows/repo-autopilot.ymlRepo autopilot (P3022)
.github/workflows/safe-sync-stable.ymlSafe Sync master → stable-v5 (P52)
.github/workflows/secret-scan.ymlSecret scan (gitleaks)
.github/workflows/self-improve.yml🔄 Self-Improve
.github/workflows/shadow-policy-check.ymlGitHub Shadow Policy
.github/workflows/smart-pr-merge.ymlSmart PR Auto-Merge
.github/workflows/smart-update.yml🧠 Smart Update Orchestrator
.github/workflows/ssot-couple-enrich.ymlSSOT Couple Enrich
.github/workflows/stale.ymlMark Stale Issues & PRs
.github/workflows/storage-cleanup.ymlStorage cleanup (P3033)
.github/workflows/syntax-check.yml🔍 Syntax Check & SDK3 Validation
.github/workflows/temporal-monitor.ymlTemporal Monitor (P29.7)
.github/workflows/tuya-deep-diag.ymlTuya Deep Diagnostics Recovery
.github/workflows/unified-ci.yml🛡️ Unified CI/CD Orchestrator
.github/workflows/upstream-guard.ymlupstream-guard
.github/workflows/upstream-thread-miner.ymlUpstream Thread Miner
.github/workflows/upstream-watch.ymlUpstream watch (P3097)
.github/workflows/validate.yml🔍 Validate Homey App
.github/workflows/verified-publish-and-diagnostics.yml🔍 Verify, Diagnostics & Publish Test
.github/workflows/version-health.yml🩺 Version Health
.github/workflows/weekly-sovereign-loop.ymlWeekly Sovereign Loop

Env flags (303)

FlagRead by
AI_ALLOW_PAIDscripts/automation/token-budget.js, tools/ci/ai-plan-guard.js, tools/ci/fleet-intelligent-enrich.js
AI_ALLOW_REMOTEscripts/digest/leads.js
AI_CANCELLED_PROVIDERSscripts/automation/api-key-manager.js
AI_ENRICHscripts/maintenance/sdk3-smart-linter.js
AI_GLOBAL_DAILY_CAPtools/ci/ai-plan-guard.js, tools/ci/ai-quota-report.js
AI_PLAN_MODEtools/ci/ai-plan-guard.js, tools/ci/fleet-intelligent-enrich.js, tools/ci/intelligent-source-diff.js, tools/ci/p2531-complementary-coverage-mega.js
AI_SOFT_STOP_PERCENTscripts/automation/token-budget.js, tools/ci/ai-plan-guard.js
ALLOW_BOT_ISSUE_CLOSEtools/ci/auto-bot-issue-triage.js
ANTHROPIC_API_KEYlib/LocalFirstEngine.js, tools/ci/recurrent-orchestrator.js, tools/ci/smart-auto-fix.js
ANTHROPIC_DAILY_CAPlib/LocalFirstEngine.js
APPDATAscripts/automation/dashboard-monitor.js, scripts/ci/fetch-homey-app-diag-by-uuid.js, scripts/ci/homey-token-refresh.js, scripts/ci/scan-homey-crashes-for-uuid.js +1
APP_IDscripts/automation/dashboard-monitor.js
AUDIT_VERBOSEscripts/ci/capability-coherence-audit.js
AUTOMATION_GH_PAUSE_MSscripts/automation/gh.cjs
AUTOMATION_JOURNALscripts/automation/journal.cjs
AUTOMATION_WATCH_ISSUESscripts/automation/workflow-watchdog.cjs
AUTONOMY_FEATUREscripts/ci/autonomy-learn.js
AUTOPILOT_DRYscripts/ci/repo-autopilot.js
AUTOREPLY_MAX_PER_DAYscripts/diag/auto-reply-bastien.js
AUTOREPLY_SENDscripts/diag/auto-reply-bastien.js
AUTOREPLY_SINCE_DAYSscripts/diag/auto-reply-bastien.js
AUTO_COMMIT_MAX_PER_DAYscripts/ci/safe-auto-commit.js
BASTIEN_PROMOTE_MAXtools/ci/bastien-promote-upstream.js
BASTIEN_REFtools/ci/bastien-promote-upstream.js
BOOTBUDGET_HOST_HEAPlib/performance/BootBudget.js
BOOTBUDGET_LIVE_RSSlib/performance/BootBudget.js
BOT_BATCHscripts/ci/bot-batch.js
BOT_MODEscripts/lib/bot-silence.js
BOT_PUBLICscripts/lib/bot-silence.js
CI_BRANCHESscripts/digest/ci-health.js
CI_DAYSscripts/digest/ci-health.js
CI_IGNOREscripts/digest/ci-health.js
CI_PAGESscripts/digest/ci-health.js
COMBO_CAP_DRIVERscripts/automation/digest.cjs
COMBO_CAP_TOTALscripts/automation/digest.cjs
COMMITS_24Hscripts/ci/autonomy-learn.js
COMPACT_VERBOSEscripts/maintenance/compact-zigbee-identifiers.cjs, scripts/prepare-publish.js
COMPENSATE_MAX_MStools/ci/compensate-incomplete-reports.js
COMPENSATE_SKIP_INVESTIGATEtools/ci/compensate-incomplete-reports.js
COMPENSATE_SOFT_EXITtools/ci/compensate-incomplete-reports.js
CRAWL4AI_BASE_URLlib/scraper/FreeScrapeStack.js
CRAWL4AI_URLlib/scraper/FreeScrapeStack.js
DAYscripts/perf/p3065-lifecycle-leak-harness.js
DAY_CAPscripts/perf/p3065-lifecycle-leak-harness.js
DEADMAN_DRY_RUNscripts/ci/grok-off-deadman.js
DEBUGscripts/ci/zero-defect-control.js
DEV_INV_DEBUGtools/ci/device-investigator.js
DIAG_MAX_UUIDSscripts/ci/diag-investigate-orchestrator.js
DIAG_REPORTscripts/dashboard/generate-diagnostics-dashboard.js
DIAG_REPORT_DIRscripts/digest/homey-digest.js
DIAG_SKIP_FETCHscripts/ci/diag-investigate-orchestrator.js
DIAG_TRACElib/utils/parse-trace.js
DIGEST_DRY_RUNscripts/digest/lib.js
DIGEST_EVENT_DEDUPE_MINscripts/digest/digest-event.js
DIGEST_FORCEscripts/digest/lib.js
DIGEST_IGNORE_ACTORSscripts/digest/digest-event.js
DIGEST_JOBscripts/digest/leads.js
DIGEST_LEADS_OUTscripts/digest/leads.js
DIGEST_LINK_MAXscripts/digest/leads.js
DIGEST_MAX_API_CALLSscripts/digest/lib.js
DIGEST_MIN_RATE_REMAININGscripts/digest/lib.js
DIGEST_OCR_LANGSscripts/digest/leads.js
DIGEST_OCR_MAXscripts/digest/leads.js
DIGEST_STATE_FILEscripts/digest/lib.js
DIGEST_USE_GH_CLIscripts/digest/lib.js
DISCOURSE_API_KEYlib/enrichment/PhaseRunner.js, tools/shadow-mode/runner.js
DISK_GUARD_FAILscripts/ci/disk-inode-guard.js
DISK_GUARD_PATHscripts/ci/disk-inode-guard.js
DISK_GUARD_SOFTscripts/ci/disk-inode-guard.js
DISK_GUARD_WARNscripts/ci/disk-inode-guard.js
DOMOTICZ_TIME_BUDGET_Sscripts/scanners/domoticz-scanner.js
DRIVERS_DIRscripts/digest/forum-watch.js
DRVscripts/ci/load-heap-sim.js, scripts/perf/p3065-lifecycle-leak-harness.js
DRY_RUNscripts/maintenance/inject-attribute-reporting.js, scripts/maintenance/inject-time-sync.js, scripts/maintenance/master-self-heal.js, scripts/maintenance/sanitize-manifest.cjs +4
EMAIL_GUARD_ALLOWtools/ci/email-guard.js
EXPECTED_APP_VERSIONscripts/automation/dashboard-monitor.js
EXPECTED_BUILD_STATEscripts/automation/dashboard-monitor.js
FIRECRAWL_API_KEYlib/scraper/reader-fallback.js
FIRECRAWL_DAILY_MAXlib/scraper/reader-fallback.js, tools/ci/fleet-intelligent-enrich.js, tools/ci/p2531-complementary-coverage-mega.js
FLOODscripts/perf/p3065-lifecycle-leak-harness.js
FORCE_MASTER_GATEStools/ci/l99-dual-app-enrich-gates.js
FORCE_SCANscripts/scanners/forum-category-scan.js
FORUM_AUTO_POSTtools/ci/forum-dispatch-diag-if-new.js, tools/ci/forum-pm-read-only.js
FORUM_BACKOFF_HOURSscripts/digest/forum-watch.js
FORUM_BASEscripts/digest/forum-watch.js
FORUM_BOOTSTRAPscripts/digest/forum-watch.js
FORUM_MAX_NEWscripts/digest/forum-watch.js
FORUM_MAX_POSTStools/ci/forum-fetch-146735.js
FORUM_MAX_REQUESTSscripts/digest/forum-watch.js
FORUM_NOTIFYscripts/digest/forum-watch.js
FORUM_PM_DISPATCH_DIAGtools/ci/forum-dispatch-diag-if-new.js
FORUM_PM_MAX_THREADStools/ci/forum-pm-read-only.js
FORUM_TOPICscripts/digest/forum-watch.js
FORUM_TOPICSscripts/digest/forum-watch.js
FORUM_USERNAMEtools/ci/forum-pm-read-only.js
FORUM_USE_PUPPETEERtools/ci/forum-fetch-140352.js
FREE_SCRAPE_BROWSERlib/scraper/FreeScrapeStack.js, tools/ci/fleet-intelligent-enrich.js
FREE_SCRAPE_SKIPlib/scraper/FreeScrapeStack.js
GEMINI_API_KEYscripts/digest/leads.js
GH_MODELS_DAILY_CAPlib/LocalFirstEngine.js
GH_PATscripts/automation/api-key-manager.js, scripts/automation/token-budget.js, scripts/ci/fetch-homey-app-diag-by-uuid.js, scripts/ci/homey-secrets-health.js +16
GH_PATHtools/ci/token-sanity-check.js
GH_TOKENlib/LocalFirstEngine.js, scripts/automation/api-key-manager.js, scripts/automation/gh.cjs, scripts/automation/token-budget.js +33
GITHUB_ACTIONSscripts/ci/disk-inode-guard.js, scripts/ci/platform-budget-gate.js, scripts/ci/publish-size-gate.cjs, tools/ci/local-workflow-learn.js
GITHUB_ACTORscripts/ci/safe-auto-commit.js
GITHUB_API_URLscripts/automation/gh.cjs
GITHUB_BASE_REFscripts/ci/autonomous-review.cjs
GITHUB_ENVscripts/ci/homey-token-refresh.js, scripts/prepare-publish.js
GITHUB_EVENT_NAMEscripts/ci/safe-auto-commit.js, scripts/digest/digest-event.js
GITHUB_EVENT_PATHscripts/digest/digest-event.js, scripts/digest/triage.js
GITHUB_JOBtools/ci/local-workflow-learn.js
GITHUB_OUTPUTscripts/automation/scheduler.js, scripts/automation/wait-pr-checks.cjs, scripts/autonomy/autofix-gate.js, scripts/autonomy/bot-revert.js +8
GITHUB_REF_NAMEscripts/ci/autonomous-review.cjs, scripts/ci/standing-rules-gate.js, scripts/kb/z2m-coverage.js, scripts/prepare-publish.js +3
GITHUB_REPOSITORYscripts/automation/gh.cjs, scripts/autonomy/bot-revert.js, scripts/ci/platform-budget-gate.js, scripts/ci/repo-autopilot.js +8
GITHUB_RUN_IDscripts/automation/journal.cjs, scripts/ci/repo-autopilot.js, scripts/ci/safe-auto-commit.js, scripts/digest/ci-health.js +7
GITHUB_SERVER_URLscripts/ci/safe-auto-commit.js
GITHUB_SHAscripts/ci/manifest-budget.js, scripts/prepare-publish.js, tools/ci/local-workflow-learn.js
GITHUB_STEP_SUMMARYscripts/automation/auto-add-fingerprints.js, scripts/automation/auto-enrich-db.js, scripts/automation/auto-update-drivers.js, scripts/automation/ci-failure.cjs +36
GITHUB_TOKENlib/LocalFirstEngine.js, scripts/automation/api-key-manager.js, scripts/automation/gh.cjs, scripts/automation/token-budget.js +39
GITHUB_WORKFLOWscripts/progress/ledger-cli.js, tools/ci/local-workflow-learn.js
GITHUB_WORKFLOW_REFtools/ci/local-workflow-learn.js
GITMINE_BRANCHESscripts/digest/git-mine.js
GITMINE_MAX_PAGESscripts/digest/git-mine.js
GITMINE_REPOscripts/digest/git-mine.js
GIT_BINtools/ci/check-collision-safety.js
GMAIL_APP_PASSWORDscripts/automation/fetch-gmail-diags.js, scripts/ci/diag-investigate-orchestrator.js, scripts/ci/gmail-search-diag-uuid.js, scripts/diag/auto-reply-bastien.js +1
GMAIL_APP_PASSWORD_TESTtools/ci/test-imap.js
GMAIL_CLIENT_IDtools/ci/test-oauth.js
GMAIL_CLIENT_SECRETtools/ci/test-oauth.js
GMAIL_CREDStools/shadow-mode/runner.js
GMAIL_EMAILscripts/automation/fetch-gmail-diags.js, scripts/ci/diag-investigate-orchestrator.js, scripts/ci/gmail-search-diag-uuid.js, scripts/diag/auto-reply-bastien.js +2
GMAIL_MOCKtools/ci/secret-loader.js
GMAIL_REFRESH_TOKENscripts/ci/diag-investigate-orchestrator.js, tools/ci/test-oauth.js
GOOGLE_API_KEYscripts/digest/leads.js
GOOGLE_CSE_CXscripts/research/cross-research.js
GOOGLE_CSE_KEYscripts/research/cross-research.js
GUARD_ROOTtools/ci/automation-couple-guard.js
HEAD_SHAscripts/automation/wait-pr-checks.cjs
HOMEscripts/ci/fetch-homey-app-diag-by-uuid.js, tools/ci/local-agenttrace.js
HOMEYlib/performance/BootBudget.js
HOMEY_ACCOUNT_TOKENscripts/ci/homey-secrets-health.js
HOMEY_ALLOW_REPO_PUBLISHscripts/direct-api-publish.js
HOMEY_API_RETRIESscripts/automation/dashboard-monitor.js
HOMEY_API_TIMEOUT_MSscripts/automation/dashboard-monitor.js, scripts/ci/homey-build-status.js, scripts/direct-api-publish.js
HOMEY_APP_DIAG_DIRtools/ci/inbox-diag-uuid-harvest.js
HOMEY_APP_IDscripts/ci/version-health-check.js
HOMEY_ARCHIVE_MAX_MBscripts/direct-api-publish.js
HOMEY_BRANCHESscripts/digest/homey-digest.js
HOMEY_BUILD_DIRscripts/maintenance/optimize-build-images.cjs, scripts/maintenance/optimize-build-svgs.cjs
HOMEY_BUILD_FAILURE_POLL_RETRIESscripts/direct-api-publish.js
HOMEY_BUILD_LIMITscripts/ci/homey-build-status.js
HOMEY_BUILD_POLL_INTERVAL_MSscripts/direct-api-publish.js
HOMEY_BUILD_POLL_TIMEOUT_MSscripts/direct-api-publish.js
HOMEY_CHECK_FINAL_PUBLISH_DIRscripts/ci/publish-size-gate.cjs
HOMEY_DIAG_PUPPETEERscripts/ci/scan-homey-crashes-for-uuid.js
HOMEY_DIAG_REQUIREscripts/ci/fetch-homey-app-diag-by-uuid.js
HOMEY_DIAG_UUIDscripts/ci/fetch-homey-app-diag-by-uuid.js, scripts/ci/gmail-search-diag-uuid.js, scripts/ci/scan-homey-crashes-for-uuid.js
HOMEY_DYN_ADAPTlib/zigbee/RawAdaptiveObserver.js
HOMEY_EMAILlib/enrichment/PhaseRunner.js
HOMEY_EXPECTED_VERSIONscripts/direct-api-publish.js
HOMEY_IMAGE_OPTIMIZER_STRICTscripts/maintenance/optimize-build-images.cjs
HOMEY_IMAGE_OPTIMIZE_CONCURRENCYscripts/maintenance/optimize-build-images.cjs
HOMEY_INCLUDE_MFS_DBlib/dynamic/AutonomousEnricher.js, scripts/maintenance/prune-publish-payload.cjs, scripts/prepare-publish.js
HOMEY_MFS_DB_PATHscripts/maintenance/compact-zigbee-identifiers.cjs
HOMEY_P3201_SOURCED_PASSscripts/prepare-publish.js
HOMEY_PATscripts/automation/dashboard-monitor.js, scripts/ci/diag-investigate-orchestrator.js, scripts/ci/homey-build-status.js, scripts/ci/homey-secrets-health.js
HOMEY_PAT_APIscripts/automation/dashboard-monitor.js, scripts/ci/diag-investigate-orchestrator.js
HOMEY_PUBLISH_APPJSONscripts/ci/publish-size-gate.cjs, scripts/prepare-publish.js
HOMEY_PUBLISH_BASELINE_FULLscripts/maintenance/compact-zigbee-identifiers.cjs
HOMEY_PUBLISH_BASELINE_PATHscripts/maintenance/compact-zigbee-identifiers.cjs
HOMEY_PUBLISH_DIRscripts/ci/platform-budget-gate.js
HOMEY_PUBLISH_MAX_UNCOMPRESSED_MBscripts/automation/performance-check.js, scripts/prepare-publish.js
HOMEY_PUBLISH_PATHscripts/direct-api-publish.js
HOMEY_PUBLISH_SOURCE_MAX_MBscripts/prepare-publish.js
HOMEY_REFRESH_TOKENscripts/ci/diag-investigate-orchestrator.js, scripts/ci/fetch-homey-app-diag-by-uuid.js, scripts/ci/homey-secrets-health.js, scripts/ci/homey-token-refresh.js +1
HOMEY_REPOscripts/digest/ci-health.js, scripts/digest/homey-digest.js
HOMEY_SDK_RULES_DISABLEDtools/ci/homey-sdk-rules.js
HOMEY_SOURCE_ESTIMATE_MAX_MBscripts/automation/performance-check.js
HOMEY_UPLOAD_MAX_ATTEMPTSscripts/direct-api-publish.js
HOMEY_UPLOAD_TIMEOUT_MSscripts/direct-api-publish.js
HOMEY_ZIGBEE_MAX_CASE_FORMSscripts/kb/z2m-coverage.js, scripts/maintenance/compact-zigbee-identifiers.cjs, scripts/prepare-publish.js
HOMEY_ZIGBEE_MAX_DRIVER_COMBOSscripts/maintenance/compact-zigbee-identifiers.cjs, scripts/maintenance/publish-baseline-gate.cjs, scripts/prepare-publish.js
HOMEY_ZIGBEE_MAX_TOTAL_COMBOSscripts/maintenance/compact-zigbee-identifiers.cjs, scripts/maintenance/publish-baseline-gate.cjs, scripts/prepare-publish.js
HOMEY_ZIGBEE_PID_REDUCE_OVERscripts/maintenance/compact-zigbee-identifiers.cjs
HOMEY_ZIGBEE_PRUNE_SYNTHETICscripts/maintenance/compact-zigbee-identifiers.cjs
HOMEY_ZIGBEE_TOPUP_MAX_DRIVERscripts/prepare-publish.js
HOMEY_ZIGBEE_TOPUP_MAX_TOTALscripts/prepare-publish.js
INBOX_DIAG_FETCHtools/ci/inbox-diag-uuid-harvest.js
INFER_ENRICH_APPLY_MAXtools/ci/infer-enrich-from-incomplete.js
INSPIRATION_EXTRA_REPOSscripts/digest/inspiration-scan.js
INSPIRATION_MAX_ITEMSscripts/digest/inspiration-scan.js
INSPIRATION_MAX_LOOKUPSscripts/digest/inspiration-scan.js
INSPIRATION_OWNERscripts/digest/inspiration-scan.js
INSPIRATION_PER_REPOscripts/digest/inspiration-scan.js
INSPIRATION_REPOSscripts/digest/inspiration-scan.js
INTEL_LOG_JSONtools/ci/intelligent-logger.js
INTEL_LOG_LEVELtools/ci/intelligent-logger.js
INTROscripts/perf/p3065-lifecycle-leak-harness.js
ISSUE_FILTERtools/ci/delete-johan-comments.js
JOB_CONCLUSIONtools/ci/local-workflow-learn.js
JOHAN_COMMENT_MAXtools/ci/johan-dump.js
JOHAN_ISSUE_MAX_PAGEStools/ci/johan-dump.js
JOHAN_PR_MAX_PAGEStools/ci/johan-dump.js
KB_DIRscripts/data/harvest-deconz-tuya-dps.js, scripts/data/harvest-z2m-tuya-dps.js, scripts/data/harvest-zha-quirk-dps.js, scripts/kb/build-compact.js +5
KB_FORCEscripts/kb/kb-import.js
KB_MAX_BYTESscripts/kb/build-compact.js
KB_OUTscripts/kb/build-compact.js
KB_OUT_DIRscripts/kb/build-homey-kb.js
KB_STORE_DIRscripts/kb/build-homey-kb.js
LEDGER_BYscripts/progress/ledger-cli.js
LOGCOUNTscripts/perf/p3065-lifecycle-leak-harness.js
LOG_LEVELlib/tuya-engine/utils/logger.js, tools/ci/intelligent-logger.js
LOOKUP_CODE_SEARCH_MAXscripts/digest/lookup.js
LOSSLESS_SHRINKscripts/maintenance/lossless-shrink-payload.cjs
MASTER_ROOTtools/ci/dual-app-benefit-recent.js
MAX_ISSUEStools/ci/auto-bot-issue-triage.js, tools/ci/intelligent-github-respond.js
MAX_LINT_FILESscripts/maintenance/sdk3-smart-linter.js
MEMORY_BUDGET_MBscripts/ci/memory-budget.js
MINIMAX_API_KEYlib/LocalFirstEngine.js
MINIMAX_DAILY_CAPlib/LocalFirstEngine.js
OCR_FORCEtools/ci/ocr-intelligent-cron.js
OCR_FROMtools/ci/ocr-delegate-preview.js, tools/ci/ocr-intelligent-cron.js
OCR_INSTALLtools/ci/ocr-intelligent-cron.js
OCR_STRICTtools/ci/ocr-intelligent-cron.js
OCR_TOtools/ci/ocr-delegate-preview.js, tools/ci/ocr-intelligent-cron.js
OLLAMA_HOSTlib/LocalFirstEngine.js
OPENAI_API_KEYlib/LocalFirstEngine.js, tools/ci/recurrent-orchestrator.js, tools/ci/smart-auto-fix.js
OPENAI_DAILY_CAPlib/LocalFirstEngine.js
OUTscripts/perf/p3065-lifecycle-leak-harness.js
P2571_MAX_POSTStools/ci/p2571-t26439-deep-harvest.js
P3201_BRANCHscripts/prepare-publish.js
PARSE_TRACElib/utils/parse-trace.js
PATHtools/shadow-mode/shadow-mode-v2.js
PAYLOAD_PREFLIGHTscripts/direct-api-publish.js
PEER_COMPOSE_APPLYtools/ci/p2832-peer-complementary-cron.js
PEER_COMPOSE_ENRICH_DISABLEDtools/ci/p2832-peer-complementary-cron.js
PEER_COMPOSE_SKIP_MEGAtools/ci/p2832-peer-complementary-cron.js
PEER_COMPOSE_SKIP_PRUNEtools/ci/p2832-peer-complementary-cron.js
PERF_BLOCKINGscripts/ci/perf-budget-gate.js
PII_MASKINGlib/utils/mask-pii.js
PLATFORM_BUDGET_MODEscripts/ci/platform-budget-gate.js
PREFLIGHT_MAX_APPJSON_MBscripts/ci/payload-preflight.cjs
PREFLIGHT_MAX_PATHscripts/ci/payload-preflight.cjs
PRE_COMMIT_WARN_PRINTscripts/PRE_COMMIT_CHECKS.js
PROFILE_ENGINE_OFFlib/profile-engine/ProfileEngine.js
PUBLISH_DIAGNOSTIC_CATALOGUEscripts/automation/changelog-publish-gate.js, scripts/prepare-publish.js
PUBLISH_DIAGNOSTIC_MIN_DRIVERSscripts/prepare-publish.js
PUBLISH_HOLD_RELEASEscripts/ci/publish-size-gate.cjs, scripts/maintenance/compact-zigbee-identifiers.cjs, scripts/maintenance/publish-baseline-gate.cjs
PUBLISH_SOURCE_DIRscripts/direct-api-publish.js
PUSH_RETRY_ATTEMPTSscripts/ci/push-with-retry.js
PUSH_RETRY_BRANCHscripts/ci/bot-batch.js
QUIRKS_DBscripts/digest/quirks.js
QUIRKS_DISCOURSE_MAXscripts/digest/quirks-scan.js
QUIRKS_FORUMSscripts/digest/quirks-scan.js
QUIRKS_GH_MAXscripts/digest/quirks-scan.js
QUIRKS_LEADS_DIRscripts/digest/quirks-scan.js
QUIRKS_RECHECK_DAYSscripts/digest/quirks-scan.js
QUIRKS_TRACKERSscripts/digest/quirks-scan.js
RAWscripts/validate/manifest-processor-audit.js
RULES_BRANCHscripts/ci/standing-rules-gate.js
RULES_RANGEscripts/ci/standing-rules-gate.js
RUNNER_TEMPscripts/direct-api-publish.js
RUN_IDscripts/automation/ci-failure.cjs
SAFE_AUTO_COMMIT_NO_COMMENTscripts/ci/safe-auto-commit.js
SANITIZE_ROOT_TITLEFORMATTEDscripts/maintenance/sanitize-manifest.cjs
SCHEDULEscripts/digest/tz-guard.js
SETTLEscripts/perf/p3065-lifecycle-leak-harness.js
SIM_TRIMtools/perf/p3023-memory-sim.js
SMART_FETCH_READER_FALLBACKlib/enrichment/PhaseRunner.js, lib/scraper/FreeScrapeStack.js, lib/scraper/smart-fetch.js, tools/ci/driver-class-fleet-enrich.js +6
SNAPscripts/ci/load-heap-sim.js, scripts/perf/p3065-lifecycle-leak-harness.js
SOAK_Hscripts/ci/standing-rules-gate.js
STABLE_ROOTtools/ci/bastien-promote-upstream.js, tools/ci/dashboard-both-apps.js, tools/ci/dual-app-benefit-recent.js
SWEEP_OFFLINEscripts/progress/advance-sweep.js
TARGET_APP_IDscripts/automation/dashboard-monitor.js, scripts/ci/fetch-homey-app-diag-by-uuid.js, scripts/ci/scan-homey-crashes-for-uuid.js
TEMPtools/ci/cleanup-ghost-workflows.js, tools/ci/cross-ref-mfs.js, tools/ci/post-issue-506-reply.js, tools/ci/post-issue-511-reply.js +2
TEST_GATE_BASEtools/ci/test-pairing-gate.js
TEST_GATE_MODEtools/ci/test-pairing-gate.js
TRACKING_ISSUEscripts/leads/strict-apply.js
TRIAGE_DRYscripts/digest/triage.js
TUYA_AUTO_RENAME_PROFILElib/sensors/IntelligentDPAutoDiscovery.js
TUYA_DIAG_VERBOSElib/diagnostics/DiagnosticLogger.js
TUYA_DP_LEARNING_MINUTESlib/sensors/IntelligentDPAutoDiscovery.js
TUYA_EF00_VERBOSElib/tuya/TuyaEF00Manager.js
TUYA_FP_HEURISTIClib/DeviceFingerprintDB.js, lib/helpers/ProbabilisticDeviceDetector.js, lib/tuya/DeviceFingerprintDB.js, tools/ci/auto-enrich-closed-loop.js +1
TUYA_FP_VERBOSElib/utils/fingerprint-matcher.js
UNBOUND_CATCH_GATEtools/ci/fix-unbound-catch-this-error.js
USERPROFILEscripts/ci/fetch-homey-app-diag-by-uuid.js, tools/ci/inspect-opencode-db.js, tools/ci/local-agenttrace.js, tools/ci/p2585-z2m-complementary-apply.js +1
VERBOSEscripts/maintenance/master-self-heal.js, scripts/validation/comprehensive-recursive-validator.js, scripts/validation/validate-driver-mesh.js
VERSION_HEALTH_WINDOWscripts/ci/version-health-check.js
VERSION_REPORT_MD_MAX_ROWSscripts/automation/version-intelligence-report.js
WATCHDOG_DEBUGscripts/automation/flow-card-watchdog.js
WORKFLOW_CONCLUSIONtools/ci/local-workflow-learn.js
WORKFLOW_DURATION_MStools/ci/local-workflow-learn.js
WORKFLOW_OKtools/ci/local-workflow-learn.js
XR_NET_CAPscripts/research/cross-research.js
XR_OCR_CAPscripts/research/cross-research.js
XR_REFscripts/research/cross-research.js
XR_WEBscripts/research/cross-research.js
XR_WEB_CAPscripts/research/cross-research.js
ZHA_CONCURRENCYscripts/sync/crawl-zha.js
ZHA_DEADLINE_MSscripts/sync/crawl-zha.js
ZHA_FILE_TIMEOUT_MSscripts/sync/crawl-zha.js
ZHC_PKG_DIRscripts/kb/coverage-sources.js

← Knowledge base index · source