fhempy server offline nach neustart

Begonnen von 3dmanipulator, 21 März 2022, 15:48:40

Vorheriges Thema - Nächstes Thema

3dmanipulator

nach einem neustart von fhem ist der fhempy server offline.
er versucht zwar laufend neu zu starten aber ohne erfolg.

erst ein reboot des gesammten systems (pi) läuft er er wieder.
raspberry pi, razberry, fibaro sensor, fibaro dimmer,  nodon fb, tkb dual dimmer Switch, milight e27 + stripe, hmlan, hm-TC, hm-RT

jnewton957

Ich versuche seit ein paar Tagen fhempy mit einem Kia/Hyundai Modul zum Laufen zu bringen.

fhempy hat reading state: Installing fhempy (15min).
Ich habe aber einen grünen punkt und interpretiere das mal als "connected".

Nach dem define my_kia fhempy kia_hyundai USERNAME PASSWORD PIN kia eu
bekomme ich trotz Neustart des Raspi und Neustart des Fhem
als reading STATE fhempy server offline

Fhem ist auf aktuellem Stand

Jemand eine Idee, was ich noch machen kann.

Danke

Jörg
FHEM6.2 auf Pi5
V 1.66 nanoCUL 433 (IT)
V 1.66 nanoCUL868 (HM)
sqlite3 LogDb
ELRO AB440, DECT200,  TFA30.3125, esp8266, HM, TabletUI, IR-Schreiblesekopf (Udo),tibber Pulse, Kostal Pico, cfos Wallbox, Modbus TCP

Gisbert

Hallo Jörg,

ich hab ein ähnliches Verhalten mit einem Entfeuchter.
Das Definitionen in Fhem liefen alle, ich konnte den Entfeuchter mit FHEM steuern, alles schick.

Als ich heute den Fhem-Server neu gebootet hatte, hatte ich das Reading, das im Titel steht: fhempy server offline - mindestens eine Stunde tat sich nichts.

Ich hab dann Fhem neu gestartet - danach lief es wieder rund.

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

Superposchi

#3
Ich habe seit einiger Zeit das gleiche Problem.
Sowohl meine TUYA-Devices als auch die Googlecast-Devices zeigen alle samt nur noch "Python Server Offline" an.
Mein fempy_local zeigt ebenfalls den grünen Punkt aber im STATE "Installing fhempy (15min)." an.

Gibt es inzwischen neue Informationen zu dem Problem?
In den entsprechenden Unterforen kommt ja leider keine Reaktion dazu.

Hab Fhem natürlich schon neugestartet (mehrfach), auch schon mal alle betreffenden Devices gelöscht und wieder neu erstellt.

Das einzige was mir auffällt ist, das unter prev_error "DNS 127.0.0.11 timed out" angezeigt wird.

Habe beim Neustart des Fhem-Servers noch folgendes im Log gefunden:
hempy_local: Can't connect to ws:localhost:15733: DNS 127.0.0.11 timed out
BindingsIo (fhempy_local): ERROR during connection setup: DNS 127.0.0.11 timed out

thburkhart

1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Hi,
ich habe erst jetzt diesen Thread hier entdeckt.
Schau bitte mal im fhempy (nicht fhem!) Log was da für eine Fehlermeldung kommt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

Zitat von: dominik am 19 Januar 2023, 21:17:03
Hi,
ich habe erst jetzt diesen Thread hier entdeckt.
Schau bitte mal im fhempy (nicht fhem!) Log was da für eine Fehlermeldung kommt.

die letzen Zeilen von rund 115000 Zeilen:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:25,671 - ERROR    - TUYA_SP13: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:25,674 - ERROR    - TUYA_SP16: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:31,109 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: setDevAttrList('TUYA_Camera1', 'tuya_spec_functions tuya_spec_status dp_101:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_103:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_104:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_106:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_108:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_109:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_110:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_111:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_114:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_115:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_117:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_134:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_135:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_139:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_140:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_141:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_150:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_151:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_01:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_02:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_04:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_05:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_06:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_11:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode dp_07:basic_indicator,basic_flip,basic_osd,motion_sensitivity,basic_nightvision,sd_storge,sd_status,sd_format,motion_timer_setting,movement_detect_pic,sd_format_state,motion_switch,motion_timer_switch,decibel_switch,decibel_sensitivity,decibel_upload,record_switch,record_mode IODev '.$readingFnAttributes)
2023-01-19 19:55:31,110 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL33', 'tuya_spec_functions', '')
2023-01-19 19:55:31,110 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: $init_done
2023-01-19 19:55:31,111 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL24'},'switch_1','off');;
2023-01-19 19:55:31,111 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL29'},'switch','off');;
2023-01-19 19:55:31,112 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL25'},'switch_1','on');;
2023-01-19 19:55:31,112 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL26'},'switch_1','off');;
2023-01-19 19:55:31,112 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL28'},'switch_1','off');;
2023-01-19 19:55:31,113 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL30'},'switch','on');;
2023-01-19 19:55:31,113 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsSingleUpdate($defs{'TUYA_JL32'},'state','Initializing...',1)
2023-01-19 19:55:31,113 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: setDevAttrList('TUYA_MMG', ' IODev '.$readingFnAttributes)
2023-01-19 19:55:31,113 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_PIR2', 'verbose', '3')
2023-01-19 19:55:31,127 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsSingleUpdate($defs{'TUYA_JL31'},'state','Initializing...',1)
2023-01-19 19:55:31,564 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL04'});;
2023-01-19 19:55:31,571 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL03'});;
2023-01-19 19:55:36,991 - ERROR    - TUYA_JL28: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:36,993 - ERROR    - TUYA_JL26: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:36,995 - ERROR    - TUYA_JL03: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:37,595 - ERROR    - TUYA_JL24: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:37,705 - ERROR    - TUYA_Temp1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:55:37,706 - ERROR    - TUYA_JL04: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 637, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 19:56:06,970 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_JL13'},'cur_voltage','2225.0');;
2023-01-19 19:56:06,970 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_SP15', 'dp_39', '')
2023-01-19 19:56:07,098 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsSingleUpdate($defs{'TUYA_Temp3'},'state','Initializing...',1)
2023-01-19 19:56:07,098 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsSingleUpdate($defs{'TUYA_Temp2'},'state','Initializing...',1)
2023-01-19 20:52:53,248 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsEndUpdate($defs{'TUYA_SP11'},1);;
2023-01-19 21:11:48,956 - ERROR    - fhempy.lib.fhem: FHEM took 37086ms for readingsBeginUpdate($defs{'TUYA_JL04'});;
2023-01-19 21:11:48,957 - ERROR    - fhempy.lib.fhem: FHEM took 36600ms for readingsBeginUpdate($defs{'TUYA_Temp2'});;
2023-01-19 21:11:48,957 - ERROR    - fhempy.lib.fhem: FHEM took 36482ms for readingsBeginUpdate($defs{'TUYA_JL03'});;
2023-01-19 21:11:48,958 - ERROR    - fhempy.lib.fhem: FHEM took 35503ms for readingsBeginUpdate($defs{'TUYA_JL31'});;
2023-01-19 21:11:48,959 - ERROR    - fhempy.lib.fhem: FHEM took 34663ms for readingsBeginUpdate($defs{'TUYA_JL06'});;
2023-01-19 21:11:48,960 - ERROR    - fhempy.lib.fhem: FHEM took 34171ms for readingsBeginUpdate($defs{'TUYA_JL15'});;
2023-01-19 21:11:48,962 - ERROR    - fhempy.lib.fhem: FHEM took 34172ms for readingsBeginUpdate($defs{'TUYA_JL13'});;
2023-01-19 21:11:48,963 - ERROR    - fhempy.lib.fhem: FHEM took 33935ms for readingsBeginUpdate($defs{'TUYA_JL18'});;
2023-01-19 21:11:48,965 - ERROR    - fhempy.lib.fhem: FHEM took 33793ms for readingsBeginUpdate($defs{'TUYA_SP11'});;
2023-01-19 21:11:48,966 - ERROR    - fhempy.lib.fhem: FHEM took 32957ms for readingsBeginUpdate($defs{'TUYA_SP16'});;
2023-01-19 21:11:48,968 - ERROR    - fhempy.lib.fhem: FHEM took 32831ms for readingsBeginUpdate($defs{'TUYA_Temp1'});;
2023-01-19 21:11:48,970 - ERROR    - fhempy.lib.fhem: FHEM took 32725ms for readingsBeginUpdate($defs{'TUYA_JL07'});;
2023-01-19 21:11:48,971 - ERROR    - fhempy.lib.fhem: FHEM took 30645ms for readingsBeginUpdate($defs{'TUYA_JL30'});;
2023-01-19 21:11:48,972 - ERROR    - fhempy.lib.fhem: FHEM took 28950ms for readingsBeginUpdate($defs{'TUYA_JL32'});;
2023-01-19 21:11:48,974 - ERROR    - fhempy.lib.fhem: FHEM took 28051ms for readingsBeginUpdate($defs{'TUYA_JL25'});;
2023-01-19 21:11:48,975 - ERROR    - fhempy.lib.fhem: FHEM took 23789ms for readingsBeginUpdate($defs{'TUYA_JL20'});;
2023-01-19 21:11:48,977 - ERROR    - fhempy.lib.fhem: FHEM took 20313ms for readingsBeginUpdate($defs{'TUYA_DIY4'});;
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Starte bitte den fhempyserver neu und poste mir dann nochmals das Log von Beginn weg.

Ich hatte schon einen Report bekommen, dass ein User bei einem bestimmten tuya Device immer der fhempy Prozess auf 100% CPU ging. Dein Problem klingt für mich fast auch danach.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

[code][/code]
Zitat von: dominik am 19 Januar 2023, 21:35:54
Starte bitte den fhempyserver neu und poste mir dann nochmals das Log von Beginn weg.

Ich hatte schon einen Report bekommen, dass ein User bei einem bestimmten tuya Device immer der fhempy Prozess auf 100% CPU ging. Dein Problem klingt für mich fast auch danach.

2023-01-19 22:04:09,375 - ERROR    - fhempy.lib.fhem: Failed to set result, received: {"result":"2023-01-19 22:04:09","awaitId":50290095,"error":0}
2023-01-19 22:04:09,375 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2023-01-19 22:04:09,376 - INFO     - websockets.server: server closing
2023-01-19 22:04:19,367 - ERROR    - TUYA_BULB1: Exception raised by task: <Task finished name='Task-562' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:194> exception=AttributeError("'NoneType' object has no attribute 'device'")>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 202, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 196, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 500, in update_dps_loop
    # this is required to force update measurements (power, current, voltage)
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-19 22:04:19,372 - ERROR    - TUYA_Temp4: Exception raised by task: <Task finished name='Task-10254' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:194> exception=AttributeError("'NoneType' object has no attribute 'device'")>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 202, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 196, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 500, in update_dps_loop
    # this is required to force update measurements (power, current, voltage)
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-19 22:04:19,383 - INFO     - websockets.server: connection closed
2023-01-19 22:04:19,383 - INFO     - websockets.server: server closed
2023-01-19 22:04:19,388 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2023-01-19 22:04:20,617 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-19 22:04:20,620 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-19 22:04:20,650 - INFO     - websockets.server: server listening on 0.0.0.0:15733
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Etwas mehr bräuchte ich noch, weil da wartet fhempy noch auf die Verbindung von FHEM. Warte die noch ab, dann füllt sich wahrscheinlich das Log sehr schnell, mich würde aber der Bereich von dieser Zeile
2023-01-19 22:04:20,650 - INFO     - websockets.server: server listening on 0.0.0.0:15733
bis zum ersten Fehler interessieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

