Hauptmenü

Wie Tuya aktualisieren?

Begonnen von is2late, 26 März 2025, 11:21:55

Vorheriges Thema - Nächstes Thema

is2late

Hallo,

weiß jemand, wie man die Tuya-Geräte (bei smartlife integration) dazu bringt, das STATE zu aktualisieren? Bei mir klappt das nur in Verbindung mit einem Shutdown restart von Fhem.

LG Ingo
Pi4, Tahoma Jalousien, Hue, Echo, Sonos, Lupusec XT3, FritzBox

Gisbert

Hallo Ingo,

das scheint wohl nur so funktionieren, denn ich beobachte das gleiche.

Da ich einmal wöchentlich ein automatisiertes Fhem-Update per DOIF mache, habe ich einen Zweig wie folgt ergänzt, der zeitlich vor dem Fhem-Neustart liegt:

DOELSEIF ([03:05|6] and [?fhempy_local:version_available] ne [?fhempy_local:version])
((set fhempy_local update))

Da das ganze nachts geschieht, ist es mir nicht wichtig, falls für eine kurze Zeit keine Daten von Tyua-Geräten reinkommen.

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

is2late

Hallo Gisbert,

danke!
Verstehe ich das recht:
Du aktualisierst Deine Tuya-Geräte nur 1x wöchentlich?

LG Ingo
Pi4, Tahoma Jalousien, Hue, Echo, Sonos, Lupusec XT3, FritzBox

Gisbert

Hallo Ingo,

meine Aussage bezieht sich auf die Firmware-Version, die alle paar Wochen upgedated wird.

STATE steht im Bereich Internals, die für die Anwendung i.d.R. wenig interessant sind. Poste doch mal dein Device. Vielleicht ist da etwas definiert, was Events verhindert, dann wird entsprechend nichts neues im Device geschrieben.

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

is2late

Hi Gisbert,

vielen Dank für deine Hilfe!

Hier das Listing eines der Devices, die (alle) nicht aktualisiert werden:

[code]define tuya_smartlife_bfb2611eda4f2f54fcweii fhempy tuya_smartlife tuya_smartlife_integration bfb2611eda4f2f54fcweii
attr tuya_smartlife_bfb2611eda4f2f54fcweii alias ZX-8588 Balkonneu
attr tuya_smartlife_bfb2611eda4f2f54fcweii group tuya_smartlife
attr tuya_smartlife_bfb2611eda4f2f54fcweii room fhempy
attr tuya_smartlife_bfb2611eda4f2f54fcweii stateFormat humidity
#   DEF        tuya_smartlife tuya_smartlife_integration bfb2611eda4f2f54fcweii
#   DEVICEID   bfb2611eda4f2f54fcweii
#   FHEMPYTYPE tuya_smartlife
#   FUUID      677d45d7-f33f-5a15-90f8-c46ef9f0133ac98b
#   IODev      fhempy_local
#   NAME       tuya_smartlife_bfb2611eda4f2f54fcweii
#   NR         975
#   PYTHONTYPE tuya_smartlife
#   STATE      31
#   TYPE       fhempy
#   eventCount 4
#   READINGS:
#     2025-03-26 20:15:20   battery_percentage 80
#     2025-03-26 20:15:20   battery_state   high
#     2025-03-26 20:15:20   humidity        31
#     2025-03-26 20:11:30   state           ready
#     2025-03-26 20:15:20   temp_current    12
#     2025-03-26 20:15:20   temp_unit_convert c
#   args:
#     tuya_smartlife_bfb2611eda4f2f54fcweii
#     fhempy
#     tuya_smartlife
#     tuya_smartlife_integration
#     bfb2611eda4f2f54fcweii
#   argsh:
#
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 31
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 2025-03-26 20:15:20 battery_percentage 80
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 2025-03-26 20:15:20 battery_state high
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 2025-03-26 20:15:20 humidity 31
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 2025-03-26 20:11:30 state ready
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 2025-03-26 20:15:20 temp_current 12
setstate tuya_smartlife_bfb2611eda4f2f54fcweii 2025-03-26 20:15:20 temp_unit_convert c

[/code]

Die letzte Aktualisierung fand (etwa zwei Stunden später) statt, nachdem ich versuchsweise tuya_smartlife_integration auf relogin gesetzt hatte.

LG Ingo

Pi4, Tahoma Jalousien, Hue, Echo, Sonos, Lupusec XT3, FritzBox

Gisbert

Hallo Ingo,

ich kann dir mit meinen begrenzten Kenntnissen leider nicht weiterhelfen. Hier muss ein Fachmann ran.

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome