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 | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

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

thburkhart

#15
Zitat von: dominik am 19 Januar 2023, 22:45:22
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.

3.2. könnte bei manchen sein

ansonsten bin ich deinen Anweisungen gefolgt

LoG:
023-01-19 23:04:03,788 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL33', 'dp_105', '')
2023-01-19 23:04:03,788 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_SCHF2', 'dp_104', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_SP01', 'dp_104', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL28', 'dp_105', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL36', 'dp_105', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL29', 'dp_26', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL32', 'dp_32', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: CommandAttr(undef, "TUYA_Camera5 dp_106 motion_sensitivity")
2023-01-19 23:04:03,790 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_SensorT03', 'tuya_spec_functions', '')
2023-01-19 23:04:04,577 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:05,523 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:08,230 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:09,087 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:09,655 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:10,597 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:14,666 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:15,609 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:18,250 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:19,099 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:19,687 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:20,621 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:24,698 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:25,675 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:28,334 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:29,298 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:29,896 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:30,747 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:32,756 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:33,493 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:34,952 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:35,782 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:38,346 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:39,310 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:40,018 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:40,856 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:45,103 - WARNING  - asyncio: socket.send() raised exception.
2023-01-19 23:04:45,961 - WARNING  - asyncio: socket.send() raised exception.


2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL28', 'dp_105', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL36', 'dp_105', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL29', 'dp_26', '')
2023-01-19 23:04:03,789 - ERROR    - fhempy.lib.fhem: NO RESPONSE since 60s: AttrVal('TUYA_JL32', 'dp_32', '')


das sind eigentlich neuere Geräte

hier JL28:
[code]define TUYA_JL28 fhempy tuya wifvoilfrqeo6hvu 3367036770039f60c576 192.168.9.27 628b38730b4c06e3 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
attr TUYA_JL28 DbLogExclude .*
attr TUYA_JL28 alias JL28 Steckdose Garage 1
attr TUYA_JL28 dp_01 switch_1
attr TUYA_JL28 dp_02 countdown_1
attr TUYA_JL28 dp_03 add_ele
attr TUYA_JL28 dp_04 cur_current
attr TUYA_JL28 dp_05 cur_power
attr TUYA_JL28 dp_06 cur_voltage
attr TUYA_JL28 group Schalter (T),Schalter diverse
attr TUYA_JL28 room Garage,fhempy
attr TUYA_JL28 tuya_spec_functions [{'code': 'switch_1', 'dp_id': 1, 'type': 'Boolean', 'values': {}, 'desc': 'switch 1'}, {'code': 'countdown_1', 'dp_id': 2, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '秒', 'max': 86400, 'step': 1}, 'desc': 'countdown 1'}]
attr TUYA_JL28 tuya_spec_status [{'code': 'switch_1', 'dp_id': 1, 'type': 'Boolean', 'values': {}}, {'code': 'countdown_1', 'dp_id': 2, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '秒', 'max': 86400, 'step': 1}}, {'code': 'add_ele', 'dp_id': 3, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '度', 'max': 500000, 'step': 100}}, {'code': 'cur_current', 'dp_id': 4, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': 'mA', 'max': 30000, 'step': 1}}, {'code': 'cur_power', 'dp_id': 5, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': 'W', 'max': 50000, 'step': 1}}, {'code': 'cur_voltage', 'dp_id': 6, 'type': 'Integer', 'values': {'min': 0, 'unit': 'V', 'scale': 0, 'max': 2500, 'step': 1}}]
#   DEF        tuya wifvoilfrqeo6hvu 3367036770039f60c576 192.168.9.27 628b38730b4c06e3 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
#   DEVICEID   3367036770039f60c576
#   FHEMPYTYPE tuya
#   FUUID      63b36581-f33f-fd5f-0a3c-6fb7113069b4e237
#   IODev      local_pybinding
#   NAME       TUYA_JL28
#   NR         2033
#   PYTHONTYPE tuya
#   STATE      off
#   TYPE       fhempy
#   eventCount 12
#   READINGS:
#     2023-01-03 10:58:25   active_time     1621695993
#     2023-01-14 13:09:14   add_ele         1.0
#     2023-01-03 10:58:25   biz_type        18
#     2023-01-03 10:58:25   category        cz
#     2023-01-19 22:49:48   countdown_1     0.0
#     2023-01-03 10:58:25   create_time     1621695993
#     2023-01-19 23:04:46   cur_current     0.0
#     2023-01-19 23:04:46   cur_power       0.0
#     2023-01-19 23:04:46   cur_voltage     0.0
#     2023-01-19 01:20:48   dp_07           0
#     2023-01-13 21:14:59   dp_08           0
#     2023-01-03 10:58:32   dp_09           0
#     2023-01-13 21:14:59   dp_10           0
#     2023-01-03 10:58:32   dp_101          0
#     2023-01-03 10:58:32   dp_102          0
#     2023-01-03 10:58:32   dp_103          0
#     2023-01-03 10:58:32   dp_104          0
#     2023-01-03 10:58:32   dp_105          0
#     2023-01-13 21:14:59   dp_11           0
#     2023-01-13 21:14:59   dp_12           0
#     2023-01-13 21:14:59   dp_15           0
#     2023-01-19 23:04:05   dp_18           869
#     2023-01-19 23:04:05   dp_19           2004
#     2023-01-19 23:04:05   dp_20           2463
#     2023-01-19 23:04:05   dp_21           white
#     2023-01-19 23:04:05   dp_22           1000
#     2023-01-19 23:04:05   dp_23           0
#     2023-01-19 23:04:05   dp_24           21782
#     2023-01-19 23:04:05   dp_25           000e0d0000000000000000c80000
#     2023-01-03 10:58:32   dp_26           0
#     2023-01-11 23:22:22   dp_32           normal
#     2023-01-13 21:14:59   dp_38           1
#     2023-01-03 10:58:32   dp_39           0
#     2023-01-03 10:58:25   icon            smart/device_icon/eu1548823829280mLHX1/3367036770039f60c576163417966053451.png
#     2023-01-03 10:58:25   id              3367036770039f60c576
#     2023-01-03 10:58:25   ip              46.5.205.243
#     2023-01-03 10:58:25   lat             48.5585
#     2023-01-03 10:58:25   local_key       628b38730b4c06e3
#     2023-01-03 10:58:25   lon             9.2025
#     2023-01-03 10:58:25   model           欧规,10A,带计电量,支持酷客RF产测
#     2023-01-03 10:58:25   name            JL28 Steckdose Garage 1
#     2023-01-19 23:02:46   online          1
#     2023-01-03 10:58:25   owner_id        3389434
#     2023-01-03 10:58:25   product_id      wifvoilfrqeo6hvu
#     2023-01-03 10:58:25   product_name    Smart Socket
#     2023-01-19 23:04:05   state           off
#     2023-01-03 10:58:25   sub             0
#     2023-01-12 23:13:53   switch_1        off
#     2023-01-03 10:58:25   time_zone       +01:00
#     2023-01-03 10:58:25   uid             eu1548823829280mLHX1
#     2023-01-03 10:58:25   update_time     1672700863
#     2023-01-03 10:58:25   uuid            3367036770039f60c576
#   args:
#     TUYA_JL28
#     fhempy
#     tuya
#     wifvoilfrqeo6hvu
#     3367036770039f60c576
#     192.168.9.27
#     628b38730b4c06e3
#     3.3
#     ea8453wdazquzfl08l0e
#     8a4b27dd759d4c6a9456aa8155d2a0ea
#   argsh:
#
setstate TUYA_JL28 off
setstate TUYA_JL28 2023-01-03 10:58:25 active_time 1621695993
setstate TUYA_JL28 2023-01-14 13:09:14 add_ele 1.0
setstate TUYA_JL28 2023-01-03 10:58:25 biz_type 18
setstate TUYA_JL28 2023-01-03 10:58:25 category cz
setstate TUYA_JL28 2023-01-19 22:49:48 countdown_1 0.0
setstate TUYA_JL28 2023-01-03 10:58:25 create_time 1621695993
setstate TUYA_JL28 2023-01-19 23:04:46 cur_current 0.0
setstate TUYA_JL28 2023-01-19 23:04:46 cur_power 0.0
setstate TUYA_JL28 2023-01-19 23:04:46 cur_voltage 0.0
setstate TUYA_JL28 2023-01-19 01:20:48 dp_07 0
setstate TUYA_JL28 2023-01-13 21:14:59 dp_08 0
setstate TUYA_JL28 2023-01-03 10:58:32 dp_09 0
setstate TUYA_JL28 2023-01-13 21:14:59 dp_10 0
setstate TUYA_JL28 2023-01-03 10:58:32 dp_101 0
setstate TUYA_JL28 2023-01-03 10:58:32 dp_102 0
setstate TUYA_JL28 2023-01-03 10:58:32 dp_103 0
setstate TUYA_JL28 2023-01-03 10:58:32 dp_104 0
setstate TUYA_JL28 2023-01-03 10:58:32 dp_105 0
setstate TUYA_JL28 2023-01-13 21:14:59 dp_11 0
setstate TUYA_JL28 2023-01-13 21:14:59 dp_12 0
setstate TUYA_JL28 2023-01-13 21:14:59 dp_15 0
setstate TUYA_JL28 2023-01-19 23:04:05 dp_18 869
setstate TUYA_JL28 2023-01-19 23:04:05 dp_19 2004
setstate TUYA_JL28 2023-01-19 23:04:05 dp_20 2463
setstate TUYA_JL28 2023-01-19 23:04:05 dp_21 white
setstate TUYA_JL28 2023-01-19 23:04:05 dp_22 1000
setstate TUYA_JL28 2023-01-19 23:04:05 dp_23 0
setstate TUYA_JL28 2023-01-19 23:04:05 dp_24 21782
setstate TUYA_JL28 2023-01-19 23:04:05 dp_25 000e0d0000000000000000c80000
setstate TUYA_JL28 2023-01-03 10:58:32 dp_26 0
setstate TUYA_JL28 2023-01-11 23:22:22 dp_32 normal
setstate TUYA_JL28 2023-01-13 21:14:59 dp_38 1
setstate TUYA_JL28 2023-01-03 10:58:32 dp_39 0
setstate TUYA_JL28 2023-01-03 10:58:25 icon smart/device_icon/eu1548823829280mLHX1/3367036770039f60c576163417966053451.png
setstate TUYA_JL28 2023-01-03 10:58:25 id 3367036770039f60c576
setstate TUYA_JL28 2023-01-03 10:58:25 ip 46.5.205.243
setstate TUYA_JL28 2023-01-03 10:58:25 lat 48.5585
setstate TUYA_JL28 2023-01-03 10:58:25 local_key 628b38730b4c06e3
setstate TUYA_JL28 2023-01-03 10:58:25 lon 9.2025
setstate TUYA_JL28 2023-01-03 10:58:25 model 欧规,10A,带计电量,支持酷客RF产测
setstate TUYA_JL28 2023-01-03 10:58:25 name JL28 Steckdose Garage 1
setstate TUYA_JL28 2023-01-19 23:02:46 online 1
setstate TUYA_JL28 2023-01-03 10:58:25 owner_id 3389434
setstate TUYA_JL28 2023-01-03 10:58:25 product_id wifvoilfrqeo6hvu
setstate TUYA_JL28 2023-01-03 10:58:25 product_name Smart Socket
setstate TUYA_JL28 2023-01-19 23:04:05 state off
setstate TUYA_JL28 2023-01-03 10:58:25 sub 0
setstate TUYA_JL28 2023-01-12 23:13:53 switch_1 off
setstate TUYA_JL28 2023-01-03 10:58:25 time_zone +01:00
setstate TUYA_JL28 2023-01-03 10:58:25 uid eu1548823829280mLHX1
setstate TUYA_JL28 2023-01-03 10:58:25 update_time 1672700863
setstate TUYA_JL28 2023-01-03 10:58:25 uuid 3367036770039f60c576

[/code]
wobei es da kein dp_105 gibt
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

Bitte das Log vom fhempy Start weg, damit ich den ersten Fehler sehe.
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, 23:18:33
Bitte das Log vom fhempy Start weg, damit ich den ersten Fehler sehe.

ok

2023-01-20 08:23:23,732 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2023-01-20 08:23:23,733 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2023-01-20 08:23:25,163 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:26,172 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:26,179 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:26,232 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:26,554 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:30,456 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:31,184 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:31,191 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:31,243 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:23:34,189 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2023-01-20 08:23:34,308 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2023-01-20 08:23:34,368 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2023-01-20 08:23:34,369 - ERROR    - fhempy.lib.fhem: Failed to set result, received: {"error":0,"awaitId":40317637,"result":null}
2023-01-20 08:23:34,369 - INFO     - websockets.server: server closing
2023-01-20 08:23:44,361 - ERROR    - TUYA_SensorT02: Exception raised by task: <Task finished name='Task-2866' 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 501, in update_dps_loop
    await self._connected_device.device.device.updatedps()
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-20 08:23:44,364 - ERROR    - TUYA_SW02: Exception raised by task: <Task finished name='Task-8366' 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 501, in update_dps_loop
    await self._connected_device.device.device.updatedps()
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-20 08:23:44,366 - ERROR    - TUYA_SensorT01: Exception raised by task: <Task finished name='Task-8351' 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 501, in update_dps_loop
    await self._connected_device.device.device.updatedps()
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-20 08:23:44,367 - ERROR    - TUYA_PS1: Exception raised by task: <Task finished name='Task-3293' 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 501, in update_dps_loop
    await self._connected_device.device.device.updatedps()
AttributeError: 'NoneType' object has no attribute 'device'
2023-01-20 08:23:44,376 - INFO     - websockets.server: connection closed
2023-01-20 08:23:44,377 - INFO     - websockets.server: server closed
2023-01-20 08:23:44,383 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2023-01-20 08:23:45,619 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-20 08:23:45,622 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 08:23:45,652 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 08:23:55,599 - INFO     - websockets.server: connection open
2023-01-20 08:23:55,600 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-20 08:24:00,321 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-413' coro=<main() running at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py:247> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb26e3ef8>()]>>
2023-01-20 08:24:00,321 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-418' coro=<main() running at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py:247> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb26e3130>()]>>
2023-01-20 08:24:09,690 - 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-20 08:24:09,697 - 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-20 08:24:09,699 - 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-20 08:24:09,700 - 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-20 08:24:09,702 - 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-20 08:24:12,614 - 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-20 08:24:12,617 - 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-20 08:24:12,622 - 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-20 08:24:12,623 - 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-20 08:24:12,624 - 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-20 08:24:12,625 - 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-20 08:24:12,627 - 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-20 08:24:12,634 - 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-20 08:24:14,865 - 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-20 08:24:14,866 - 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-20 08:24:14,868 - 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-20 08:24:14,941 - 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-20 08:24:14,945 - 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-20 08:24:14,946 - 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-20 08:24:14,950 - 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-20 08:24:22,963 - ERROR    - TUYA_JL32: 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-20 08:24:22,965 - ERROR    - TUYA_Camera4: 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-20 08:24:22,970 - 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 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-20 08:24:22,972 - ERROR    - TUYA_JL21: 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-20 08:24:22,973 - 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-20 08:24:22,975 - ERROR    - TUYA_Camera1: 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-20 08:24:22,988 - 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 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-20 08:24:23,045 - ERROR    - TUYA_JL29: 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-20 08:24:23,052 - 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 638, in update_readings
    for dp in status:
RuntimeError: dictionary changed size during iteration
2023-01-20 08:24:23,054 - ERROR    - TUYA_JL25: 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-20 08:24:23,059 - ERROR    - TUYA_JL27: 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-20 08:24:32,493 - 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-20 08:24:32,494 - 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-20 08:24:32,854 - 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-20 08:24:32,863 - 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-20 08:24:33,219 - 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-20 08:24:33,221 - ERROR    - TUYA_JL31: 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-20 08:24:43,485 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-412' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 08:24:43,602 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-417' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 08:24:43,721 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:24:45,049 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:24:49,358 - 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-20 08:24:50,094 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:24:53,734 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:24:55,107 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 08:25:04,583 - 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-20 08:25:10,190 - 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'


hoffe auf behebung


sonst kommt alle paar Sekunden :

2023-01-20 00:00:00,158 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:04,305 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:04,306 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:08,192 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:09,318 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:09,319 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:10,170 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:14,527 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:14,528 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:18,203 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:19,632 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:19,633 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:20,244 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:24,644 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:24,646 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:28,273 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:29,711 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:29,711 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:30,356 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:34,805 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:34,807 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:36,331 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:37,522 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:38,372 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:39,818 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:39,820 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:40,367 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:44,922 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:44,923 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:48,444 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:49,996 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:49,997 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:50,382 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:55,008 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:55,009 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:00:58,536 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:00,121 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:00,122 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:00,594 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:05,133 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:05,134 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:08,549 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:10,145 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:10,147 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:10,631 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:15,242 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:15,242 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:18,562 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:20,345 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:20,345 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:20,716 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:25,356 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:25,357 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:28,575 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:30,436 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:30,436 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:30,781 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:35,548 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:35,549 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:36,384 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:37,618 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:38,612 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:40,677 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 00:01:40,677 -
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

Hier fängt das Problem schon an
Zitat2023-01-20 08:23:55,600 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-20 08:24:00,321 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-413' coro=<main() running at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py:247> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb26e3ef8>()]>>

Mir ist nicht klar warum der Task destroyed wird, das dürfte nicht sein. Das passiert eigentlich nur, wenn die Eventloop geschlossen wird. Kannst du in der fhem.cfg mal alle Devices bis auf eines löschen, damit wir sehen wie das mit einem einzelnen Device aussieht? Du kannst ja später die Devices wieder hinzufügen.
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 20 Januar 2023, 15:56:00
Hier fängt das Problem schon an
Mir ist nicht klar warum der Task destroyed wird, das dürfte nicht sein. Das passiert eigentlich nur, wenn die Eventloop geschlossen wird. Kannst du in der fhem.cfg mal alle Devices bis auf eines löschen, damit wir sehen wie das mit einem einzelnen Device aussieht? Du kannst ja später die Devices wieder hinzufügen.

sodele habe ich gemacht und nur ein TemperaturDevice belassen:

fhempy-Log:

2023-01-20 16:44:21,376 - WARNING  - asyncio: socket.send() raised exception.
2023-01-20 17:43:06,564 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-20 17:43:06,568 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 17:43:06,605 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 17:43:12,941 - INFO     - websockets.server: connection open
2023-01-20 17:43:12,942 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1


sieht also gut aus ? :-)
der room "fhempy" wird auch sofort angezeigt (statt nach einigen Sekunden/Minuten)

soll ich nun successive weitere Devices wieder reinnehmen, bis die Übeltäter identifiziert sind?
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

Ja, bitte. Ich denke es ist ein Version 3.2 Device welches die Probleme macht.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

#21
Zitat von: dominik am 20 Januar 2023, 20:49:05
Ja, bitte. Ich denke es ist ein Version 3.2 Device welches die Probleme macht.

ok ... ich taste mich mal in 5erPortionen vor...

und da knallte es wieder:

##### BULBx ~~~~~~~~ ausgekl 2023-01-20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# define TUYA_BULB1 fhempy tuya h19lwmmcfp2tw5nl 00715387f4cfa2092c01 192.168.9.60 03c41b994a0ce655 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
# setuuid TUYA_BULB1 63a35ffb-f33f-fd5f-ae00-5787564aa163664b
# attr TUYA_BULB1 DbLogExclude .*
# attr TUYA_BULB1 alias BULB1 PETRA Nacht 1
# attr TUYA_BULB1 dp_20 switch_led
# attr TUYA_BULB1 dp_21 work_mode
# attr TUYA_BULB1 dp_22 bright_value_v2
# attr TUYA_BULB1 dp_23 temp_value_v2
# attr TUYA_BULB1 dp_25 scene_data_v2
# attr TUYA_BULB1 dp_26 countdown_1
# attr TUYA_BULB1 dp_28 control_data
# attr TUYA_BULB1 group Lampe (T)
# attr TUYA_BULB1 room PETRA,fhempy
# attr TUYA_BULB1 tuya_spec_functions [{'code': 'switch_led', 'dp_id': 20, 'type': 'Boolean', 'values': {}, 'desc': 'switch led'}, {'code': 'work_mode', 'dp_id': 21, 'type': 'Enum', 'values': {'range': ['white', 'colour', 'scene', 'music']}, 'desc': 'work mode'}, {'code': 'bright_value_v2', 'dp_id': 22, 'type': 'Integer', 'values': {'min': 10, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'desc': 'bright value v2'}, {'code': 'temp_value_v2', 'dp_id': 23, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'desc': 'temp value v2'}, {'code': 'scene_data_v2', 'dp_id': 25, 'type': 'Json', 'values': {'scene_num': {'min': 1, 'scale': 0, 'max': 8, 'step': 1}, 'scene_units': {'unit_change_mode': {'range': ['static', 'jump', 'gradient']}, 'unit_switch_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'unit_gradient_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'bright': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}, 'desc': 'scene data v2'}, {'code': 'countdown_1', 'dp_id': 26, 'type': 'Integer', 'values': {'unit': '', 'min': 0, 'max': 86400, 'scale': 0, 'step': 1}, 'desc': 'countdown 1'}, {'code': 'control_data', 'dp_id': 28, 'type': 'Json', 'values': {'change_mode': {'range': ['direct', 'gradient']}, 'bright': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}}, 'desc': 'control data'}]
# attr TUYA_BULB1 tuya_spec_status [{'code': 'switch_led', 'dp_id': 20, 'type': 'Boolean', 'values': {}}, {'code': 'work_mode', 'dp_id': 21, 'type': 'Enum', 'values': {'range': ['white', 'colour', 'scene', 'music']}}, {'code': 'bright_value_v2', 'dp_id': 22, 'type': 'Integer', 'values': {'min': 10, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}, {'code': 'temp_value_v2', 'dp_id': 23, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}, {'code': 'scene_data_v2', 'dp_id': 25, 'type': 'Json', 'values': {'scene_num': {'min': 1, 'scale': 0, 'max': 8, 'step': 1}, 'scene_units': {'unit_change_mode': {'range': ['static', 'jump', 'gradient']}, 'unit_switch_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'unit_gradient_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'bright': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}}, {'code': 'countdown_1', 'dp_id': 26, 'type': 'Integer', 'values': {'unit': '', 'min': 0, 'max': 86400, 'scale': 0, 'step': 1}}, {'code': 'control_data', 'dp_id': 28, 'type': 'Json', 'values': {'change_mode': {'range': ['direct', 'gradient']}, 'bright': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}}}]

# define TUYA_BULB2 fhempy tuya h19lwmmcfp2tw5nl 00715387f4cfa209ab1e 192.168.9.61 537e63946514289e 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
# setuuid TUYA_BULB2 63a4a5ec-f33f-fd5f-31c2-c7cc5445c3d51616
# attr TUYA_BULB2 DbLogExclude .*
# attr TUYA_BULB2 alias BULB2 Globus
# attr TUYA_BULB2 dp_20 switch_led
# attr TUYA_BULB2 dp_21 work_mode
# attr TUYA_BULB2 dp_22 bright_value_v2
# attr TUYA_BULB2 dp_23 temp_value_v2
# attr TUYA_BULB2 dp_25 scene_data_v2
# attr TUYA_BULB2 dp_26 countdown_1
# attr TUYA_BULB2 dp_28 control_data
# attr TUYA_BULB2 group Lampe (T)
# attr TUYA_BULB2 room THOMAS,fhempy
# attr TUYA_BULB2 tuya_spec_functions [{'code': 'switch_led', 'dp_id': 20, 'type': 'Boolean', 'values': {}, 'desc': 'switch led'}, {'code': 'work_mode', 'dp_id': 21, 'type': 'Enum', 'values': {'range': ['white', 'colour', 'scene', 'music']}, 'desc': 'work mode'}, {'code': 'bright_value_v2', 'dp_id': 22, 'type': 'Integer', 'values': {'min': 10, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'desc': 'bright value v2'}, {'code': 'temp_value_v2', 'dp_id': 23, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'desc': 'temp value v2'}, {'code': 'scene_data_v2', 'dp_id': 25, 'type': 'Json', 'values': {'scene_num': {'min': 1, 'scale': 0, 'max': 8, 'step': 1}, 'scene_units': {'unit_change_mode': {'range': ['static', 'jump', 'gradient']}, 'unit_switch_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'unit_gradient_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'bright': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}, 'desc': 'scene data v2'}, {'code': 'countdown_1', 'dp_id': 26, 'type': 'Integer', 'values': {'unit': '', 'min': 0, 'max': 86400, 'scale': 0, 'step': 1}, 'desc': 'countdown 1'}, {'code': 'control_data', 'dp_id': 28, 'type': 'Json', 'values': {'change_mode': {'range': ['direct', 'gradient']}, 'bright': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}}, 'desc': 'control data'}]
# attr TUYA_BULB2 tuya_spec_status [{'code': 'switch_led', 'dp_id': 20, 'type': 'Boolean', 'values': {}}, {'code': 'work_mode', 'dp_id': 21, 'type': 'Enum', 'values': {'range': ['white', 'colour', 'scene', 'music']}}, {'code': 'bright_value_v2', 'dp_id': 22, 'type': 'Integer', 'values': {'min': 10, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}, {'code': 'temp_value_v2', 'dp_id': 23, 'type': 'Integer', 'values': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}, {'code': 'scene_data_v2', 'dp_id': 25, 'type': 'Json', 'values': {'scene_num': {'min': 1, 'scale': 0, 'max': 8, 'step': 1}, 'scene_units': {'unit_change_mode': {'range': ['static', 'jump', 'gradient']}, 'unit_switch_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'unit_gradient_duration': {'min': 0, 'scale': 0, 'max': 100, 'step': 1}, 'bright': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}}}}, {'code': 'countdown_1', 'dp_id': 26, 'type': 'Integer', 'values': {'unit': '', 'min': 0, 'max': 86400, 'scale': 0, 'step': 1}}, {'code': 'control_data', 'dp_id': 28, 'type': 'Json', 'values': {'change_mode': {'range': ['direct', 'gradient']}, 'bright': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'temperature': {'min': 0, 'scale': 0, 'unit': '', 'max': 1000, 'step': 1}, 'h': {'min': 0, 'scale': 0, 'unit': '', 'max': 360, 'step': 1}, 's': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}, 'v': {'min': 0, 'scale': 0, 'unit': '', 'max': 255, 'step': 1}}}]

# define TUYA_BULB3 fhempy tuya n5gs2jjpfnum55en bfefd42e199ea92ee3jbwh offline b86b46f24e0c5727 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
# setuuid TUYA_BULB3 63a35feb-f33f-fd5f-7ea4-bbb46444079004c0
# attr TUYA_BULB3 DbLogExclude .*
# attr TUYA_BULB3 alias BULB3 Stern
# attr TUYA_BULB3 group Lampe (T)
# attr TUYA_BULB3 room THOMAS,fhempy



Log:
2023-01-20 21:12:46,337 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-498' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 21:12:46,352 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-492' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 21:29:36,145 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-20 21:29:36,149 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 21:29:36,187 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 21:29:42,628 - INFO     - websockets.server: connection open
2023-01-20 21:29:42,628 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1

da ist wohl wieder Ruhe :-)

könnte es auch daran gelegen haben; dass eines davon Offline war?
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

Mach bitte einen Test, wo nur ein einziges Device drin ist welches nicht funktioniert und poste dann das fhempy Log dazu.

Version 3.3 ist auch sicher korrekt? Wird da so im "setup device" angezeigt?
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 20 Januar 2023, 21:31:43

Version 3.3 ist auch sicher korrekt? Wird da so im "setup device" angezeigt?
was meinst du damit genauer ?
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

In dem Device wo du start_scan machst, dort sind alle Devices gelistet inkl. der Version.
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 20 Januar 2023, 21:36:18
In dem Device wo du start_scan machst, dort sind alle Devices gelistet inkl. der Version.

ok da sind alle auf 3.3

bis auf 12x 3.1
und 2x 3.2 (das sind Cameras)

Diese Cameras führen zu keinem Fehler.

ich nehme nun mal das offline Gerät BULB3 wieder dazu

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

thburkhart

#26
ja das ist der Übeltäter:

2023-01-20 21:29:36,145 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-20 21:29:36,149 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 21:29:36,187 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 21:29:42,628 - INFO     - websockets.server: connection open
2023-01-20 21:29:42,628 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-20 21:30:31,499 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-451' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 21:30:31,833 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-427' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/scanner.py:344: RuntimeWarning: coroutine 'Device.status' was never awaited
  dpsdata = d.status()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1561: RuntimeWarning: coroutine 'Device.status' was never awaited
  return scanner.devices(verbose=verbose, maxretry=maxretry, color=color, poll=poll, forcescan=forcescan, byID=byID)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback


also das hier:
# define TUYA_BULB3 fhempy tuya n5gs2jjpfnum55en bfefd42e199ea92ee3jbwh offline b86b46f24e0c5727 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
# setuuid TUYA_BULB3 63a35feb-f33f-fd5f-7ea4-bbb46444079004c0
# attr TUYA_BULB3 DbLogExclude .*
# attr TUYA_BULB3 alias BULB3 Stern
# attr TUYA_BULB3 group Lampe (T)
# attr TUYA_BULB3 room THOMAS,fhempy

mit
bfefd42e199ea92ee3jbwh_icon
https://images.tuyaeu.com/smart/icon/ay1516247608878av7iZ/7579de4de911cd00bbb2bb83264d40aa.png
2022-12-18 10:16:59
bfefd42e199ea92ee3jbwh_id
bfefd42e199ea92ee3jbwh
2022-12-18 10:16:59
bfefd42e199ea92ee3jbwh_ip
offline
2022-12-18 10:17:13
bfefd42e199ea92ee3jbwh_localkey
b86b46f24e0c5727
2022-12-18 10:16:59
bfefd42e199ea92ee3jbwh_name
SmartBulb LW 2
2022-12-18 10:16:59
bfefd42e199ea92ee3jbwh_productid
n5gs2jjpfnum55en
2022-12-18 10:16:59
bfefd42e199ea92ee3jbwh_version
3.3


das wäre mir plausibel, dass devices, die noch keine IP haben zum Fehler führt, da nach ihnen ewig gesucht wird
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

Probier bitte statt "offline" eine IP im DEF einzugeben, die die das Device beim Starten auch bekommt.

In der Zwischenzeit habe ich noch ein paar kleine Fehler gefunden - mach daher bitte auch noch ein Update von fhempy vorher.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

yepp, nun nach BULB3 raus läuft alles wieder wie geschmiert :-)

könnte man denn allgemein in den tuya_local und auch tuya_web ein Attribut aktiv/inaktiv setzen?

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

ja...ich bau noch für fhempy ein generisches disable Attribute:
https://github.com/fhempy/fhempy/issues/118

Mach BULB3 bitte wieder rein und gib statt "offline" die IP Adresse rein.

//Edit und bitte vorher auf 0.1.566 aktualisieren.
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 20 Januar 2023, 22:02:42
Probier bitte statt "offline" eine IP im DEF einzugeben, die die das Device beim Starten auch bekommt.

In der Zwischenzeit habe ich noch ein paar kleine Fehler gefunden - mach daher bitte auch noch ein Update von fhempy vorher.

das sind 5 oder 6 devices die lange nicht mehr im WLAN waren und die auch momentan nicht finde, also deren IP nicht kenne; deshalb die "Idee" mit attr aktiv/inaktiv

sonst hilft nur, die betroffenen offline-devices im der fhem.cfg auszukommentieren

aktuell verwende ich eh nur die Temperatur-Devices, solange wir noch keine Lösung für Faktor 10 in voltage und kumulierten Verbrauch im Monatsraster haben. Letzteres könnte ein intelligentes UserReading lösen, das ich noch nicht habe.

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

Probier bitte mit Version 0.1.566 BULB3 wieder hinzuzufügen. Ich denke damit sollte es nun klappen - auch wenn offline steht.

Zuerst muss das Problem behoben werden, bevor wir dann dennoch disable nutzen.

Faktor 10 können wir danach prüfen, ein Thema nach dem anderen ;)
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

#32
mist .. ohne weitere Zutun meldet sich nach update und restart und shutdown restart um 22:12:

RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2023-01-20 21:57:57,723 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.563...
2023-01-20 21:57:57,727 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 21:57:57,771 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 21:58:04,469 - INFO     - websockets.server: connection open
2023-01-20 21:58:04,469 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-20 21:58:52,109 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-416' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>


Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 21:59:41,810 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-365' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 22:12:51,754 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2023-01-20 22:12:51,755 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2023-01-20 22:13:04,613 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2023-01-20 22:13:04,676 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2023-01-20 22:13:04,679 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2023-01-20 22:13:04,680 - INFO     - websockets.server: server closing
2023-01-20 22:13:14,686 - INFO     - websockets.server: connection closed
2023-01-20 22:13:14,687 - INFO     - websockets.server: server closed
2023-01-20 22:13:14,691 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2023-01-20 22:13:15,875 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.566...
2023-01-20 22:13:15,879 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 22:13:15,908 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 22:13:24,864 - INFO     - websockets.server: connection open
2023-01-20 22:13:24,864 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-20 22:14:22,644 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished name='Task-453' coro=<XenonDevice.detect_available_dps() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/core.py:1120> exception=TypeError("argument of type 'NoneType' is not iterable")>
Traceback (most recent call last):
  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 'NoneType' is not iterable
2023-01-20 22:15:33,784 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2023-01-20 22:15:33,786 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2023-01-20 22:15:33,786 - INFO     - websockets.server: server closing
2023-01-20 22:15:43,794 - INFO     - websockets.server: connection closed
2023-01-20 22:15:43,795 - INFO     - websockets.server: server closed
2023-01-20 22:15:43,799 - INFO     - fhempy.lib.fhem_pythonbinding: Exit 1
2023-01-20 22:15:44,989 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.566...
2023-01-20 22:15:44,992 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 22:15:45,021 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 22:16:08,878 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.566...
2023-01-20 22:16:08,882 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 22:16:08,919 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 22:16:15,267 - INFO     - websockets.server: connection open
2023-01-20 22:16:15,267 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2023-01-20 22:16:23,038 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-411' coro=<main() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py:238> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb37f4a48>()]>>
2023-01-20 22:16:23,039 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-419' coro=<main() done, defined at /opt/fhem/.local/lib/python3.9/site-packages/tinytuya/__init__.py:238> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb5305f58>()]>>


die Version 0.1.566  hat m.E. also verschlimmbessert ;-) BULB3 ist nicht aktiviert (auskommentiert)

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

Kannst du wieder nur mit einem Device starten und dann über das setup Device immer ein create_device machen? Dann kannst du dabei das Log verfolgen was da passiert.
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 20 Januar 2023, 22:23:51
Kannst du wieder nur mit einem Device starten und dann über das setup Device immer ein create_device machen? Dann kannst du dabei das Log verfolgen was da passiert.

ich habe nun nur noch die Temperatut-Devices drin und auch die Cameras rausgenommen, von denen 2 offline waren und von der Vorversion noch "akzeptiert" wurden
ales gut:
2023-01-20 22:31:41,584 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.566...
2023-01-20 22:31:41,588 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-20 22:31:41,627 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-20 22:31:48,024 - INFO     - websockets.server: connection open
2023-01-20 22:31:48,024 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1


durch ein offline-device wird also wohl nach wie vor der Fehler ausgelöst
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

Kommt der Fehler erst, wenn du "offline" gegen die IP tauscht, oder schon bei "offline"? Weil bei "offline" dürfte nix passieren.
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 20 Januar 2023, 23:00:11
Kommt der Fehler erst, wenn du "offline" gegen die IP tauscht, oder schon bei "offline"? Weil bei "offline" dürfte nix passieren.

schon bei "offline" ; es passiert dann das gepostete; nämlich, dass ein Fehler im Log auftaucht und das Gesamtsystem ausgebremst wird

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

Leg bitte nochmals so ein Device an und poste mir - wenn FHEM dann wieder reagiert - einen Screenshot vom Device.

Ich habe es gerade bei mir versucht nachzustellen und schaffe es nicht. Auch im Code steht schon ganz zu Beginn ein Check auf "offline" und dann sollte nix mehr weiter passieren:
https://github.com/fhempy/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/tuya/tuya.py#L75
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

#38
ok
ich aktiviere wieder ..

und diesmal ging es ohne Fehler :-)

[code]define TUYA_BULB3 fhempy tuya n5gs2jjpfnum55en bfefd42e199ea92ee3jbwh offline b86b46f24e0c5727 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
attr TUYA_BULB3 DbLogExclude .*
attr TUYA_BULB3 alias BULB3 Stern
attr TUYA_BULB3 group Lampe (T)
attr TUYA_BULB3 room THOMAS,fhempy
#   DEF        tuya n5gs2jjpfnum55en bfefd42e199ea92ee3jbwh offline b86b46f24e0c5727 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
#   FHEMPYTYPE tuya
#   FUUID      63a35feb-f33f-fd5f-7ea4-bbb46444079004c0
#   IODev      local_pybinding
#   NAME       TUYA_BULB3
#   NR         1903
#   PYTHONTYPE tuya
#   STATE      Change DEF and use IP instead of 'offline'
#   TYPE       fhempy
#   eventCount 4
#   READINGS:
#     2023-01-20 23:46:21   state           Change DEF and use IP instead of 'offline'
#   args:
#     TUYA_BULB3
#     fhempy
#     tuya
#     n5gs2jjpfnum55en
#     bfefd42e199ea92ee3jbwh
#     offline
#     b86b46f24e0c5727
#     3.3
#     ea8453wdazquzfl08l0e
#     8a4b27dd759d4c6a9456aa8155d2a0ea
#   argsh:
#
setstate TUYA_BULB3 Change DEF and use IP instead of 'offline'
setstate TUYA_BULB3 2023-01-20 23:46:21 state Change DEF and use IP instead of 'offline'

[/code]


das ist nun bei mir aktiv:

TUYAreadingsGroup
Device
TimeStamp
Produktname
ProduktID
State
online
CreateTime
cur_current
cur_power
cur_voltage
Countdown
Temperatur
Humidity
BULB3 Stern
2023-01-20 23:46:21
Change DEF and use IP instead of 'offline'
Mini Multi-Mode Gateway
2023-01-20 23:46:30
off
1
TUYA_Temp1 Temperatur THOMAS
2023-01-20 23:45:28
T & H Sensor
7akwzwfwhukkdsib
ready
1
1644673048
10
34.0
TUYA_Temp2 Temperatur Petra
2023-01-20 23:46:29
ready
1
10
47.0
TUYA_Temp3 Temperatur Wohnzimmer
2023-01-20 23:46:40
ready
1
10
34.0
TUYA_Temp4 Temperatur Terrasse
2023-01-20 23:46:40
ready
1
10
34.0
TUYA_Temp5 Temperatur Haustüre
2023-01-20 23:46:40
ready
1
10
34.0
tuya_system
2023-01-20 23:46:21
ready


[code][code]define tuya_system fhempy tuya setup ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea 10438000d8f15ba4ccd3
attr tuya_system group tuya
attr tuya_system room fhempy
attr tuya_system verbose 3

#   DEF        tuya setup xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#   DEVICEID   0
#   FHEMPYTYPE tuya
#   FUUID      639ed8a0-f33f-fd5f-bc8d-574b61340728759d
#   IODev      local_pybinding
#   NAME       tuya_system
#   NR         324
#   PYTHONTYPE tuya
#   REGION     eu
#   STATE      ready
#   TYPE       fhempy
#   eventCount 4
#   Helper:
#     DBLOG:
#       state:
#         dblog_THB:
#           TIME       1674254781.49067
#           VALUE      ready
#   READINGS:
#     2022-12-18 10:16:54   00673231e09806cb0add_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:54   00673231e09806cb0add_id 00673231e09806cb0add
#     2023-01-20 21:39:39   00673231e09806cb0add_ip 192.168.9.50
#     2022-12-18 10:16:54   00673231e09806cb0add_localkey 4af4edc4dd1f69ec
#     2022-12-18 10:16:54   00673231e09806cb0add_name SP08 Peugeot208
#     2022-12-18 10:16:54   00673231e09806cb0add_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   00673231e09806cb0add_version 3.3
#     2022-12-18 10:16:54   00673231e09806cb13b0_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:54   00673231e09806cb13b0_id 00673231e09806cb13b0
#     2023-01-20 21:39:38   00673231e09806cb13b0_ip 192.168.9.57
#     2022-12-18 10:16:54   00673231e09806cb13b0_localkey b5614e736a41adec
#     2022-12-21 14:58:36   00673231e09806cb13b0_name SP12 TH Sued1
#     2022-12-18 10:16:54   00673231e09806cb13b0_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   00673231e09806cb13b0_version 3.3
#     2022-12-18 10:16:55   00673231e09806cb188e_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:55   00673231e09806cb188e_id 00673231e09806cb188e
#     2023-01-20 21:39:40   00673231e09806cb188e_ip 192.168.9.86
#     2022-12-18 10:16:55   00673231e09806cb188e_localkey 8f3e601297671704
#     2022-12-18 10:16:55   00673231e09806cb188e_name SP15 PETRA Bett
#     2022-12-18 10:16:55   00673231e09806cb188e_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   00673231e09806cb188e_version 3.3
#     2022-12-18 10:16:56   00673231e09806cb6fa5_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:56   00673231e09806cb6fa5_id 00673231e09806cb6fa5
#     2023-01-20 21:39:39   00673231e09806cb6fa5_ip 192.168.9.96
#     2022-12-18 10:16:56   00673231e09806cb6fa5_localkey 34828e037a9ce2fd
#     2022-12-18 18:15:27   00673231e09806cb6fa5_name SP14 PETRA SOst
#     2022-12-18 10:16:56   00673231e09806cb6fa5_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:11   00673231e09806cb6fa5_version 3.3
#     2022-12-18 10:16:56   00673231e09806cbeaa2_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:56   00673231e09806cbeaa2_id 00673231e09806cbeaa2
#     2023-01-20 21:39:38   00673231e09806cbeaa2_ip 192.168.9.91
#     2022-12-18 10:16:56   00673231e09806cbeaa2_localkey a3417522ec6a8e3c
#     2022-12-21 14:58:36   00673231e09806cbeaa2_name SP16 TH West
#     2022-12-18 10:16:56   00673231e09806cbeaa2_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:11   00673231e09806cbeaa2_version 3.3
#     2022-12-18 10:16:59   00715387f4cfa2092c01_icon https://images.tuyaeu.com/smart/icon/ay1545812972898u8wAi/156396102696401859600.jpg
#     2022-12-18 10:16:59   00715387f4cfa2092c01_id 00715387f4cfa2092c01
#     2022-12-21 22:10:14   00715387f4cfa2092c01_ip offline
#     2022-12-18 10:16:59   00715387f4cfa2092c01_localkey 03c41b994a0ce655
#     2022-12-18 10:16:59   00715387f4cfa2092c01_name PETRA Nacht 1
#     2022-12-18 10:16:59   00715387f4cfa2092c01_productid h19lwmmcfp2tw5nl
#     2022-12-18 10:17:13   00715387f4cfa2092c01_version 3.3
#     2022-12-18 10:16:59   00715387f4cfa209ab1e_icon https://images.tuyaeu.com/smart/icon/ay1545812972898u8wAi/156396102696401859600.jpg
#     2022-12-18 10:16:59   00715387f4cfa209ab1e_id 00715387f4cfa209ab1e
#     2023-01-20 21:51:01   00715387f4cfa209ab1e_ip 192.168.9.61
#     2022-12-18 10:16:59   00715387f4cfa209ab1e_localkey 537e63946514289e
#     2022-12-18 10:16:59   00715387f4cfa209ab1e_name Globus
#     2022-12-18 10:16:59   00715387f4cfa209ab1e_productid h19lwmmcfp2tw5nl
#     2022-12-18 10:17:13   00715387f4cfa209ab1e_version 3.3
#     2022-12-18 10:17:01   0120018760019453b4b1_icon https://images.tuyaeu.com/smart/icon/1557225289t1u97cwpyd_0.jpg
#     2022-12-18 10:17:01   0120018760019453b4b1_id 0120018760019453b4b1
#     2022-12-18 10:17:14   0120018760019453b4b1_ip offline
#     2022-12-18 10:17:01   0120018760019453b4b1_localkey b3d70fb59b4b829b
#     2022-12-18 10:17:01   0120018760019453b4b1_name Schalter Doppel SW101E-2
#     2022-12-18 10:17:01   0120018760019453b4b1_productid At6C3S6JYzp4ez1T
#     2022-12-18 10:17:14   0120018760019453b4b1_version 3.3
#     2022-12-18 10:16:54   03132278a4cf12a5e7b0_icon https://images.tuyaeu.com/smart/icon/152956414744qw5qx565_0.jpg
#     2022-12-18 10:16:54   03132278a4cf12a5e7b0_id 03132278a4cf12a5e7b0
#     2023-01-20 21:39:39   03132278a4cf12a5e7b0_ip 192.168.9.22
#     2022-12-20 20:50:16   03132278a4cf12a5e7b0_localkey 6fef53d55695ded9
#     2022-12-20 20:50:16   03132278a4cf12a5e7b0_name Sternenschale
#     2022-12-18 10:16:54   03132278a4cf12a5e7b0_productid r15JnoGqWPM4PPtl
#     2022-12-18 10:17:10   03132278a4cf12a5e7b0_version 3.3
#     2022-12-18 10:16:58   03132278b4e62d74ab52_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/03132278b4e62d74ab52163417818099867.png
#     2022-12-18 10:16:58   03132278b4e62d74ab52_id 03132278b4e62d74ab52
#     2023-01-20 21:39:41   03132278b4e62d74ab52_ip 192.168.9.77
#     2022-12-18 10:16:58   03132278b4e62d74ab52_localkey 0b845fe9d56d2e03
#     2022-12-18 10:16:58   03132278b4e62d74ab52_name Leselampe 1
#     2022-12-18 10:16:58   03132278b4e62d74ab52_productid r15JnoGqWPM4PPtl
#     2022-12-18 10:17:12   03132278b4e62d74ab52_version 3.3
#     2022-12-18 10:16:58   03132278b4e62d74ab8f_icon https://images.tuyaeu.com/smart/icon/152956414744qw5qx565_0.jpg
#     2022-12-18 10:16:58   03132278b4e62d74ab8f_id 03132278b4e62d74ab8f
#     2023-01-20 21:39:37   03132278b4e62d74ab8f_ip 192.168.9.133
#     2023-01-13 19:36:43   03132278b4e62d74ab8f_localkey 426fa6f1bf7badc0
#     2023-01-13 14:28:39   03132278b4e62d74ab8f_name JL10Z
#     2022-12-18 10:16:58   03132278b4e62d74ab8f_productid r15JnoGqWPM4PPtl
#     2022-12-18 10:17:13   03132278b4e62d74ab8f_version 3.3
#     2022-12-18 10:16:59   03132278b4e62d74b293_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/03132278b4e62d74b293163417905557436.png
#     2022-12-18 10:16:59   03132278b4e62d74b293_id 03132278b4e62d74b293
#     2023-01-15 17:25:22   03132278b4e62d74b293_ip 192.168.9.48
#     2022-12-18 10:16:59   03132278b4e62d74b293_localkey 0a1f804404f7ac0c
#     2023-01-15 17:14:54   03132278b4e62d74b293_name JL11Z UV Pflanzenlampe
#     2022-12-18 10:16:59   03132278b4e62d74b293_productid r15JnoGqWPM4PPtl
#     2022-12-18 10:17:13   03132278b4e62d74b293_version 3.3
#     2022-12-18 10:16:57   04086463840d8e50124b_icon https://images.tuyaeu.com/smart/icon/1504185916_0.png
#     2022-12-18 10:16:57   04086463840d8e50124b_id 04086463840d8e50124b
#     2023-01-20 21:39:41   04086463840d8e50124b_ip 192.168.9.79
#     2022-12-18 10:16:57   04086463840d8e50124b_localkey 3c8b3f7c92b627e5
#     2022-12-18 10:16:57   04086463840d8e50124b_name PS3 Wohnen 1
#     2022-12-18 10:16:57   04086463840d8e50124b_productid D7Hl3AxFbHDS98iO
#     2023-01-20 21:39:41   04086463840d8e50124b_version 3.1
#     2022-12-18 10:16:54   045074212462ab24e988_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:54   045074212462ab24e988_id 045074212462ab24e988
#     2023-01-20 21:39:39   045074212462ab24e988_ip 192.168.9.34
#     2022-12-18 10:16:54   045074212462ab24e988_localkey 6e637c2cfed441d8
#     2022-12-18 18:15:27   045074212462ab24e988_name SP04 Spuelmaschine
#     2022-12-18 10:16:54   045074212462ab24e988_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   045074212462ab24e988_version 3.3
#     2022-12-18 10:16:55   045074212cf432ca0721_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:55   045074212cf432ca0721_id 045074212cf432ca0721
#     2023-01-20 21:39:39   045074212cf432ca0721_ip 192.168.9.32
#     2022-12-18 10:16:55   045074212cf432ca0721_localkey b43e3e9db35e85e8
#     2022-12-20 21:05:23   045074212cf432ca0721_name SP02 Kuehlschrank HWR
#     2022-12-18 10:16:55   045074212cf432ca0721_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:11   045074212cf432ca0721_version 3.3
#     2022-12-18 10:16:55   06515140cc50e3d62490_icon https://images.tuyaeu.com/smart/icon/1528364694thahb9sok2l_0.png
#     2022-12-18 10:16:55   06515140cc50e3d62490_id 06515140cc50e3d62490
#     2023-01-15 17:25:53   06515140cc50e3d62490_ip offline
#     2022-12-18 10:16:55   06515140cc50e3d62490_localkey 0aa2002f6c628d34
#     2022-12-18 10:16:55   06515140cc50e3d62490_name Sirene 3
#     2022-12-18 10:16:55   06515140cc50e3d62490_productid DYgId0sz6zWlmmYu
#     2023-01-15 17:25:54   06515140cc50e3d62490_version 3.3
#     2022-12-18 10:16:58   067327848cce4ec3fe13_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/067327848cce4ec3fe1316341794790321.png
#     2022-12-18 10:16:58   067327848cce4ec3fe13_id 067327848cce4ec3fe13
#     2023-01-20 21:39:41   067327848cce4ec3fe13_ip 192.168.9.24
#     2022-12-18 10:16:58   067327848cce4ec3fe13_localkey 2d968ccae1083e52
#     2022-12-18 10:16:58   067327848cce4ec3fe13_name Toilette
#     2022-12-18 10:16:58   067327848cce4ec3fe13_productid fcLzUB4zWk95xYdk
#     2022-12-18 10:17:12   067327848cce4ec3fe13_version 3.3
#     2022-12-18 10:16:55   074124042cf4326f08c2_icon https://images.tuyaeu.com/smart/product_icon2/kg_1.png
#     2022-12-18 10:16:55   074124042cf4326f08c2_id 074124042cf4326f08c2
#     2023-01-20 21:39:38   074124042cf4326f08c2_ip 192.168.9.21
#     2022-12-18 10:16:55   074124042cf4326f08c2_localkey 4d150c756e7224e0
#     2022-12-22 20:10:18   074124042cf4326f08c2_name Kueche oben
#     2022-12-18 10:16:55   074124042cf4326f08c2_productid mPRaDY6QmEFXOTYm
#     2022-12-18 10:17:10   074124042cf4326f08c2_version 3.3
#     2022-12-18 10:16:55   07412404cc50e3746c29_icon https://images.tuyaeu.com/smart/product_icon2/kg_1.png
#     2022-12-18 10:16:55   07412404cc50e3746c29_id 07412404cc50e3746c29
#     2023-01-20 21:39:40   07412404cc50e3746c29_ip 192.168.9.78
#     2022-12-18 10:16:55   07412404cc50e3746c29_localkey 802f4b27a1ebbdea
#     2022-12-18 10:16:55   07412404cc50e3746c29_name Bad 2
#     2022-12-18 10:16:55   07412404cc50e3746c29_productid mPRaDY6QmEFXOTYm
#     2022-12-18 10:17:11   07412404cc50e3746c29_version 3.3
#     2022-12-18 10:16:55   07847240bcddc29b03e9_icon https://images.tuyaeu.com/smart/icon/1534401999ezpgt19rc8l_0.png
#     2022-12-18 10:16:55   07847240bcddc29b03e9_id 07847240bcddc29b03e9
#     2023-01-15 17:25:52   07847240bcddc29b03e9_ip offline
#     2022-12-18 10:16:55   07847240bcddc29b03e9_localkey f98896e0ad1caba6
#     2022-12-18 10:16:55   07847240bcddc29b03e9_name Sirene 2 Temp
#     2022-12-18 10:16:55   07847240bcddc29b03e9_productid eISESdwVoVIV3axj
#     2022-12-18 10:17:10   07847240bcddc29b03e9_version 3.3
#     2022-12-18 10:16:55   07847240dc4f225fdda0_icon https://images.tuyaeu.com/smart/icon/1534401999ezpgt19rc8l_0.png
#     2022-12-18 10:16:55   07847240dc4f225fdda0_id 07847240dc4f225fdda0
#     2023-01-20 21:39:40   07847240dc4f225fdda0_ip offline
#     2022-12-18 10:16:55   07847240dc4f225fdda0_localkey adfdd8975615519e
#     2022-12-18 10:16:55   07847240dc4f225fdda0_name Sirene 1 Temp
#     2022-12-18 10:16:55   07847240dc4f225fdda0_productid eISESdwVoVIV3axj
#     2022-12-18 10:17:10   07847240dc4f225fdda0_version 3.3
#     2022-12-18 10:16:56   104380002462ab2f8ac0_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/104380002462ab2f8ac0163417849807563.png
#     2022-12-18 10:16:56   104380002462ab2f8ac0_id 104380002462ab2f8ac0
#     2023-01-20 21:39:40   104380002462ab2f8ac0_ip 192.168.9.49
#     2022-12-18 10:16:56   104380002462ab2f8ac0_localkey a6015a85cfa6f812
#     2022-12-18 10:16:56   104380002462ab2f8ac0_name Dunstabzug
#     2022-12-18 10:16:56   104380002462ab2f8ac0_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:11   104380002462ab2f8ac0_version 3.3
#     2022-12-18 10:16:55   104380002462ab301b83_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/104380002462ab301b83163417879515259.png
#     2022-12-18 10:16:55   104380002462ab301b83_id 104380002462ab301b83
#     2023-01-20 21:39:40   104380002462ab301b83_ip 192.168.9.76
#     2022-12-18 10:16:55   104380002462ab301b83_localkey 5bf8e554de9b7777
#     2022-12-18 10:16:55   104380002462ab301b83_name Router EAP225
#     2022-12-18 10:16:55   104380002462ab301b83_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:11   104380002462ab301b83_version 3.3
#     2022-12-18 10:17:01   104380002462ab30258d_icon https://images.tuyaeu.com/smart/icon/1541647698myzx2yx1yk_0.jpg
#     2022-12-18 10:17:01   104380002462ab30258d_id 104380002462ab30258d
#     2022-12-18 10:17:14   104380002462ab30258d_ip offline
#     2022-12-18 10:17:01   104380002462ab30258d_localkey 494dc6017b06a443
#     2022-12-18 10:17:01   104380002462ab30258d_name Heizdecke 3
#     2022-12-18 10:17:01   104380002462ab30258d_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:14   104380002462ab30258d_version 3.3
#     2022-12-18 10:16:58   10438000d8f15ba4ccd3_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/10438000d8f15ba4ccd3163417799266254.png
#     2022-12-18 10:16:58   10438000d8f15ba4ccd3_id 10438000d8f15ba4ccd3
#     2023-01-20 21:39:41   10438000d8f15ba4ccd3_ip 192.168.9.44
#     2022-12-18 10:16:58   10438000d8f15ba4ccd3_localkey 8ef2d52a326d2259
#     2022-12-18 10:16:58   10438000d8f15ba4ccd3_name Medien Schlafzimmer
#     2022-12-18 10:16:58   10438000d8f15ba4ccd3_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:12   10438000d8f15ba4ccd3_version 3.3
#     2022-12-18 10:17:00   12280017d8f15bdedda5_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:17:00   12280017d8f15bdedda5_id 12280017d8f15bdedda5
#     2023-01-20 21:39:41   12280017d8f15bdedda5_ip 192.168.9.109
#     2022-12-18 10:17:00   12280017d8f15bdedda5_localkey f5e3dac18c0aa670
#     2022-12-18 10:17:00   12280017d8f15bdedda5_name Gartengrill
#     2022-12-18 10:17:00   12280017d8f15bdedda5_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:14   12280017d8f15bdedda5_version 3.3
#     2022-12-18 10:16:56   17710212600194dba99d_icon https://images.tuyaeu.com/smart/program_category_icon/cz.png
#     2022-12-18 10:16:56   17710212600194dba99d_id 17710212600194dba99d
#     2023-01-20 21:39:38   17710212600194dba99d_ip 192.168.9.45
#     2022-12-18 10:16:56   17710212600194dba99d_localkey 9a0dadfb74c3a46f
#     2022-12-21 14:58:36   17710212600194dba99d_name Steckdose TH Tuere
#     2022-12-18 10:16:56   17710212600194dba99d_productid namu1lshm4jrx1td
#     2022-12-18 10:17:11   17710212600194dba99d_version 3.3
#     2022-12-18 10:16:58   17710212600194dbaba8_icon https://images.tuyaeu.com/smart/program_category_icon/cz.png
#     2022-12-18 10:16:58   17710212600194dbaba8_id 17710212600194dbaba8
#     2023-01-20 21:39:41   17710212600194dbaba8_ip 192.168.9.46
#     2022-12-18 10:16:58   17710212600194dbaba8_localkey e57c01322fc2deec
#     2022-12-18 10:16:58   17710212600194dbaba8_name Steckdose PETRA 1
#     2022-12-18 10:16:58   17710212600194dbaba8_productid namu1lshm4jrx1td
#     2022-12-18 10:17:12   17710212600194dbaba8_version 3.3
#     2022-12-18 10:16:59   180025363c6105dcdcaf_icon https://images.tuyaeu.com/smart/icon/1544066741n1omnq1w67_0.jpg
#     2022-12-18 10:16:59   180025363c6105dcdcaf_id 180025363c6105dcdcaf
#     2022-12-18 10:17:13   180025363c6105dcdcaf_ip offline
#     2022-12-18 10:16:59   180025363c6105dcdcaf_localkey cc76fb631ac08b09
#     2023-01-15 17:14:54   180025363c6105dcdcaf_name Wassersensor 4 Terrasse
#     2022-12-18 10:16:59   180025363c6105dcdcaf_productid KoAUR5fdtDso34VM
#     2022-12-18 10:17:13   180025363c6105dcdcaf_version 3.3
#     2022-12-18 10:16:55   2053863070039f16cebe_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/d6d1396a4acbafed7c7542c7bddc2fff.png
#     2022-12-18 10:16:55   2053863070039f16cebe_id 2053863070039f16cebe
#     2023-01-20 21:39:40   2053863070039f16cebe_ip 192.168.9.85
#     2022-12-18 10:16:55   2053863070039f16cebe_localkey 3abc6eb9eff1cf8e
#     2022-12-18 10:16:55   2053863070039f16cebe_name Leselampe 2
#     2022-12-18 10:16:55   2053863070039f16cebe_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:11   2053863070039f16cebe_version 3.3
#     2022-12-18 10:16:59   2053863070039f16cef8_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/d6d1396a4acbafed7c7542c7bddc2fff.png
#     2022-12-18 10:16:59   2053863070039f16cef8_id 2053863070039f16cef8
#     2023-01-20 21:39:37   2053863070039f16cef8_ip 192.168.9.43
#     2022-12-18 10:16:59   2053863070039f16cef8_localkey eaa0119565b42c6c
#     2023-01-03 00:12:05   2053863070039f16cef8_name JL32 Soundbar Wohnzimmer
#     2022-12-18 10:16:59   2053863070039f16cef8_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:13   2053863070039f16cef8_version 3.3
#     2022-12-18 10:16:57   2053863070039f179683_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/d6d1396a4acbafed7c7542c7bddc2fff.png
#     2022-12-18 10:16:57   2053863070039f179683_id 2053863070039f179683
#     2023-01-20 21:39:37   2053863070039f179683_ip 192.168.9.59
#     2022-12-18 10:16:57   2053863070039f179683_localkey 8c15546d598a51f9
#     2023-01-04 00:36:42   2053863070039f179683_name JL31
#     2022-12-18 10:16:57   2053863070039f179683_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:12   2053863070039f179683_version 3.3
#     2022-12-18 10:16:58   20538630c44f33f7b2b6_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/d6d1396a4acbafed7c7542c7bddc2fff.png
#     2022-12-18 10:16:58   20538630c44f33f7b2b6_id 20538630c44f33f7b2b6
#     2022-12-21 22:10:14   20538630c44f33f7b2b6_ip offline
#     2022-12-18 10:16:58   20538630c44f33f7b2b6_localkey b2b021b05d25903e
#     2022-12-18 10:16:58   20538630c44f33f7b2b6_name Kaffeemaschine Thomas
#     2022-12-18 10:16:58   20538630c44f33f7b2b6_productid 37mnhia3pojleqfh
#     2022-12-18 10:17:13   20538630c44f33f7b2b6_version 3.3
#     2022-12-18 10:17:01   21410806cc50e37bdb15_icon https://images.tuyaeu.com/smart/icon/dj.png
#     2022-12-18 10:17:01   21410806cc50e37bdb15_id 21410806cc50e37bdb15
#     2022-12-18 10:17:14   21410806cc50e37bdb15_ip offline
#     2022-12-18 10:17:01   21410806cc50e37bdb15_localkey b2caca9dc178ec87
#     2022-12-18 10:17:01   21410806cc50e37bdb15_name Dimmer 2
#     2022-12-18 10:17:01   21410806cc50e37bdb15_productid bSXSSFArVKtc4DyC
#     2022-12-18 10:17:14   21410806cc50e37bdb15_version 3.3
#     2022-12-18 10:16:54   22230808807d3a231039_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/22230808807d3a231039163415814096745.png
#     2022-12-18 10:16:54   22230808807d3a231039_id 22230808807d3a231039
#     2023-01-20 21:39:39   22230808807d3a231039_ip 192.168.9.68
#     2022-12-18 10:16:54   22230808807d3a231039_localkey fbcb762730c39536
#     2022-12-18 10:16:54   22230808807d3a231039_name NAS Schreibtisch
#     2022-12-18 10:16:54   22230808807d3a231039_productid 1hxNMF9lRQL2xpEA
#     2023-01-20 21:39:39   22230808807d3a231039_version 3.1
#     2022-12-18 10:16:56   22230808807d3a23186b_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/22230808807d3a23186b163415762424492.png
#     2022-12-18 10:16:56   22230808807d3a23186b_id 22230808807d3a23186b
#     2023-01-20 21:39:40   22230808807d3a23186b_ip 192.168.9.87
#     2022-12-18 10:16:56   22230808807d3a23186b_localkey a2693a5844ce166d
#     2022-12-18 10:16:56   22230808807d3a23186b_name JL04 BKT3
#     2022-12-18 10:16:56   22230808807d3a23186b_productid 1hxNMF9lRQL2xpEA
#     2023-01-20 21:39:40   22230808807d3a23186b_version 3.1
#     2022-12-18 10:16:56   2223080884f3eb466414_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/2223080884f3eb466414163417857767272.png
#     2022-12-18 10:16:56   2223080884f3eb466414_id 2223080884f3eb466414
#     2022-12-21 22:10:12   2223080884f3eb466414_ip offline
#     2022-12-18 10:16:56   2223080884f3eb466414_localkey 824ea2c9d41a3ec1
#     2022-12-21 14:58:36   2223080884f3eb466414_name Kaffeemaschine XELSIS
#     2022-12-18 10:16:56   2223080884f3eb466414_productid 1hxNMF9lRQL2xpEA
#     2022-12-21 22:10:12   2223080884f3eb466414_version 3.3
#     2022-12-18 10:16:59   22230808bcddc2135068_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/22230808bcddc2135068163417805835187.png
#     2022-12-18 10:16:59   22230808bcddc2135068_id 22230808bcddc2135068
#     2023-01-20 21:39:41   22230808bcddc2135068_ip 192.168.9.71
#     2022-12-18 10:16:59   22230808bcddc2135068_localkey c0aa3a00c215aa39
#     2022-12-18 10:16:59   22230808bcddc2135068_name Fernseher Wohnzimmer
#     2022-12-18 10:16:59   22230808bcddc2135068_productid 1hxNMF9lRQL2xpEA
#     2023-01-20 21:39:41   22230808bcddc2135068_version 3.1
#     2022-12-18 10:16:58   22230808bcddc2135132_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/22230808bcddc2135132163415768180381.png
#     2022-12-18 10:16:58   22230808bcddc2135132_id 22230808bcddc2135132
#     2023-01-13 14:29:06   22230808bcddc2135132_ip 192.168.9.99
#     2022-12-18 10:16:58   22230808bcddc2135132_localkey b7b7f3b3a75bce96
#     2022-12-18 10:16:58   22230808bcddc2135132_name Schreibtisch Petra
#     2022-12-18 10:16:58   22230808bcddc2135132_productid 1hxNMF9lRQL2xpEA
#     2023-01-13 14:29:06   22230808bcddc2135132_version 3.1
#     2022-12-18 10:16:54   22230808bcddc2135137_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/22230808bcddc2135137163415758338185.png
#     2022-12-18 10:16:54   22230808bcddc2135137_id 22230808bcddc2135137
#     2023-01-20 21:39:39   22230808bcddc2135137_ip 192.168.9.84
#     2022-12-18 10:16:54   22230808bcddc2135137_localkey 5b9b6cd11ad3eab4
#     2022-12-18 10:16:54   22230808bcddc2135137_name JL07 BKT2
#     2022-12-18 10:16:54   22230808bcddc2135137_productid 1hxNMF9lRQL2xpEA
#     2023-01-20 21:39:39   22230808bcddc2135137_version 3.1
#     2022-12-18 10:16:54   22230808bcddc213f838_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/22230808bcddc213f83816341577256478.png
#     2022-12-18 10:16:54   22230808bcddc213f838_id 22230808bcddc213f838
#     2023-01-20 21:39:39   22230808bcddc213f838_ip 192.168.9.66
#     2022-12-18 10:16:54   22230808bcddc213f838_localkey f4a3b7649a5e4fd8
#     2022-12-18 10:16:54   22230808bcddc213f838_name JL06 frei
#     2022-12-18 10:16:54   22230808bcddc213f838_productid 1hxNMF9lRQL2xpEA
#     2023-01-20 21:39:39   22230808bcddc213f838_version 3.1
#     2022-12-18 10:16:55   260064612462ab24f164_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:55   260064612462ab24f164_id 260064612462ab24f164
#     2023-01-20 21:39:39   260064612462ab24f164_ip 192.168.9.33
#     2022-12-18 10:16:55   260064612462ab24f164_localkey b37a96597e2837b4
#     2022-12-18 18:15:27   260064612462ab24f164_name SP03 Kuehlschrank Kueche
#     2022-12-18 10:16:55   260064612462ab24f164_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   260064612462ab24f164_version 3.3
#     2022-12-18 10:16:55   260064612cf432ca55d8_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:55   260064612cf432ca55d8_id 260064612cf432ca55d8
#     2023-01-20 21:39:39   260064612cf432ca55d8_ip 192.168.9.31
#     2022-12-18 10:16:55   260064612cf432ca55d8_localkey 52a00c366067a6f7
#     2022-12-18 18:07:42   260064612cf432ca55d8_name SP01 Waschmaschine
#     2022-12-18 10:16:55   260064612cf432ca55d8_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   260064612cf432ca55d8_version 3.3
#     2022-12-18 10:16:56   30180616dc4f22fc97ae_icon https://images.tuyaeu.com/smart/icon/1553220447w51qc6eyig_0.jpg
#     2022-12-18 10:16:56   30180616dc4f22fc97ae_id 30180616dc4f22fc97ae
#     2023-01-20 21:39:40   30180616dc4f22fc97ae_ip 192.168.9.28
#     2022-12-18 10:16:56   30180616dc4f22fc97ae_localkey 146b39d4a5992d2f
#     2022-12-18 10:16:56   30180616dc4f22fc97ae_name Kleiderschrank 1
#     2022-12-18 10:16:56   30180616dc4f22fc97ae_productid ON0fHlAaAf7Pt7ja
#     2023-01-20 21:39:40   30180616dc4f22fc97ae_version 3.1
#     2022-12-18 10:16:54   30180616dc4f22fc986a_icon https://images.tuyaeu.com/smart/icon/1553220447w51qc6eyig_0.jpg
#     2022-12-18 10:16:54   30180616dc4f22fc986a_id 30180616dc4f22fc986a
#     2023-01-20 21:39:39   30180616dc4f22fc986a_ip 192.168.9.42
#     2022-12-18 10:16:54   30180616dc4f22fc986a_localkey fe51534f379b27c0
#     2022-12-18 10:16:54   30180616dc4f22fc986a_name Springbrunnen
#     2022-12-18 10:16:54   30180616dc4f22fc986a_productid ON0fHlAaAf7Pt7ja
#     2023-01-20 21:39:39   30180616dc4f22fc986a_version 3.1
#     2022-12-18 10:16:57   30180616dc4f22fc9a71_icon https://images.tuyaeu.com/smart/icon/1553220447w51qc6eyig_0.jpg
#     2022-12-18 10:16:57   30180616dc4f22fc9a71_id 30180616dc4f22fc9a71
#     2023-01-20 21:39:38   30180616dc4f22fc9a71_ip 192.168.9.41
#     2022-12-18 10:16:57   30180616dc4f22fc9a71_localkey 3fd05440412ec1f5
#     2022-12-21 23:15:49   30180616dc4f22fc9a71_name Kueche Herd
#     2022-12-18 10:16:57   30180616dc4f22fc9a71_productid ON0fHlAaAf7Pt7ja
#     2023-01-20 21:39:38   30180616dc4f22fc9a71_version 3.1
#     2022-12-18 10:16:57   30510063d8bfc00b396b_icon https://images.tuyaeu.com/smart/icon/ay1530852819489IlyEr/2095506b84aecb16a843c2d04b4ccd61.png
#     2022-12-18 10:16:57   30510063d8bfc00b396b_id 30510063d8bfc00b396b
#     2023-01-20 21:39:40   30510063d8bfc00b396b_ip 192.168.9.40
#     2022-12-18 10:16:57   30510063d8bfc00b396b_localkey d559d18f36e9d325
#     2022-12-18 10:16:57   30510063d8bfc00b396b_name Schlafzimmer oben
#     2022-12-18 10:16:57   30510063d8bfc00b396b_productid 6agmomauevaw5zav
#     2022-12-18 10:17:12   30510063d8bfc00b396b_version 3.3
#     2022-12-18 10:16:57   3367036770039f60c576_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/3367036770039f60c576163417966053451.png
#     2022-12-18 10:16:57   3367036770039f60c576_id 3367036770039f60c576
#     2023-01-20 21:39:37   3367036770039f60c576_ip 192.168.9.27
#     2022-12-18 10:16:57   3367036770039f60c576_localkey 628b38730b4c06e3
#     2023-01-03 00:12:05   3367036770039f60c576_name JL28 Steckdose Garage 1
#     2022-12-18 10:16:57   3367036770039f60c576_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   3367036770039f60c576_version 3.3
#     2022-12-18 10:16:57   3367036770039f60ce2b_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/6148b7b09db869f44d97d64efd75781d.jpg
#     2022-12-18 10:16:57   3367036770039f60ce2b_id 3367036770039f60ce2b
#     2023-01-20 21:39:38   3367036770039f60ce2b_ip 192.168.9.62
#     2022-12-18 10:16:57   3367036770039f60ce2b_localkey 7322892db7dfa5bd
#     2023-01-02 21:04:08   3367036770039f60ce2b_name USB Lader2 Thomas
#     2022-12-18 10:16:57   3367036770039f60ce2b_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   3367036770039f60ce2b_version 3.3
#     2022-12-18 10:16:57   3367036770039f613620_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/6148b7b09db869f44d97d64efd75781d.jpg
#     2022-12-18 10:16:57   3367036770039f613620_id 3367036770039f613620
#     2023-01-20 21:39:38   3367036770039f613620_ip 192.168.9.81
#     2022-12-18 10:16:57   3367036770039f613620_localkey 9ef95a16eea43688
#     2023-01-02 21:04:08   3367036770039f613620_name USB Lader3 Thomas
#     2022-12-18 10:16:57   3367036770039f613620_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   3367036770039f613620_version 3.3
#     2022-12-18 10:16:57   33670367c4dd573813d8_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/6148b7b09db869f44d97d64efd75781d.jpg
#     2022-12-18 10:16:57   33670367c4dd573813d8_id 33670367c4dd573813d8
#     2023-01-20 21:39:38   33670367c4dd573813d8_ip 192.168.9.38
#     2022-12-18 10:16:57   33670367c4dd573813d8_localkey 89b8de9eed9ef579
#     2023-01-02 21:04:08   33670367c4dd573813d8_name USB Lader4 Thomas
#     2022-12-18 10:16:57   33670367c4dd573813d8_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   33670367c4dd573813d8_version 3.3
#     2022-12-18 10:16:59   34602852ecfabc47cbe1_icon https://images.tuyaeu.com/smart/product_icon/qt.png
#     2022-12-18 10:16:59   34602852ecfabc47cbe1_id 34602852ecfabc47cbe1
#     2022-12-18 10:17:13   34602852ecfabc47cbe1_ip offline
#     2022-12-18 10:16:59   34602852ecfabc47cbe1_localkey d06e40ee498060c8
#     2022-12-18 10:16:59   34602852ecfabc47cbe1_name Rolltor
#     2022-12-18 10:16:59   34602852ecfabc47cbe1_productid 7by9ERqg60JA8wxA
#     2022-12-18 10:17:13   34602852ecfabc47cbe1_version 3.3
#     2022-12-18 10:16:54   41888155dc4f229d95af_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:54   41888155dc4f229d95af_id 41888155dc4f229d95af
#     2023-01-20 21:39:37   41888155dc4f229d95af_ip 192.168.9.36
#     2022-12-18 10:16:54   41888155dc4f229d95af_localkey b54391dbd2d9f161
#     2023-01-04 00:36:42   41888155dc4f229d95af_name Medien Wohnzimmer
#     2022-12-18 10:16:54   41888155dc4f229d95af_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   41888155dc4f229d95af_version 3.3
#     2022-12-18 10:16:56   44277377840d8e5e47c8_icon https://images.tuyaeu.com/smart/icon/1504185916_0.png
#     2022-12-18 10:16:56   44277377840d8e5e47c8_id 44277377840d8e5e47c8
#     2023-01-03 11:43:50   44277377840d8e5e47c8_ip offline
#     2022-12-18 10:16:56   44277377840d8e5e47c8_localkey 5cdad42a6c79ca1f
#     2022-12-18 10:16:56   44277377840d8e5e47c8_name PS5 Garage
#     2022-12-18 10:16:56   44277377840d8e5e47c8_productid D7Hl3AxFbHDS98iO
#     2023-01-03 11:43:50   44277377840d8e5e47c8_version 3.3
#     2022-12-18 10:16:59   453005615002911dfe06_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/453005615002911dfe06163417957708355.png
#     2022-12-18 10:16:59   453005615002911dfe06_id 453005615002911dfe06
#     2023-01-20 21:39:41   453005615002911dfe06_ip 192.168.9.54
#     2022-12-18 10:16:59   453005615002911dfe06_localkey db41567569a265b4
#     2022-12-18 10:16:59   453005615002911dfe06_name Heizkissen 2
#     2022-12-18 10:16:59   453005615002911dfe06_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:13   453005615002911dfe06_version 3.3
#     2022-12-18 10:16:55   453005615002911e00b4_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/6148b7b09db869f44d97d64efd75781d.jpg
#     2022-12-18 10:16:55   453005615002911e00b4_id 453005615002911e00b4
#     2023-01-20 21:51:00   453005615002911e00b4_ip 192.168.9.73
#     2022-12-18 10:16:55   453005615002911e00b4_localkey 82a5beef86e160cd
#     2023-01-02 21:04:08   453005615002911e00b4_name USB Lader1 Bett
#     2022-12-18 10:16:55   453005615002911e00b4_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:11   453005615002911e00b4_version 3.3
#     2022-12-18 10:16:59   4530056170039f4a808b_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/4530056170039f4a808b163417934465521.png
#     2022-12-18 10:16:59   4530056170039f4a808b_id 4530056170039f4a808b
#     2023-01-20 21:39:38   4530056170039f4a808b_ip 192.168.9.64
#     2022-12-18 10:16:59   4530056170039f4a808b_localkey 35a617145fa97b06
#     2022-12-26 23:37:35   4530056170039f4a808b_name JL21 Schnellkocher
#     2022-12-18 10:16:59   4530056170039f4a808b_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:13   4530056170039f4a808b_version 3.3
#     2022-12-18 10:16:59   4530056170039f4a87e5_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/6148b7b09db869f44d97d64efd75781d.jpg
#     2022-12-18 10:16:59   4530056170039f4a87e5_id 4530056170039f4a87e5
#     2022-12-18 10:17:13   4530056170039f4a87e5_ip offline
#     2022-12-18 10:16:59   4530056170039f4a87e5_localkey 2204c23a9c30d10b
#     2022-12-18 10:16:59   4530056170039f4a87e5_name Heizdecke 1
#     2022-12-18 10:16:59   4530056170039f4a87e5_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:13   4530056170039f4a87e5_version 3.3
#     2022-12-18 10:16:57   47104178dc4f2236e437_icon https://images.tuyaeu.com/smart/icon/1526403552c7uw51lvs7lmwf8ljr2qllq5mi_0.png
#     2022-12-18 10:16:57   47104178dc4f2236e437_id 47104178dc4f2236e437
#     2023-01-13 14:29:05   47104178dc4f2236e437_ip 192.168.9.51
#     2022-12-18 10:16:57   47104178dc4f2236e437_localkey bc16d1d29f2b2c9e
#     2022-12-18 10:16:57   47104178dc4f2236e437_name Garagentor
#     2022-12-18 10:16:57   47104178dc4f2236e437_productid ld4GRDxQZZ2NAnk6
#     2023-01-13 14:29:05   47104178dc4f2236e437_version 3.1
#     2022-12-18 10:16:55   50134218c4dd571b3390_icon https://images.tuyaeu.com/smart/icon/1555585425a1oqvs7elur_0.jpg
#     2022-12-18 10:16:55   50134218c4dd571b3390_id 50134218c4dd571b3390
#     2022-12-18 10:17:10   50134218c4dd571b3390_ip offline
#     2022-12-18 10:16:55   50134218c4dd571b3390_localkey fce75597b4421601
#     2022-12-18 10:16:55   50134218c4dd571b3390_name PS7 zbV
#     2022-12-18 10:16:55   50134218c4dd571b3390_productid gl5fdiv1tc9mkvlp
#     2022-12-18 10:17:10   50134218c4dd571b3390_version 3.3
#     2022-12-18 10:16:59   5062137624a1600b6d62_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/6148b7b09db869f44d97d64efd75781d.jpg
#     2022-12-18 10:16:59   5062137624a1600b6d62_id 5062137624a1600b6d62
#     2022-12-18 10:17:13   5062137624a1600b6d62_ip offline
#     2022-12-18 10:16:59   5062137624a1600b6d62_localkey d029f7f52f9fbec5
#     2022-12-18 10:16:59   5062137624a1600b6d62_name Heizdecke 2
#     2022-12-18 10:16:59   5062137624a1600b6d62_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:13   5062137624a1600b6d62_version 3.3
#     2022-12-18 10:16:57   5062137624a1600b9479_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/5062137624a1600b9479163417873444451.png
#     2022-12-18 10:16:57   5062137624a1600b9479_id 5062137624a1600b9479
#     2023-01-20 21:39:40   5062137624a1600b9479_ip 192.168.9.26
#     2022-12-18 10:16:57   5062137624a1600b9479_localkey 6e11e14987828d1c
#     2022-12-18 10:16:57   5062137624a1600b9479_name Duravit Bidet
#     2022-12-18 10:16:57   5062137624a1600b9479_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   5062137624a1600b9479_version 3.3
#     2022-12-18 10:16:59   50621376c4dd57125717_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/50621376c4dd5712571716341794176501.png
#     2022-12-18 10:16:59   50621376c4dd57125717_id 50621376c4dd57125717
#     2023-01-03 16:51:31   50621376c4dd57125717_ip offline
#     2022-12-18 10:16:59   50621376c4dd57125717_localkey e61c8eb5d24cf300
#     2023-01-03 11:43:32   50621376c4dd57125717_name JL22
#     2022-12-18 10:16:59   50621376c4dd57125717_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:13   50621376c4dd57125717_version 3.3
#     2022-12-18 10:16:59   50621376c4dd57131135_icon https://images.tuyaeu.com/smart/device_icon/eu1548823829280mLHX1/50621376c4dd57131135163417952893779.png
#     2022-12-18 10:16:59   50621376c4dd57131135_id 50621376c4dd57131135
#     2023-01-20 21:39:41   50621376c4dd57131135_ip 192.168.9.92
#     2022-12-18 10:16:59   50621376c4dd57131135_localkey f215d22a78c5f9ba
#     2022-12-18 10:16:59   50621376c4dd57131135_name Heizkissen 1
#     2022-12-18 10:16:59   50621376c4dd57131135_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:13   50621376c4dd57131135_version 3.3
#     2022-12-18 10:17:01   50880180840d8e87664b_icon https://images.tuyaeu.com/smart/icon/1528364839bqwi2byfbhv_0.png
#     2022-12-18 10:17:01   50880180840d8e87664b_id 50880180840d8e87664b
#     2022-12-18 10:17:14   50880180840d8e87664b_ip offline
#     2022-12-18 10:17:01   50880180840d8e87664b_localkey fec41c3edc0c787d
#     2022-12-18 10:17:01   50880180840d8e87664b_name Wassersensor 2 Heizraum
#     2022-12-18 10:17:01   50880180840d8e87664b_productid SmFKLTOcGHbPQvmh
#     2022-12-18 10:17:14   50880180840d8e87664b_version 3.3
#     2022-12-18 10:17:01   50880180cc50e30c4c90_icon https://images.tuyaeu.com/smart/icon/1528364839bqwi2byfbhv_0.png
#     2022-12-18 10:17:01   50880180cc50e30c4c90_id 50880180cc50e30c4c90
#     2022-12-18 10:17:14   50880180cc50e30c4c90_ip offline
#     2022-12-18 10:17:01   50880180cc50e30c4c90_localkey 9b7df3fc66763e8b
#     2022-12-18 10:17:01   50880180cc50e30c4c90_name Wassersensor 3 Waschmaschine
#     2022-12-18 10:17:01   50880180cc50e30c4c90_productid SmFKLTOcGHbPQvmh
#     2022-12-18 10:17:14   50880180cc50e30c4c90_version 3.3
#     2022-12-18 10:17:00   50880180cc50e30cbe91_icon https://images.tuyaeu.com/smart/icon/1528364839bqwi2byfbhv_0.png
#     2022-12-18 10:17:00   50880180cc50e30cbe91_id 50880180cc50e30cbe91
#     2022-12-18 10:17:14   50880180cc50e30cbe91_ip offline
#     2022-12-18 10:17:00   50880180cc50e30cbe91_localkey 7db73073d587d531
#     2022-12-21 14:58:36   50880180cc50e30cbe91_name Wassersensor 1 Kueche
#     2022-12-18 10:17:00   50880180cc50e30cbe91_productid SmFKLTOcGHbPQvmh
#     2022-12-18 10:17:14   50880180cc50e30cbe91_version 3.3
#     2022-12-18 10:16:56   52470320e09806c9a53f_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:56   52470320e09806c9a53f_id 52470320e09806c9a53f
#     2023-01-20 21:39:38   52470320e09806c9a53f_ip 192.168.9.70
#     2022-12-18 10:16:56   52470320e09806c9a53f_localkey b3ec7f7a682799d4
#     2022-12-21 14:58:36   52470320e09806c9a53f_name SP13 TH Sued2 Schreibtisch
#     2022-12-18 10:16:56   52470320e09806c9a53f_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:11   52470320e09806c9a53f_version 3.3
#     2022-12-18 10:16:54   60020372840d8e6f937a_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:54   60020372840d8e6f937a_id 60020372840d8e6f937a
#     2023-01-20 21:39:40   60020372840d8e6f937a_ip 192.168.9.47
#     2022-12-18 10:16:54   60020372840d8e6f937a_localkey 026c4f068bfdc97f
#     2022-12-18 10:16:54   60020372840d8e6f937a_name SP05 EX17
#     2022-12-18 10:16:54   60020372840d8e6f937a_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   60020372840d8e6f937a_version 3.3
#     2022-12-18 10:16:59   60381718500291bade80_icon https://images.tuyaeu.com/smart/icon/1528364671b3tgndtkqr_0.png
#     2022-12-18 10:16:59   60381718500291bade80_id 60381718500291bade80
#     2022-12-18 10:17:13   60381718500291bade80_ip offline
#     2022-12-18 10:16:59   60381718500291bade80_localkey 8c17a8415057e4a7
#     2022-12-20 23:53:07   60381718500291bade80_name Haustuere
#     2022-12-18 10:16:59   60381718500291bade80_productid 6l4vhjl3gttstgxj
#     2022-12-18 10:17:13   60381718500291bade80_version 3.3
#     2022-12-18 10:16:54   60381718807d3a01eb63_icon https://images.tuyaeu.com/smart/icon/1528364671b3tgndtkqr_0.png
#     2022-12-18 10:16:54   60381718807d3a01eb63_id 60381718807d3a01eb63
#     2022-12-18 10:17:09   60381718807d3a01eb63_ip offline
#     2022-12-18 10:16:54   60381718807d3a01eb63_localkey 60d7c07cc350d317
#     2022-12-20 23:53:07   60381718807d3a01eb63_name TuerSensor 3
#     2022-12-18 10:16:54   60381718807d3a01eb63_productid 6l4vhjl3gttstgxj
#     2022-12-18 10:17:09   60381718807d3a01eb63_version 3.3
#     2022-12-18 10:17:00   60381718807d3a04bbb4_icon https://images.tuyaeu.com/smart/icon/1528364671b3tgndtkqr_0.png
#     2022-12-18 10:17:00   60381718807d3a04bbb4_id 60381718807d3a04bbb4
#     2022-12-18 10:17:14   60381718807d3a04bbb4_ip offline
#     2022-12-18 10:17:00   60381718807d3a04bbb4_localkey 0b6ade2172baef93
#     2022-12-20 23:53:07   60381718807d3a04bbb4_name TuerSensor 2
#     2022-12-18 10:17:00   60381718807d3a04bbb4_productid 6l4vhjl3gttstgxj
#     2022-12-18 10:17:14   60381718807d3a04bbb4_version 3.3
#     2022-12-18 10:16:55   620661512462ab30ddbd_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:55   620661512462ab30ddbd_id 620661512462ab30ddbd
#     2023-01-20 21:39:40   620661512462ab30ddbd_ip 192.168.9.35
#     2022-12-18 10:16:55   620661512462ab30ddbd_localkey 9faac636188ff4ef
#     2022-12-18 10:16:55   620661512462ab30ddbd_name Medien Petra
#     2022-12-18 10:16:55   620661512462ab30ddbd_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:11   620661512462ab30ddbd_version 3.3
#     2022-12-18 10:16:56   62066151d8f15bb08810_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:56   62066151d8f15bb08810_id 62066151d8f15bb08810
#     2023-01-20 21:39:38   62066151d8f15bb08810_ip 192.168.9.72
#     2022-12-18 10:16:56   62066151d8f15bb08810_localkey 0f67904fe7677fb8
#     2022-12-21 14:58:36   62066151d8f15bb08810_name SP11 TH Ost
#     2022-12-18 10:16:56   62066151d8f15bb08810_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:11   62066151d8f15bb08810_version 3.3
#     2022-12-18 10:16:54   62066151d8f15bdec539_icon https://images.tuyaeu.com/smart/icon/1536752669ijospdb3eoq_0.png
#     2022-12-18 10:16:54   62066151d8f15bdec539_id 62066151d8f15bdec539
#     2023-01-20 21:39:39   62066151d8f15bdec539_ip 192.168.9.29
#     2022-12-18 10:16:54   62066151d8f15bdec539_localkey 6bd97fc327e7f057
#     2022-12-18 10:16:54   62066151d8f15bdec539_name SP07 Garagenkeller
#     2022-12-18 10:16:54   62066151d8f15bdec539_productid IGzCi97RpN2Lf9cu
#     2022-12-18 10:17:10   62066151d8f15bdec539_version 3.3
#     2022-12-18 10:17:00   627425735002915f502b_icon https://images.tuyaeu.com/smart/icon/ay1524194438166Zg2hZ/c3db264e1bc8e6ab11cf88171e87dc39.jpg
#     2022-12-18 10:17:00   627425735002915f502b_id 627425735002915f502b
#     2022-12-18 10:17:14   627425735002915f502b_ip offline
#     2022-12-18 10:17:00   627425735002915f502b_localkey 6b53e2230bf927f2
#     2022-12-18 10:17:00   627425735002915f502b_name PIR Sensor 2
#     2022-12-18 10:17:00   627425735002915f502b_productid XFD2nSDKxFlGV5sV
#     2022-12-18 10:17:14   627425735002915f502b_version 3.3
#     2022-12-18 10:16:58   63667231840d8e501cab_icon https://images.tuyaeu.com/smart/icon/1504185916_0.png
#     2022-12-18 10:16:58   63667231840d8e501cab_id 63667231840d8e501cab
#     2023-01-15 08:45:03   63667231840d8e501cab_ip offline
#     2022-12-18 10:16:58   63667231840d8e501cab_localkey a801e4c40666c1e8
#     2023-01-13 19:36:41   63667231840d8e501cab_name PS4 zbV
#     2022-12-18 10:16:58   63667231840d8e501cab_productid D7Hl3AxFbHDS98iO
#     2023-01-15 08:45:03   63667231840d8e501cab_version 3.3
#     2022-12-18 10:16:54   63667231dc4f22f329f1_icon https://images.tuyaeu.com/smart/icon/1504185916_0.png
#     2022-12-18 10:16:54   63667231dc4f22f329f1_id 63667231dc4f22f329f1
#     2023-01-20 21:39:39   63667231dc4f22f329f1_ip 192.168.9.89
#     2022-12-18 10:16:54   63667231dc4f22f329f1_localkey dd15e495a74e7d69
#     2022-12-18 10:16:54   63667231dc4f22f329f1_name PS2 ESSEN
#     2022-12-18 10:16:54   63667231dc4f22f329f1_productid D7Hl3AxFbHDS98iO
#     2023-01-20 21:39:39   63667231dc4f22f329f1_version 3.1
#     2022-12-18 10:16:58   63667231dc4f22f32f01_icon https://images.tuyaeu.com/smart/icon/1504185916_0.png
#     2022-12-18 10:16:58   63667231dc4f22f32f01_id 63667231dc4f22f32f01
#     2023-01-13 20:52:10   63667231dc4f22f32f01_ip offline
#     2022-12-18 10:16:58   63667231dc4f22f32f01_localkey 565c70fe237fc932
#     2022-12-18 10:16:58   63667231dc4f22f32f01_name PS1 Thomas Media
#     2022-12-18 10:16:58   63667231dc4f22f32f01_productid D7Hl3AxFbHDS98iO
#     2023-01-13 20:52:10   63667231dc4f22f32f01_version 3.3
#     2022-12-18 10:16:54   67242256f4cfa2ce1662_icon https://images.tuyaeu.com/smart/icon/1551969519maq7h6mi1l_0.jpg
#     2022-12-18 10:16:54   67242256f4cfa2ce1662_id 67242256f4cfa2ce1662
#     2022-12-18 10:17:09   67242256f4cfa2ce1662_ip offline
#     2022-12-18 10:16:54   67242256f4cfa2ce1662_localkey 20a826d3c4d36122
#     2022-12-20 23:53:08   67242256f4cfa2ce1662_name TuerSensor 4
#     2022-12-18 10:16:54   67242256f4cfa2ce1662_productid hx5ztlztij4yxxvg
#     2022-12-18 10:17:09   67242256f4cfa2ce1662_version 3.3
#     2022-12-18 10:16:59   720570712462ab27e625_icon https://images.tuyaeu.com/smart/program_category_icon/cz.png
#     2022-12-18 10:16:59   720570712462ab27e625_id 720570712462ab27e625
#     2022-12-18 10:17:13   720570712462ab27e625_ip offline
#     2022-12-18 10:16:59   720570712462ab27e625_localkey 61a68dcc87fc6592
#     2022-12-18 10:16:59   720570712462ab27e625_name Steckdose 4
#     2022-12-18 10:16:59   720570712462ab27e625_productid namu1lshm4jrx1td
#     2022-12-18 10:17:13   720570712462ab27e625_version 3.3
#     2022-12-18 10:17:00   720570712462ab280270_icon https://images.tuyaeu.com/smart/program_category_icon/cz.png
#     2022-12-18 10:17:00   720570712462ab280270_id 720570712462ab280270
#     2022-12-18 10:17:14   720570712462ab280270_ip offline
#     2022-12-18 10:17:00   720570712462ab280270_localkey 4dd2676f4fa16db6
#     2022-12-18 10:17:00   720570712462ab280270_name Steckdose 3
#     2022-12-18 10:17:00   720570712462ab280270_productid namu1lshm4jrx1td
#     2022-12-18 10:17:14   720570712462ab280270_version 3.3
#     2022-12-18 10:17:00   743066432cf43267661d_icon https://images.tuyaeu.com/smart/icon/ay1524194438166Zg2hZ/c3db264e1bc8e6ab11cf88171e87dc39.jpg
#     2022-12-18 10:17:00   743066432cf43267661d_id 743066432cf43267661d
#     2022-12-18 10:17:14   743066432cf43267661d_ip offline
#     2022-12-18 10:17:00   743066432cf43267661d_localkey a4d341ce9f636bf9
#     2022-12-18 10:17:00   743066432cf43267661d_name PIR Sensor 3
#     2022-12-18 10:17:00   743066432cf43267661d_productid XFD2nSDKxFlGV5sV
#     2022-12-18 10:17:14   743066432cf43267661d_version 3.3
#     2022-12-18 10:16:57   8513738324a1601779dd_icon https://images.tuyaeu.com/smart/icon/1553220447w51qc6eyig_0.jpg
#     2022-12-18 10:16:57   8513738324a1601779dd_id 8513738324a1601779dd
#     2023-01-20 21:39:40   8513738324a1601779dd_ip 192.168.9.20
#     2022-12-18 10:16:57   8513738324a1601779dd_localkey 108105c3b1a447be
#     2022-12-18 10:16:57   8513738324a1601779dd_name Kleiderschrank 2
#     2022-12-18 10:16:57   8513738324a1601779dd_productid ON0fHlAaAf7Pt7ja
#     2022-12-18 10:17:12   8513738324a1601779dd_version 3.3
#     2022-12-18 10:17:00   853556472cf4326e60da_icon https://images.tuyaeu.com/smart/icon/ay1524194438166Zg2hZ/c3db264e1bc8e6ab11cf88171e87dc39.jpg
#     2022-12-18 10:17:00   853556472cf4326e60da_id 853556472cf4326e60da
#     2022-12-18 10:17:14   853556472cf4326e60da_ip offline
#     2022-12-18 10:17:00   853556472cf4326e60da_localkey 9623196e257884f7
#     2022-12-18 10:17:00   853556472cf4326e60da_name PIR Sensor 1
#     2022-12-18 10:17:00   853556472cf4326e60da_productid XFD2nSDKxFlGV5sV
#     2022-12-18 10:17:14   853556472cf4326e60da_version 3.3
#     2022-12-18 10:16:58   8877821724a16014a898_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/14c77e7f9b5760eae919b3cb216cf70f.png
#     2022-12-18 10:16:58   8877821724a16014a898_id 8877821724a16014a898
#     2023-01-20 21:39:41   8877821724a16014a898_ip 192.168.9.65
#     2022-12-18 10:16:58   8877821724a16014a898_localkey 1eb1f8bf71957568
#     2022-12-18 10:16:58   8877821724a16014a898_name Medien THOMAS
#     2022-12-18 10:16:58   8877821724a16014a898_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   8877821724a16014a898_version 3.3
#     2022-12-18 10:16:57   8877821724a16014ef14_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/14c77e7f9b5760eae919b3cb216cf70f.png
#     2022-12-18 10:16:57   8877821724a16014ef14_id 8877821724a16014ef14
#     2023-01-20 21:39:41   8877821724a16014ef14_ip 192.168.9.93
#     2022-12-18 10:16:57   8877821724a16014ef14_localkey f3ac3693f76b2a96
#     2022-12-18 10:16:57   8877821724a16014ef14_name GL AXT1800 JL35
#     2022-12-18 10:16:57   8877821724a16014ef14_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:12   8877821724a16014ef14_version 3.3
#     2022-12-18 10:16:54   8877821724a160150bef_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/14c77e7f9b5760eae919b3cb216cf70f.png
#     2022-12-18 10:16:54   8877821724a160150bef_id 8877821724a160150bef
#     2023-01-20 21:39:39   8877821724a160150bef_ip 192.168.9.112
#     2022-12-18 10:16:54   8877821724a160150bef_localkey 76bba760eda63914
#     2022-12-18 10:16:54   8877821724a160150bef_name JL36 EX15 Fritzbox
#     2022-12-18 10:16:54   8877821724a160150bef_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:10   8877821724a160150bef_version 3.3
#     2022-12-18 10:16:55   8877821724a160151069_icon https://images.tuyaeu.com/smart/icon/ay1519551146071pEnBd/14c77e7f9b5760eae919b3cb216cf70f.png
#     2022-12-18 10:16:55   8877821724a160151069_id 8877821724a160151069
#     2023-01-20 21:39:40   8877821724a160151069_ip 192.168.9.63
#     2022-12-18 10:16:55   8877821724a160151069_localkey c57e219a20d5e0bf
#     2022-12-18 10:16:55   8877821724a160151069_name Schreibtisch Thomas
#     2022-12-18 10:16:55   8877821724a160151069_productid wifvoilfrqeo6hvu
#     2022-12-18 10:17:11   88778217
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

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.
Sorry, komme jetzt erst dazu.
Die Restarts habe ich beide schon mehrmals gemacht, zwar über das Device mit dem Auswahlbutton Set, aber das müsste ja das selbe sein.
Das Log von heute nach einem Restart der beiden Devices sieht so aus:
2023-01-21 13:46:53,336 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-21 13:46:53,349 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-21 13:46:53,464 - WARNING  - asyncio: Executing <Task pending name='Task-1' coro=<async_main() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py:616> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x7ffb1fcd6df0>()] created at /usr/lib/python3.9/asyncio/tasks.py:704> cb=[_run_until_complete_cb() at /usr/lib/python3.9/asyncio/base_events.py:184] created at /usr/lib/python3.9/asyncio/base_events.py:621> took 0.128 seconds
2023-01-21 13:46:53,465 - INFO     - websockets.server: server listening on 0.0.0.0:15733]

Andernfalls ist das Log komplett leer wie die letzten Tage zeigen.

thburkhart

Zitat von: Superposchi am 21 Januar 2023, 13:50:20
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.
Sorry, komme jetzt erst dazu.
Die Restarts habe ich beide schon mehrmals gemacht, zwar über das Device mit dem Auswahlbutton Set, aber das müsste ja das selbe sein.
Das Log von heute nach einem Restart der beiden Devices sieht so aus:
2023-01-21 13:46:53,336 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-21 13:46:53,349 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-21 13:46:53,464 - WARNING  - asyncio: Executing <Task pending name='Task-1' coro=<async_main() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py:616> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x7ffb1fcd6df0>()] created at /usr/lib/python3.9/asyncio/tasks.py:704> cb=[_run_until_complete_cb() at /usr/lib/python3.9/asyncio/base_events.py:184] created at /usr/lib/python3.9/asyncio/base_events.py:621> took 0.128 seconds
2023-01-21 13:46:53,465 - INFO     - websockets.server: server listening on 0.0.0.0:15733]

Andernfalls ist das Log komplett leer wie die letzten Tage zeigen.

hallo, da wäre wohl auch das von dominik empfohlene Vorgehen sinnhaftig; also alle tuya-devices in der fhem.cnf auskommentieren und successive wieder hereinnehmen. Damit werden die Übeltäter identifiziert. Bei mir waren des devices, die noch "offline" also ohne IP waren
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