Zitat von: dominik am 19 Januar 2023, 22:14:42
Etwas mehr bräuchte ich noch, weil da wartet fhempy noch auf die Verbindung von FHEM. Warte die noch ab, dann füllt sich wahrscheinlich das Log sehr schnell, mich würde aber der Bereich von dieser Zeile
2023-01-19 22:04:20,650 - INFO     - websockets.server: server listening on 0.0.0.0:15733
bis zum ersten Fehler interessieren.

yepp

2023-01-19 22:04:07,817 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 22:04:08,865 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2023-01-19 22:04:09,337 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
/usr/lib/python3.9/asyncio/events.py:80: RuntimeWarning: coroutine 'Device.status' was never awaited
  self._context.run(self._callback, *self._args)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2023-01-19 22:04:09,375 - ERROR    - fhempy.lib.fhem: Failed to set result, received: {"result":"2023-01-19 22:04:09","awaitId":50290095,"error":0}
2023-01-19 22:04:09,375 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2023-01-19 22:04:09,376 - INFO     - websockets.server: server closing
2023-01-19 22:04:19,367 - ERROR    - TUYA_BULB1: Exception raised by task: <Task finished name='Task-562' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:194> exception=AttributeError("'NoneType' object has no attribute 'device'")>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 202, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 196, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 500, in update_dps_loop
    # this is required to force update measurements (power, current, voltage)
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-19 22:04:19,372 - ERROR    - TUYA_Temp4: Exception raised by task: <Task finished name='Task-10254' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:194> exception=AttributeError("'NoneType' object has no attribute 'device'")>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 202, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 196, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 500, in update_dps_loop
    # this is required to force update measurements (power, current, voltage)
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-19 22:04:19,383 - INFO     - websockets.server: connection closed
2023-01-19 22:04:19,383 - INFO     - websockets.server: server closed
2023-01-19 22:04:19,388 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2023-01-19 22:04:20,617 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-19 22:04:20,620 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-19 22:04:20,650 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-19 22:04:29,629 - INFO     - websockets.server: connection open
2023-01-19 22:04:29,630 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-19 22:04:32,324 - ERROR    - TUYA_Camera5: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 513, in setup_connection
    self._connected_device = await self.tt.connect(
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py", line 286, in connect
    device = OutletDevice(device_id, address, local_key, version=protocol_version)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1311, in __init__
    super(Device, args[0]).__init__(*args[1:], **kwargs)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 619, in __init__
    self.set_version(float(version))
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1167, in set_version
    self.detect_available_dps()
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1139, in detect_available_dps
    if "dps" in data:
TypeError: argument of type 'coroutine' is not iterable
2023-01-19 22:04:32,327 - ERROR    - TUYA_Camera3: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 513, in setup_connection
    self._connected_device = await self.tt.connect(
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py", line 286, in connect
    device = OutletDevice(device_id, address, local_key, version=protocol_version)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1311, in __init__
    super(Device, args[0]).__init__(*args[1:], **kwargs)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 619, in __init__
    self.set_version(float(version))
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1167, in set_version
    self.detect_available_dps()
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1139, in detect_available_dps
    if "dps" in data:
TypeError: argument of type 'coroutine' is not iterable
/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py:532: RuntimeWarning: coroutine 'Device.status' was never awaited
  await asyncio.sleep(1)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2023-01-19 22:04:44,254 - ERROR    - TUYA_DIY4: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,257 - ERROR    - TUYA_DIY1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,258 - ERROR    - TUYA_DIY3: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,265 - ERROR    - TUYA_BULB2: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,272 - ERROR    - TUYA_EMYLO2: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,326 - ERROR    - TUYA_EMYLO4: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,327 - ERROR    - TUYA_EMYLO3: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,328 - ERROR    - TUYA_EMYLO1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,399 - ERROR    - TUYA_JL06: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,404 - ERROR    - TUYA_JL04: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,475 - ERROR    - TUYA_JL10Z: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,479 - ERROR    - TUYA_JL05: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,480 - ERROR    - TUYA_JL09: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,538 - ERROR    - TUYA_JL12Z: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,550 - ERROR    - TUYA_JL13: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,560 - ERROR    - TUYA_JL08: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,561 - ERROR    - TUYA_JL14: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,565 - ERROR    - TUYA_JL07: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,566 - ERROR    - TUYA_JL03: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,573 - ERROR    - TUYA_JL11Z: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,583 - ERROR    - TUYA_JL15: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,479 - ERROR    - TUYA_JL20: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,487 - ERROR    - TUYA_Camera2: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,489 - ERROR    - TUYA_JL19: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,584 - ERROR    - TUYA_JL18: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:13,560 - ERROR    - TUYA_SCHF3: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:13,565 - ERROR    - TUYA_JL02: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,532 - ERROR    - TUYA_JL33: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,533 - ERROR    - TUYA_JL36: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,534 - ERROR    - TUYA_MMG: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,536 - ERROR    - TUYA_JL35: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,538 - ERROR    - TUYA_BULB1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,540 - ERROR    - TUYA_JL34: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:28,170 - ERROR    - TUYA_Sirene1: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 537, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 442, in _create_cloudmapping_dev
    await self.retrieve_tuya_specs()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 417, in retrieve_tuya_specs
    spec = await self.get_tuya_dev_specification()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 371, in get_tuya_dev_specification
    return resp["result"]
KeyError: 'result'
2023-01-19 22:05:40,362 - ERROR    - TUYA_PS1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 670, in update_readings
    self.convert(status[dp], st),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 566, in convert
    return value / (10 ** values["scale"])
TypeError: unsupported operand type(s) for /: 'str' and 'int'
2023-01-19 22:05:40,477 - ERROR    - TUYA_PS5: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 670, in update_readings
    self.convert(status[dp], st),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 566, in convert
    return value / (10 ** values["scale"])
TypeError: unsupported operand type(s) for /: 'str' and 'int'
2023-01-19 22:05:40,483 - ERROR    - TUYA_PS4: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 670, in update_readings
    self.convert(status[dp], st),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 566, in convert
    return value / (10 ** values["scale"])
TypeError: unsupported operand type(s) for /: 'str' and 'int'
2023-01-19 22:05:50,702 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL21'});;
2023-01-19 22:05:51,065 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL25'});;
2023-01-19 22:06:29,260 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL18'});;
2023-01-19 22:06:29,619 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL20'});;
2023-01-19 22:06:30,102 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL13'});;
2023-01-19 22:06:30,815 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL31'});;
2023-01-19 22:06:57,676 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL03'});;
2023-01-19 22:06:57,676 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL04'});;
2023-01-19 22:06:57,676 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL15'});;
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_Temp2', 'dp_23', '')
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_SP02'},'countdown_1','0.0');;
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_SP16'},'dp_08','0');;
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_SW02', 'dp_103', '')
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

Superposchi

Hallo Dominik,

könntest du einem Unwissenden erklären wie man den Fhempy-Server Neustart?
Bei mir wird ja "Python Server Offline" angezeigt.

thburkhart

#12
Zitat von: Superposchi am 19 Januar 2023, 22:33:37
Hallo Dominik,

könntest du einem Unwissenden erklären wie man den Fhempy-Server Neustart?
Bei mir wird ja "Python Server Offline" angezeigt.

ich denke mit:
set local_pybinding restart

noch ist das Problem nicht behoben; Dominik ist wohl dran

aktuell legt mein shutdown restart eine Gedenkstunde ein ;-)
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Zitat von: thburkhart am 19 Januar 2023, 22:21:35
yepp

2023-01-19 22:04:07,817 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 22:04:08,865 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2023-01-19 22:04:09,337 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
/usr/lib/python3.9/asyncio/events.py:80: RuntimeWarning: coroutine 'Device.status' was never awaited
  self._context.run(self._callback, *self._args)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2023-01-19 22:04:09,375 - ERROR    - fhempy.lib.fhem: Failed to set result, received: {"result":"2023-01-19 22:04:09","awaitId":50290095,"error":0}
2023-01-19 22:04:09,375 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2023-01-19 22:04:09,376 - INFO     - websockets.server: server closing
2023-01-19 22:04:19,367 - ERROR    - TUYA_BULB1: Exception raised by task: <Task finished name='Task-562' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:194> exception=AttributeError("'NoneType' object has no attribute 'device'")>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 202, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 196, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 500, in update_dps_loop
    # this is required to force update measurements (power, current, voltage)
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-19 22:04:19,372 - ERROR    - TUYA_Temp4: Exception raised by task: <Task finished name='Task-10254' coro=<FhemModule._run_coro() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py:194> exception=AttributeError("'NoneType' object has no attribute 'device'")>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 202, in _handle_task_result
    task.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/generic.py", line 196, in _run_coro
    await coro
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 500, in update_dps_loop
    # this is required to force update measurements (power, current, voltage)
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-19 22:04:19,383 - INFO     - websockets.server: connection closed
2023-01-19 22:04:19,383 - INFO     - websockets.server: server closed
2023-01-19 22:04:19,388 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2023-01-19 22:04:20,617 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-19 22:04:20,620 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-19 22:04:20,650 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-19 22:04:29,629 - INFO     - websockets.server: connection open
2023-01-19 22:04:29,630 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-19 22:04:32,324 - ERROR    - TUYA_Camera5: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 513, in setup_connection
    self._connected_device = await self.tt.connect(
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py", line 286, in connect
    device = OutletDevice(device_id, address, local_key, version=protocol_version)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1311, in __init__
    super(Device, args[0]).__init__(*args[1:], **kwargs)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 619, in __init__
    self.set_version(float(version))
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1167, in set_version
    self.detect_available_dps()
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1139, in detect_available_dps
    if "dps" in data:
TypeError: argument of type 'coroutine' is not iterable
2023-01-19 22:04:32,327 - ERROR    - TUYA_Camera3: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 513, in setup_connection
    self._connected_device = await self.tt.connect(
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py", line 286, in connect
    device = OutletDevice(device_id, address, local_key, version=protocol_version)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1311, in __init__
    super(Device, args[0]).__init__(*args[1:], **kwargs)
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 619, in __init__
    self.set_version(float(version))
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1167, in set_version
    self.detect_available_dps()
  File "/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py", line 1139, in detect_available_dps
    if "dps" in data:
TypeError: argument of type 'coroutine' is not iterable
/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py:532: RuntimeWarning: coroutine 'Device.status' was never awaited
  await asyncio.sleep(1)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2023-01-19 22:04:44,254 - ERROR    - TUYA_DIY4: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,257 - ERROR    - TUYA_DIY1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,258 - ERROR    - TUYA_DIY3: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,265 - ERROR    - TUYA_BULB2: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,272 - ERROR    - TUYA_EMYLO2: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,326 - ERROR    - TUYA_EMYLO4: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,327 - ERROR    - TUYA_EMYLO3: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:44,328 - ERROR    - TUYA_EMYLO1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,399 - ERROR    - TUYA_JL06: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,404 - ERROR    - TUYA_JL04: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,475 - ERROR    - TUYA_JL10Z: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,479 - ERROR    - TUYA_JL05: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:48,480 - ERROR    - TUYA_JL09: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,538 - ERROR    - TUYA_JL12Z: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,550 - ERROR    - TUYA_JL13: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,560 - ERROR    - TUYA_JL08: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,561 - ERROR    - TUYA_JL14: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,565 - ERROR    - TUYA_JL07: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,566 - ERROR    - TUYA_JL03: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,573 - ERROR    - TUYA_JL11Z: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:51,583 - ERROR    - TUYA_JL15: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,479 - ERROR    - TUYA_JL20: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,487 - ERROR    - TUYA_Camera2: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,489 - ERROR    - TUYA_JL19: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:04:55,584 - ERROR    - TUYA_JL18: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:13,560 - ERROR    - TUYA_SCHF3: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:13,565 - ERROR    - TUYA_JL02: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,532 - ERROR    - TUYA_JL33: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,533 - ERROR    - TUYA_JL36: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,534 - ERROR    - TUYA_MMG: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,536 - ERROR    - TUYA_JL35: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,538 - ERROR    - TUYA_BULB1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:14,540 - ERROR    - TUYA_JL34: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-19 22:05:28,170 - ERROR    - TUYA_Sirene1: Failed create_device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 537, in create_device
    await self._create_cloudmapping_dev()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 442, in _create_cloudmapping_dev
    await self.retrieve_tuya_specs()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 417, in retrieve_tuya_specs
    spec = await self.get_tuya_dev_specification()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 371, in get_tuya_dev_specification
    return resp["result"]
KeyError: 'result'
2023-01-19 22:05:40,362 - ERROR    - TUYA_PS1: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 670, in update_readings
    self.convert(status[dp], st),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 566, in convert
    return value / (10 ** values["scale"])
TypeError: unsupported operand type(s) for /: 'str' and 'int'
2023-01-19 22:05:40,477 - ERROR    - TUYA_PS5: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 670, in update_readings
    self.convert(status[dp], st),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 566, in convert
    return value / (10 ** values["scale"])
TypeError: unsupported operand type(s) for /: 'str' and 'int'
2023-01-19 22:05:40,483 - ERROR    - TUYA_PS4: Failed to update readings
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 670, in update_readings
    self.convert(status[dp], st),
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/tuya/tuya.py", line 566, in convert
    return value / (10 ** values["scale"])
TypeError: unsupported operand type(s) for /: 'str' and 'int'
2023-01-19 22:05:50,702 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL21'});;
2023-01-19 22:05:51,065 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL25'});;
2023-01-19 22:06:29,260 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL18'});;
2023-01-19 22:06:29,619 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL20'});;
2023-01-19 22:06:30,102 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL13'});;
2023-01-19 22:06:30,815 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL31'});;
2023-01-19 22:06:57,676 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL03'});;
2023-01-19 22:06:57,676 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL04'});;
2023-01-19 22:06:57,676 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBeginUpdate($defs{'TUYA_JL15'});;
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_Temp2', 'dp_23', '')
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_SP02'},'countdown_1','0.0');;
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: readingsBulkUpdateIfChanged($defs{'TUYA_SP16'},'dp_08','0');;
2023-01-19 22:06:57,795 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_SW02', 'dp_103', '')


Das sind wohl Version 3.2 Devices, oder? Da liegt das Problem...
Mach bitte ein
sudo -u fhem bash
pip3 uninstall tinytuya

Danach fhempyserver neu starten. Ich habe in der fhempy-tinytuya Lib noch etwas geändert.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: Superposchi am 19 Januar 2023, 22:33:37
Hallo Dominik,

könntest du einem Unwissenden erklären wie man den Fhempy-Server Neustart?
Bei mir wird ja "Python Server Offline" angezeigt.

Ein harter (nur im Fehlerfall) empfohlener Neustart ist
set fhempyserver_15733 restart (das macht ein kill!)
ansonsten
set fhempy_local restart (das fährt sauber runter, dauert aber manchmal 2-3min)

Falls die Fehlermeldung bleibt, dann bitte auch fhempy Log posten.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik