Skip to content

v4.7.1 — Tuya 2008 Fix, Diagnostics, Active Discovery

Choose a tag to compare

@moag1000 moag1000 released this 06 May 13:39

Hauptfix: Tuya Error 2008 bei SmartLife-Cloud

Symptom: RGB/Brightness/Programmwechsel scheiterten mit network error:(2008) 2008 obwohl die Tuya-App parallel funktionierte.

Root cause: Hardcoded property-codes ("RGB", "light_brightness") in device_types.py stimmten nicht mit der echten Cloud-Spec des Geräts überein (Firmware/Region-Drift).

Fix:

  • Live property-codes aus device.local_strategy[dp].status_code (HA-Core-Pattern)
  • Auto-Cache-Refresh-Retry: Bei Fehler Manager.update_device_cache() und einmal retry
  • HomeAssistantError zeigt echte Ursache statt "command returned failure"

Discovery-Verbesserungen (Auto-IP-Erkennung)

Symptom: "No local IP found" bei SmartLife-Setup obwohl Gerät im LAN.

Fix:

  • Active 3.5-Probe auf UDP 7000 alle 2s (REQ_DEVINFO Broadcast wie tinytuya)
  • Setup wartet aktiv 8s auf Broadcast wenn Gerät nicht im Cache
  • simple_tuya_discover Bugfix: Liste auf alle 3 UDP-Ports erweitert (6666/6667/7000)
  • Klare User-Anleitung falls Auto-Erkennung fehlschlägt

Diagnostics-Dump erweitert (HA-Core Parität)

Diagnostics-Export enthält jetzt für SmartLife-Mode:

  • device.function (Codes die das Gerät akzeptiert)
  • device.status (aktueller State, code-keyed)
  • device.status_range (Typen + erlaubte Werte)
  • device.local_strategy (DP→code Mapping)
  • device.online (Tuya-Cloud-Konnektivität)

→ 1-Klick-Dump zum Debuggen von Cloud-Send-Failures.

Account-Reconfigure-Fix

Reconfigure auf SmartLife-Account-Entries zeigte fälschlich Device-Menu (Connection/Device Type/API) — Account hat aber keine IP/Device-Type. Jetzt → direkt smartlife_reauth Flow (QR-Code-Reauth).

Neue API

  • TuyaSharingClient.get_device_diagnostics(device_id) — komprimierter Cloud-Dump
  • TuyaSharingClient.async_refresh_device_cache() — manueller Cache-Refresh
  • TuyaSharingClient.get_device_codes(device_id) — live dpId → code Mapping
  • KKTKolbeHybridCoordinator.smartlife_device_onlinedevice.online Property

Dependency-Bumps

  • tinytuya: >=1.17.0>=1.18.0
  • tuya-device-sharing-sdk: >=0.2.8>=0.2.9

Tests

239/239 passing (1 neuer Regression-Test für Account-Reconfigure-Routing).

Upgrade

HACS → Updates → KKT Kolbe → Update → Restart Home Assistant