Supersoschi, mach mich ein Update auf Version 0.1.566, da ist einiges gefixt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Klingt jetzt vielleicht blöd, aber wie mache ich das?
Im Fhempy_local-Device gibt es ein Update, aber das bewirkt rein gar nichts.
Und Fhem selbst habe ich in den letzten Tage unzählige Male upgedated.

Devices habe ich keine mehr drin, weder Tuya noch Googlecast - habe ich alles bereits gelöscht.

thburkhart

Zitat von: Superposchi am 21 Januar 2023, 14:32:43
Klingt jetzt vielleicht blöd, aber wie mache ich das?
Im Fhempy_local-Device gibt es ein Update, aber das bewirkt rein gar nichts.
Und Fhem selbst habe ich in den letzten Tage unzählige Male upgedated.

Devices habe ich keine mehr drin, weder Tuya noch Googlecast - habe ich alles bereits gelöscht.

gehe auf das device local_pybinding:

[code]define local_pybinding BindingsIo fhempy
attr local_pybinding DbLogExclude .*
attr local_pybinding alias fhempy
attr local_pybinding devStateIcon {      my $status_img = "10px-kreis-gruen";;;;      my $status_txt = "connected";;;;      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;;;        $status_txt = "disconnected";;;;      }      my $ver = ReadingsVal($name, "version", "-");;;;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a><a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start update\">".FW_makeImage("refresh")."</a></div>"    }
attr local_pybinding group fhempy
attr local_pybinding icon file_json-ld2
attr local_pybinding room fhempy
#   BindingType fhempy
#   DEF        fhempy
#   DeviceName ws:localhost:15733
#   FD         24
#   FUUID      620bd15a-f33f-21fb-6c16-bc94e8550344fe90
#   IP         127.0.0.1
#   NAME       local_pybinding
#   NR         290
#   NTFY_ORDER 50-local_pybinding
#   PARTIAL   
#   PORT       15733
#   STATE      opened
#   TYPE       BindingsIo
#   WEBSOCKET  1
#   binary     1
#   connecttime 1674308858.44165
#   devioLoglevel 0
#   eventCount 1
#   installing 0
#   localBinding 1
#   nextOpenDelay 10
#   prev_error
#   READINGS:
#     2023-01-20 22:46:04   hostname        PI4B1
#     2023-01-20 22:46:04   os              posix
#     2023-01-20 22:46:04   python          3.9.2
#     2023-01-20 22:46:04   release         5.15.76-v7l+
#     2023-01-21 14:47:38   state           opened
#     2023-01-20 22:46:04   system          Linux
#     2023-01-20 22:46:04   version         0.1.566
#     2023-01-21 11:39:56   version_available 0.1.566
#     2023-01-21 11:39:56   version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
#   args:
#     local_pybinding
#     BindingsIo
#     fhempy
#
setstate local_pybinding opened
setstate local_pybinding 2023-01-20 22:46:04 hostname PI4B1
setstate local_pybinding 2023-01-20 22:46:04 os posix
setstate local_pybinding 2023-01-20 22:46:04 python 3.9.2
setstate local_pybinding 2023-01-20 22:46:04 release 5.15.76-v7l+
setstate local_pybinding 2023-01-21 14:47:38 state opened
setstate local_pybinding 2023-01-20 22:46:04 system Linux
setstate local_pybinding 2023-01-20 22:46:04 version 0.1.566
setstate local_pybinding 2023-01-21 11:39:56 version_available 0.1.566
setstate local_pybinding 2023-01-21 11:39:56 version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>

[/code]

oben rechts Symbol update oder "set update"
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

Ich habe kein local_fhempy. Füher gab es das bei mir auch mal, aber seit dem letzten neuerstellen heißt es plötzlich Fhempy_local.
Denke aber mal es ist wohl das gleiche Device.

Aber wie ich vorher schon geschrieben habe bewirkt ein Update dort gar nichts. Es passiert einfach nichts.

dominik

Poste dann bitte das fhempy Log. Wahrscheinlich geht bei der Installation was schief.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Hab ich doch, mehr als das steht da nicht drin.

dominik

Zitat von: Superposchi am 21 Januar 2023, 16:39:28
Hab ich doch, mehr als das steht da nicht drin.

Das Update funktioniert ja nicht, daher brauche ich ein fhempy Log während des Updates, nicht nur den normalen Start.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Das ist das was fhempy sowohl bei restart als auch bei einem Update ins Log schreibt.
Da kommt einfach nicht mehr.

Ich sage ja, die anderen Tage sind sogar komplett leer.

Wenn es mehr gibt, must du mir Schritt für Schritt sagen wie und wo.

dominik

Mach bitte einen Restart mit set fhempyserver_15733, dann warte bitte 5 Minuten, danach machst ein set fhempy_local update.
Poste dann das Log ab dem fhempy Restart, also ab
2023-01-21 13:46:53,336 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Genauso durchgeführt, die Ausgabe bleibt trotzdem die gleiche:
2023-01-21 21:01:24,927 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-21 21:01:24,929 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-21 21:01:24,945 - INFO     - websockets.server: server listening on 0.0.0.0:15733


Um sicherzugehen, habe ich vorher auch das Log geleert und leer abgespeichert.
Es kommt einfach nicht mehr.

dominik

Achso...jetzt sehe ich es erst.

FHEM baut gar keine Verbindung zu fhempy auf. Du hast wahrscheinlich irgendwo noch manuell ein fhempy installiert und dieses siehst du in FHEM.

ps -efa|grep fhempy
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Hab den Befehl auf der Konsole ausgeführt. Ausgabe:
error: unsupported SysV option

Usage:
ps [options]

Try 'ps --help <simple|list|output|threads|misc|all>'
  or 'ps --help <s|l|o|t|m|a>'
for additional help text.

For more details see ps(1).

dominik

Was hast du für ein System? Prüfe bitte mal auf deinen System wo der fhempy Prozess läuft. Vielleicht hast du ihn unter einem anderen User installiert oder ein Startscript welches den Prozess startet?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Mein Fhem läuft auf einem NAS in einem Docker-Container.
Hab mich bei der Installation exakt an deine Vorgaben gehalten.
Hat auch in der Vergangenheit funktioniert, bis ich den Server das letzte Mal neu aufsetzen musste. Seit dem besteht dieses Problem und ich bin langsam am verzweifeln weil alles genauso ist wie früher.
Das einzige was sich geändert hat, zu Zeiten wo es funktioniert hat hieß das Local-Device anders rum, also local_fhempy, nicht wie jetzt fhempy_local.

dominik

Den Device Namen hast du aber selbst festgelegt, den kann ich nicht ändern :)

Hast du vielleicht ein local_fhempy und ein fhempy_local Device?

Schau bitte ob ein fhempy Prozess läuft. Wie du das machst, musst du selber googeln, unter Linux ist es normal "ps -efa" wo alle Prozesse angezeigt werden.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Kann es denn sein, dass du in deiner Anleitung mal irgendwas verändert hast bezüglich des Device-Namen? Ich nehme in der Regel den Namen aus der Anleitung mit Copy/Paste.

Was das doppelte Device angeht, habe ich nachgeschaut, aber es gibt bei einem list .*fhempy.* nur fhempy_local, fhempy_log und fhempyserver_15733 aus. Also kein doppeltes Device.

Da ich reiner Anwender bin muss ich auch raten. auf die schnelle habe ich deinen Befehl mal im Terminal des Fhem-Servers eingegeben, worauf folgende Antwort kam:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Jan14 pts/0    00:39:29 /bin/bash /entry.sh start
root      2174     0  0 22:51 pts/1    00:00:00 ps -efa
root      2187     1  0 22:51 pts/0    00:00:00 sleep 0.5
fhem     19302 26754  0 Jan21 ?        00:00:00 python3 FHEM/bindings/python/bin
fhem     26754     1  1 Jan14 ?        03:59:24 perl fhem.pl fhem.cfg
fhem     27046 26754  0 Jan14 ?        00:02:44 node /usr/bin/alexa-fhem -c ./al
fhem     27222 26754  0 Jan14 ?        00:22:04 fhem-connect
fhem     27267 27222  0 Jan14 ?        00:00:00 /usr/bin/node /usr/lib/node_modu
fhem     27405 27046  0 Jan14 ?        00:00:03 /usr/bin/ssh -R 1234:127.0.0.1:3


Da ich mich mit der Materia nicht auskenne, weis ich aber nicht ob das schon eine Liste der Prozesse ist. Sieht aber für mich so aus.

dominik

Hmm....bist du jetzt noch am gleichen System? Weil vorher hat der Befehl ja nicht funktioniert.

Aber ja, man sieht zumindest, dass fhempy läuft. Ich vermute Mal, dass du die Peer Installation gemacht hast.
Probier mal
sudo systemctl disable fhempy
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Bin immer am gleichen System mit gleicher Konfiguration, allerdings habe ich bisher nie "ps -efa" alleine eingeben sollen. Da war immer noch was dahinter bisher, vielleicht liegts daran.
Das "sudo systemctl disable fhempy" gibt folgendes zurück:
sudo: systemctl: command not found

Jetzt geht nicht daraus hervor, ob er sudo oder das systemctl nicht als Kommando finden konnte. Da aber andere sudo-Befehle funktionieren ...

dominik

Mach bitte mal...

sudo -u fhem bash
pip3 install --upgrade fhempy

Danach schau nochmals ob das Log passt und ob du über die Weboberfläche ein restart/update machen kannst.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Rückmeldung zu "sudo -u fhem bash" lautet:
fhem@fhem:~$

Und "pip3 install --upgrade fhempy" gibt folgendes zurück:
Requirement already satisfied: fhempy in /usr/local/lib/python3.9/dist-packages (0.1.535)
Collecting fhempy
  Downloading fhempy-0.1.574-py3-none-any.whl (4.5 MB)
     |████████████████████████████████| 4.5 MB 2.3 MB/s
Requirement already satisfied: importlib-metadata==4.8.1 in /usr/local/lib/python3.9/dist-packages (from fhempy) (4.8.1)
Requirement already satisfied: markdown2==2.4.2 in /usr/local/lib/python3.9/dist-packages (from fhempy) (2.4.2)
Requirement already satisfied: websockets==10.3 in /usr/local/lib/python3.9/dist-packages (from fhempy) (10.3)
Requirement already satisfied: requests==2.26.0 in /usr/local/lib/python3.9/dist-packages (from fhempy) (2.26.0)
Requirement already satisfied: aiohttp[speedups]==3.8.1 in /usr/local/lib/python3.9/dist-packages (from fhempy) (3.8.1)
Requirement already satisfied: zeroconf==0.36.12 in /usr/local/lib/python3.9/dist-packages (from fhempy) (0.36.12)
Requirement already satisfied: pycryptodomex==3.16.0 in /usr/local/lib/python3.9/dist-packages (from fhempy) (3.16.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.3.1)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (22.2.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (2.0.12)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.8.2)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (6.0.3)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.3.3)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (4.0.2)
Requirement already satisfied: cchardet in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (2.1.7)
Requirement already satisfied: Brotli in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.0.9)
Requirement already satisfied: aiodns in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (3.0.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata==4.8.1->fhempy) (3.11.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests==2.26.0->fhempy) (1.26.5)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.26.0->fhempy) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.26.0->fhempy) (2020.6.20)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/lib/python3/dist-packages (from zeroconf==0.36.12->fhempy) (0.1.7)
Requirement already satisfied: pycares>=4.0.0 in /usr/local/lib/python3.9/dist-packages (from aiodns->aiohttp[speedups]==3.8.1->fhempy) (4.3.0)
Requirement already satisfied: cffi>=1.5.0 in /usr/local/lib/python3.9/dist-packages (from pycares>=4.0.0->aiodns->aiohttp[speedups]==3.8.1->fhempy) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.5.0->pycares>=4.0.0->aiodns->aiohttp[speedups]==3.8.1->fhempy) (2.21)
Installing collected packages: fhempy
  Attempting uninstall: fhempy
    Found existing installation: fhempy 0.1.535
    Uninstalling fhempy-0.1.535:
      Successfully uninstalled fhempy-0.1.535
Successfully installed fhempy-0.1.574


Nach Restart und Update von Fhempy_local und Fhempyserver_15733 steht im Log von heute folgendes:
2023-01-24 18:47:45,411 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-24 18:47:45,424 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-24 18:47:45,510 - INFO     - websockets.server: server listening on 0.0.0.0:15733


Vorher war das Log komplett leer.

Was ich jetzt nicht verstehe ist, dass er nach den Terminal-Befehlen die Version 0.1.535 offenbar deinstalliert und 0.1.574 installiert hat, über die Fhemoberfläche aber im Log wieder 0.1.535 drin steht.

Hab dann mal den Fhem-Server komplett neu gestartet und im Logfile von Fhem steht folgendes:
2023.01.24 18:54:45.713 1: FHEMWEB SSL/HTTPS error:  SSL accept attempt failed error:1408F09C:SSL routines:ssl3_get_record:http request (peer: 192.168.178.209)
2023.01.24 18:54:48.553 1: fhempy_local: Can't connect to ws:localhost:15733: DNS 127.0.0.11 timed out
2023.01.24 18:54:48.553 1: BindingsIo (fhempy_local): ERROR during connection setup: DNS 127.0.0.11 timed out


Im Fhempy-Log wurde noch mal das gleiche eingetragen wie zuvor.

dominik

Eben, du hast 2 fhempy Versionen!

Wo schaust du ins Log rein, wo liegt das?

Mach auch mal ein
sudo find / -name fhempy
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Aber nur jeweils ein device für Server und das local. Also wie und wo ist das 2. Fhempy und wie kann ich darauf zugreifen?

die Auszüge sind aus dem Log das Fhem selbst bzw Fhempy in das .log-Verzeichnis schreibt. Genauso wie es auch in dem Device eingetragen ist.

Die Ausgabe zu dem Befehl lautet:
/opt/fhem/FHEM/bindings/python/bin/fhempy
/opt/fhem/.local/lib/python3.9/site-packages/fhempy
/opt/fhem/.local/bin/fhempy
/opt/fhem/restoreDir/update/2022-12-21/FHEM/bindings/python/bin/fhempy
find: '/proc/11101/map_files': Permission denied
find: '/proc/11404/map_files': Permission denied
find: '/proc/11726/map_files': Permission denied
find: '/proc/27035/map_files': Permission denied
find: '/proc/27037/map_files': Permission denied
find: '/proc/27069/map_files': Permission denied
/usr/local/bin/fhempy
/usr/local/lib/python3.9/dist-packages/fhempy

dominik

Mhm...da haben wir schon den Übeltäter. Du hast fhempy mit sudo installiert. Das steht und stand nie im Readme. Bitte niemals sudo verwenden, fhempy benötigt kein root!

sudo pip3 uninstall fhempy
sudo -u fhem bash
pip3 install --upgrade fhempy
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Ok, auf "sudo pip3 uninstall fhempy" kommt die Ausgabe:
Found existing installation: fhempy 0.1.574
Uninstalling fhempy-0.1.574:
  Would remove:
    /usr/local/bin/fhempy
    /usr/local/lib/python3.9/dist-packages/fhempy-0.1.574.dist-info/*
    /usr/local/lib/python3.9/dist-packages/fhempy/*
    /usr/local/lib/python3.9/dist-packages/tests/*
Proceed (y/n)? y
  Successfully uninstalled fhempy-0.1.574


Das "sudo -u fhem bash" gibt zurück:
fhem@fhem:~$

Das "pip3 install --upgrade fhempy" gibt zurück:
Collecting fhempy
  Downloading fhempy-0.1.575-py3-none-any.whl (4.5 MB)
     |████████████████████████████████| 4.5 MB 7.1 MB/s
Requirement already satisfied: importlib-metadata==4.8.1 in /usr/local/lib/python3.9/dist-packages (from fhempy) (4.8.1)
Requirement already satisfied: aiohttp[speedups]==3.8.1 in /usr/local/lib/python3.9/dist-packages (from fhempy) (3.8.1)
Requirement already satisfied: markdown2==2.4.2 in /usr/local/lib/python3.9/dist-packages (from fhempy) (2.4.2)
Requirement already satisfied: zeroconf==0.36.12 in /usr/local/lib/python3.9/dist-packages (from fhempy) (0.36.12)
Requirement already satisfied: pycryptodomex==3.16.0 in /usr/local/lib/python3.9/dist-packages (from fhempy) (3.16.0)
Requirement already satisfied: websockets==10.3 in /usr/local/lib/python3.9/dist-packages (from fhempy) (10.3)
Requirement already satisfied: requests==2.26.0 in /usr/local/lib/python3.9/dist-packages (from fhempy) (2.26.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (6.0.3)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (4.0.2)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.3.3)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.8.2)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (2.0.12)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (22.2.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.3.1)
Requirement already satisfied: cchardet in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (2.1.7)
Requirement already satisfied: aiodns in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (3.0.0)
Requirement already satisfied: Brotli in /usr/local/lib/python3.9/dist-packages (from aiohttp[speedups]==3.8.1->fhempy) (1.0.9)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata==4.8.1->fhempy) (3.11.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.26.0->fhempy) (2020.6.20)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.26.0->fhempy) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests==2.26.0->fhempy) (1.26.5)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/lib/python3/dist-packages (from zeroconf==0.36.12->fhempy) (0.1.7)
Requirement already satisfied: pycares>=4.0.0 in /usr/local/lib/python3.9/dist-packages (from aiodns->aiohttp[speedups]==3.8.1->fhempy) (4.3.0)
Requirement already satisfied: cffi>=1.5.0 in /usr/local/lib/python3.9/dist-packages (from pycares>=4.0.0->aiodns->aiohttp[speedups]==3.8.1->fhempy) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.5.0->pycares>=4.0.0->aiodns->aiohttp[speedups]==3.8.1->fhempy) (2.21)
Installing collected packages: fhempy
Successfully installed fhempy-0.1.575


Danach sicherheitshalber den Fhem-Server neugestartet.

Im Startlog des Fhem-Servers steht nach wie vor:
2023.01.24 21:12:41.947 1: fhempy_local: Can't connect to ws:localhost:15733: DNS 127.0.0.11 timed out
2023.01.24 21:12:41.947 1: BindingsIo (fhempy_local): ERROR during connection setup: DNS 127.0.0.11 timed out


Im Fhempy-Log steht jetzt allerdings etliche Male:
Traceback (most recent call last):
  File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 162, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 708, in run
    loop.run_until_complete(async_main())
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 616, in async_main
    async with websockets.serve(
  File "/opt/fhem/.local/lib/python3.9/site-packages/websockets/legacy/server.py", line 1070, in __aenter__
    return await self
  File "/opt/fhem/.local/lib/python3.9/site-packages/websockets/legacy/server.py", line 1088, in __await_impl__
    server = await self._create_server()
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1494, in create_server
    raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2023-01-24 21:12:35,865 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-24 21:12:35,867 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-24 21:12:35,883 - INFO     - websockets.server: server listening on 0.0.0.0:15733[code]

Im Fhempy_local steht weiterhin "Installing fhempy (15min)." im STATE. Auch haben wie vorher beide Devices (Server und local) den grünen Punkt.

dominik

Ich habe das Gefühl, dass du ein ziemliches Chaos auf deinem System hast. Magst du das nicht mal sauber aufsetzen?

Warum installiert der User fhem etwas in /usr/local/lib...? Das sollte eigentlich nicht das Home Verzeichnis von FHEM sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Das System ist ja "gerade eben" erst neu aufgesetzt.
Seit dem existieren ja erst die Probleme.

Aber ja, denke ich schon länger drüber nach, doch mir fehlt leider aktuell die Zeit dafür.

Die Frage mit dem Installieren in das Verzeichnis kann ich nicht beantworten. Dazu reichen meine Kenntnisse nicht aus.

dominik

Wenn du wenig Know-How in dem Bereich hast, dann mach es doch mal ganz simpel und nicht kompliziert...
also Raspberry Pi mit FHEM drauf und gut ist. Kein NAS und Docker, das ist immer Spezialhardware und auch Docker muss man verstehen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Naja, ehrlich gesagt denke ich das ein RasPi nicht weniger kompliziert ist, denn davon habe ich genauso wenig Ahnung.
Außerdem sehe ich das Problem eher in meinem Unverständnis gegenüber Linux. Ich komme einfach nicht mit den nichtssagend Ausgaben zurecht. Zumindest finde ich sie unverständlich.

Sicher ist Docker etwas spezielleres, dafür ist das NAS aus verschiedenen Gründen angeschafft worden und verursacht so keine neuen Anschaffungskosten.

Aber wenn ich das jetzt richtig interpretiere weißt du auch nicht mehr weiter und gibst auf, oder?

dominik

mach
sudo pip3 uninstall fhempy
danach
fhempy Neustart in FHEM machen und das Log nochmals anschauen
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Also der Befehl "sudo pip3 uninstall fhempy" ergibt die gleiche Ausgabe wie beim ersten Mal:
Found existing installation: fhempy 0.1.575
Uninstalling fhempy-0.1.575:
  Would remove:
    /usr/local/bin/fhempy
    /usr/local/lib/python3.9/dist-packages/fhempy-0.1.575.dist-info/*
    /usr/local/lib/python3.9/dist-packages/fhempy/*
    /usr/local/lib/python3.9/dist-packages/tests/*
Proceed (y/n)? y
  Successfully uninstalled fhempy-0.1.575


Das verstehe ich allerdings nicht, wenn er es beim ersten Mal deinstalliert hat wie kann er es dann jetzt erneut deinstallieren?

Das steht jetzt im Fhempy-Log von heute
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2023-01-24 21:12:35,865 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-24 21:12:35,867 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-24 21:12:35,883 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-24 21:16:25,608 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-24 21:16:25,610 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-24 21:16:25,626 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2023-01-24 21:16:28,183 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-24 21:16:28,185 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-24 21:16:28,201 - INFO     - websockets.server: server listening on 0.0.0.0:15733

2023-01-24 23:05:41,672 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.535...
2023-01-24 23:05:41,674 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-24 23:05:41,689 - INFO     - websockets.server: server listening on 0.0.0.0:15733

Die Leerzeile ist von mir und signalisiert den Zeitpunkt des Restarts.
Was mich irritiert ist, dass er immer wieder auf die 535 geht.

dominik

Das Problem ist die eigenartige Installation nach /usr/local. Eigentlich sollte fhem dort gar keine Rechte haben zu installieren.

Lösch mal das Verzeichnis hier:
rm -rf /opt/fhem/.local/lib/python3.9/site-packages/fhempy

und starte dann wieder neu. Poste dann wieder das Log.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Ist es nicht sinnvoller fhempy mal komplett zu löschen und alle Spuren zu eliminieren um dann von Grund auf neu zu installieren?

dominik

Nein, bitte probier das vorher beschriebene
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

So, habe ich gemacht. Die Rückmeldung ist nur ein leeres Fenster, der Ordner selbst ist aber gelöscht. Habe ich im Exlorer kontrolliert.
Dabei ist mir aufgefallen, dass in dem Verzeichnis neben fhempy auch ein Ordner Namens "fhempy-0.1.535.dist-info" existiert.

Ist der vielleicht dafür verantwortlich, dass das Update irgendwie nicht richtig ankommt?

dominik

Nein.

Bitte noch um Rückmeldung wie ich es oben beschrieben habe.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Das mit dem Log hatte ich überlesen.
Nach einem Neustart der beiden Devices steht im Log:
2023-01-25 16:56:22,915 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.575...
2023-01-25 16:56:22,916 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-01-25 16:56:22,931 - INFO     - websockets.server: server listening on 0.0.0.0:15733


Immerhin ist jetzt schon mal 575 drin, aber laufen tut es immer noch nicht. Oder meinstest du einen Neustart vom Fhem-Server komplett?

dominik

Was sagt fhempy_local? Verbunden oder nicht?

Und starte mal komplett neu.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Grüner Punkt aber im STATE nach wie vor: "Installing fhempy (15min).."
Und im Fhem-Startlog steht auch immer noch das Timeout drin.

Ich verzweifele langsam.

dominik

2023.01.24 21:12:41.947 1: fhempy_local: Can't connect to ws:localhost:15733: DNS 127.0.0.11 timed out


Sieht auch eigenartig aus...woher kommt das localhost? localhost wird auch noch dazu auf 127.0.0.11 aufgelöst was auch falsch ist. Wie sieht dein fhempy_local define aus?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Keine Ahnung, ich habe nichts verstellt oder umgeleitet. Keine Ahnung woher das mit dem 127.0.0.11 kommt.

Das List sieht so aus:
Internals:
   BindingType fhempy
   DEF        fhempy
   DeviceName ws:localhost:15733
   FUUID      63c2c86e-f33f-6c14-f4b6-3cb0d60db905f54e
   FVERSION   10_BindingsIo.pm:0.182830/2019-01-16
   IP         127.0.0.1
   NAME       fhempy_local
   NEXT_OPEN  1674671304.53545
   NR         369
   NTFY_ORDER 50-fhempy_local
   PARTIAL   
   PORT       15733
   STATE      Installing fhempy (15min).
   TYPE       BindingsIo
   binary     1
   devioLoglevel 0
   eventCount 1343
   installing 1
   localBinding 1
   nextOpenDelay 10
   prev_error DNS 127.0.0.11 timed out
   READINGS:
     2023-01-25 20:12:59   state           Installing fhempy (15min).
   args:
     fhempy_local
     BindingsIo
     fhempy
Attributes:
   devStateIcon {        my $status_img = "10px-kreis-gruen";;        my $status_txt = "connected";;        my $ver = ReadingsVal($name, "version", "-");;        my $ver_available = ReadingsVal($name, "version_available", $ver);;        my $update_icon = "";;        if ($ver_available ne $ver) {          $status_img = "10px-kreis-gelb";;          $status_txt = "Version ".$ver_available." available for update";;        }        if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {          $status_img = "10px-kreis-rot";;          $status_txt = "disconnected";;        }        $update_icon = "<a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start ".$ver_available." update\">".FW_makeImage("refresh")."</a>";;        "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon."</div>"      }
   group      fhempy
   icon       file_json-ld2
   room       fhempy

dominik

Ein kurzes googlen zeigt, dass es da bei Docker mit 127.0.0.11 ein paar Einträge gibt. Bitte selber suchen und die Lösung finden.

So...an dieser Stelle muss ich meinen Support jetzt aber auch beenden. So gerne ich das Problem auch gelöst hätte, aber ich kann dir nicht jede Kleinigkeit in deinem System erklären. Das solltest du wissen und nicht ich.

Du kannst gerne, wie schon öfter erwähnt, ein sauberes RPi System aufsetzen und simpel starten. Ohne Docker, ohne NAS, ohne sonstiges Zeug. Wenn du dann Probleme hast, melde dich gerne und ich helfe weiter.

Sorry, aber ich kann nicht bei über 40 Modulen so einen Basic Support leisten. Dafür reicht meine Zeit nicht aus.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Borkk

Hi Zusammen,

ich hänge gerade an exakt dem gleichen Problem. Ich nutze auch Docker auf einer Synology. Ich bin vor ein paar Wochen bewusst von zwei RPI4 auf das NAS mit 2x SSD und 18GB ram umgezogen. Rennt wie der Teufel :-) Deshalb mal meine generelle Frage.

Hat jemand fhempy auf einer Docker Umgebung laufen. Ist im FHEM Image alles enthalten was Fhempy benötigt? Ich nutze FHEM Docker mit MACVLAN und fester IPv4 (und IPv6) Adresse.

vg     
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

Superposchi

Also ich habe mal den Docker komplett neu aufgesetzt und eine andere Vorlage ("Bullseye" statt "Bullseye 3.0.7") genommen und siehe da, es funktioniert.
Mag sein, dass es Zufall ist oder sich die beiden Container irgendwie unterscheiden, aber mir reicht es erstmal alles wieder am laufen zu haben. Fhempy funktioniert genau wie meine Echos- und TUYA-Devices.

Borkk

Also ich brauche mal ein wenig Starthilfe.

Ich habe mit define fhempy_local BindingsIo fhempy fhempy_local angelegt. Darauf hin wurde automatisch fhempyserver_15733 angelegt.

Der Server scheint zu laufen, er ist Grün und meldet im state: running FHEM/bindings/python/bin/fhempy

Das log sieht wie folgt aus:


2023-02-06 17:16:21,448 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.593...
2023-02-06 17:16:21,450 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
  File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 162, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 719, in run
    loop.run_until_complete(async_main())
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 626, in async_main
    async with websockets.serve(
  File "/opt/fhem/.local/lib/python3.9/site-packages/websockets/legacy/server.py", line 1099, in __aenter__
    return await self
  File "/opt/fhem/.local/lib/python3.9/site-packages/websockets/legacy/server.py", line 1117, in __await_impl__
    server = await self._create_server()
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1494, in create_server
    raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use


Der fhempy_local ist eigentlich auch grün, bleibt aber im state bei: Installing fhempy (15min).. hängen.

Der Pytontype skodaconnect meldet: fhempy server offline

Im Log gibt es nach den o.g. keine weitere Meldungen.
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

dominik

Es läuft schon ein anderer fhempy Server. Welche Schritte hast du zur Installation von fhempy alles ausgeführt?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Borkk

Zitat von: dominik am 06 Februar 2023, 22:56:22
Es läuft schon ein anderer fhempy Server. Welche Schritte hast du zur Installation von fhempy alles ausgeführt?

Eigentlich nur den "define fhempy_local ..." wie oben erwähnt. Allerdings habe ich die dann angelegten Devices schon mehrfach gelöscht und ich habe es dann nochmal versucht. Evtl. macht es Sinn nochmal alles clean zu machen. Muss ich ausser den 3 Devices in Fhem noch was anderes löschen? 
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

dominik

Nur "define fhempy_local...."? Das wird nicht klappen, die Installationsanleitung erfordert doch ein bisschen mehr:
https://github.com/fhempy/fhempy#installation

Lösch alle BindingsIo Devices und fhempyserver und dann folge nochmals der Installationsanleitung. Kopier alle Befehle die du ausführst hier rein, dann kann ich dir besser helfen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Borkk

#88
Hallo Dominik,

Schon mal Danke für deine Hilfe. Wie ich oben schon mal geschrieben habe, bin ich in einer recht umfangreichen Docker Umgebung unterwegs. Normal ist im FHEM Image so ziemlich alles enthalten was man für alle "offiziellen" Module braucht. u.a. auch Python v3.9.2. Ich habe nun aber zur Sicherheit nochmal alle fhempy Sachen aus FHEM gelöscht und im Container die "apt install ...." und "cpan Protocol::WebSocket" installiert. lief auch alles ohne Probleme durch. 

Dein GitHub hatte ich bereits in mein Update integriert:


Downloading https://raw.githubusercontent.com/dominikkarall/fhempy/master/controls_pythonbinding.txt
pythonbinding
nothing to do...


Ich habe dann den define ausgeführt und der Server startet sofort ohne Probleme.


fhempy - running - FHEM/bindings/python/bin/fhempy 2023-02-07 23:02:41
python  - v3.9.2   -  2023-02-07 23:02:41


Log
2023-02-07 23:24:47,886 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.593...
2023-02-07 23:24:47,888 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-02-07 23:24:47,904 - INFO     - websockets.server: server listening on 0.0.0.0:15733


Im log kommt danach keine Fehlermeldung

Das fhempy_local Modul meldet jedoch: localhost: Connection refused (111)

Was mich wundert ist der Eintrag in den Internals des fhempy_local??

DeviceName. ws:localhost:15733

Wenn das die URL ist, mit der das Modul den Server erreichen möchte, kann das nicht klappen. Was bedeutet das "ws:" vorm localhost?

Hier noch ein List des Moduls:

Internals:
   BindingType fhempy
   DEF        fhempy
   DeviceName ws:localhost:15733
   IP         127.0.0.1
   NAME       fhempy_local
   NEXT_OPEN  1675809126.96765
   NR         144
   NTFY_ORDER 50-fhempy_local
   PARTIAL   
   PORT       15733
   STATE      disconnected
   TYPE       BindingsIo
   binary     1
   devioLoglevel 0
   eventCount 1
   localBinding 1
   nextOpenDelay 10
   prev_error localhost: Connection refused (111)
   Helper:
     DBLOG:
       state:
         DBLogging:
           TIME       1675808690.34288
           VALUE      DISCONNECTED
   READINGS:
     2023-02-07 23:31:56   state           disconnected
   args:
     fhempy_local
     BindingsIo
     fhempy
Attributes:
   devStateIcon {      my $attr_ver = "1.1.0";;      my $status_img = "10px-kreis-gruen";;      my $status_txt = "connected";;      my $ver = ReadingsVal($name, "version", "-");;      my $ver_available = ReadingsVal($name, "version_available", $ver);;      my $update_icon = "";;      my $refresh_img = "refresh";;      my $refresh_txt = "Update fhempy";;      if ($ver_available ne $ver) {        $refresh_img = "refresh\@orange";;        $refresh_txt = "Version ".$ver_available." available for update";;      }      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;        $status_txt = "disconnected";;      }      $update_icon = "<a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start ".$ver_available." update\">".FW_makeImage($refresh_img, $refresh_txt)."</a>";;      my $restart_icon = "<a  href=\"/fhem?cmd.dummy=set $name restart&XHR=1\" title=\"Restart fhempy\">".FW_makeImage("control_reboot")."</a>";;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon.$restart_icon."</div>"    }
   group      fhempy
   icon       file_json-ld2
   room       fhempy


Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

Borkk

haaa, ich habs  :)

Ich habe statt fhempy_local

define fhempy_peer_IP BindingsIo 127.0.0.1:15733 fhempy

verwendet. Jetzt klappt alles auf Anhieb. Ich hatte gleich die "ws:localhost:15733" URL im verdacht. Skodaconnect ist auch sofort gestartet. Super Sache :-)

Ich hatte zwischenzeitig den Container komplett gelöscht und neu aufgesetzt. d.h. Unter Docker braucht man tatsächlich nur dein Git einbinden und die fhempy Devices definieren.

hier ein List:
Internals:
   BindingType fhempy
   DEF        127.0.0.1:15733 fhempy
   DeviceName ws:127.0.0.1:15733
   FD         20
   IP         127.0.0.1
   NAME       fhempy_peer_IP
   NR         295
   NTFY_ORDER 50-fhempy_peer_IP
   PARTIAL   
   PORT       15733
   STATE      opened
   TYPE       BindingsIo
   WEBSOCKET  1
   binary     1
   connecttime 1675809550.64894
   devioLoglevel 0
   eventCount 9
   localBinding 0
   nextOpenDelay 10
   prev_error
   Helper:
     DBLOG:
       hostname:
         DBLogging:
           TIME       1675809550.67045
           VALUE      fhemconnect
       os:
         DBLogging:
           TIME       1675809550.66199
           VALUE      posix
       python:
         DBLogging:
           TIME       1675809550.66633
           VALUE      3.9.2
       release:
         DBLogging:
           TIME       1675809550.67377
           VALUE      4.4.180+
       state:
         DBLogging:
           TIME       1675809550.64929
           VALUE      CONNECTED
       system:
         DBLogging:
           TIME       1675809550.65985
           VALUE      Linux
       version:
         DBLogging:
           TIME       1675809550.66334
           VALUE      0.1.593
       version_available:
         DBLogging:
           TIME       1675809550.9209
           VALUE      0.1.593
       version_release_notes:
         DBLogging:
           TIME       1675809550.92299
           VALUE      <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
   READINGS:
     2023-02-07 23:39:10   hostname        fhemconnect
     2023-02-07 23:39:10   os              posix
     2023-02-07 23:39:10   python          3.9.2
     2023-02-07 23:39:10   release         4.4.180+
     2023-02-07 23:39:10   state           opened
     2023-02-07 23:39:10   system          Linux
     2023-02-07 23:39:10   version         0.1.593
     2023-02-07 23:39:10   version_available 0.1.593
     2023-02-07 23:39:10   version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
   args:
     fhempy_peer_IP
     BindingsIo
     127.0.0.1:15733
     fhempy
Attributes:
   devStateIcon {      my $attr_ver = "1.1.0";;      my $status_img = "10px-kreis-gruen";;      my $status_txt = "connected";;      my $ver = ReadingsVal($name, "version", "-");;      my $ver_available = ReadingsVal($name, "version_available", $ver);;      my $update_icon = "";;      my $refresh_img = "refresh";;      my $refresh_txt = "Update fhempy";;      if ($ver_available ne $ver) {        $refresh_img = "refresh\@orange";;        $refresh_txt = "Version ".$ver_available." available for update";;      }      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;        $status_txt = "disconnected";;      }      $update_icon = "<a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start ".$ver_available." update\">".FW_makeImage($refresh_img, $refresh_txt)."</a>";;      my $restart_icon = "<a  href=\"/fhem?cmd.dummy=set $name restart&XHR=1\" title=\"Restart fhempy\">".FW_makeImage("control_reboot")."</a>";;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon.$restart_icon."</div>"    }
   group      fhempy
   icon       file_json-ld2
   room       fhempy
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

dominik

Super! Funktioniert in Docker kein localhost?

Ich werde localhost durch 127.0.0.1 ersetzen, dann funktioniert es hoffentlich bei mehreren auf Anhieb.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Borkk

#91
Zitat von: dominik am 08 Februar 2023, 00:04:08
Super! Funktioniert in Docker kein localhost?

Ich werde localhost durch 127.0.0.1 ersetzen, dann funktioniert es hoffentlich bei mehreren auf Anhieb.

Also auf der Console im Container kann ich localhost anpingen, evtl. hat FHEM ein Problem damit. Das weis ich nicht genau.

Sag bescheid wenn du das geändert hast, dann teste ich es. 
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

Borkk

Noch eine Beobachtung:

wenn ich Bindingslo wie folgt starte:
define fhempy_peer_IP BindingsIo localhost:15733 fhempy
kommt connection refused.

Ändere ich dann im DEF wieder auf 127.0.0.1:15733 fhempy geht sofort alles online. Dabei entsteht ein Internals IP mit 127.0.01
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

dominik

Hab es nun in BindingsIo auf 127.0.0.1 geändert, somit brauchst du nicht mehr die IP angeben im define.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Borkk

Zitat von: dominik am 08 Februar 2023, 22:57:41
Hab es nun in BindingsIo auf 127.0.0.1 geändert, somit brauchst du nicht mehr die IP angeben im define.

Prima, jetzt klappt es auf Anhieb mit:
define fhempy_local BindingsIo fhempy

Danke  :)
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...