fhempy: tuya (lokal)

Begonnen von dominik, 26 April 2022, 19:12:25

Vorheriges Thema - Nächstes Thema

ChrisA4

Zitat von: dominik am 12 Mai 2022, 22:34:14
Sind das Magnetkontakte die per WiFi ein Signal senden? Dann sollten sie genauso funktionieren. Prüfe sicherheitshalber die IP und DeviceID ob alles korrekt ist.

Ja sind WiFi von LSC device Id hab ich aber bekomme keine IP
da das senden ja nicht mal eine sekunde dauert
könnte man das irgendwie rausfinden?

dominik

Die IP musst du selbst setzen, die kann fhempy leider nicht ausfindig machen, da das Device wirklich nur ganz kurz online ist.

Daher...am Router schauen welche IP das Device bekommen hat UND diese beim Router gleich als fixe IP einstellen. Diese trägst du dann im define des Devices ein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ChrisA4

Hab ich gemacht, kommt aber keine reaktion auch im eventmonitor nicht.

Moonraker1

#78
Hallo Dominik,

ich habe heute erfolgreich meine Pool-Wärmepumpe (Smart-Life App steuerbar) mit fhempy lokal in FHEM eingebunden.
Eine Sache klappt aber noch nicht ganz: Ich kann über das angelegte fhem-device die beiden auch in den Attributen aufgeführten Modi "cool" und "heating" anwählen.
Die WP hat aber noch einen dritten Modus, nämlich Leise. Dieser wird (wenn ich ihn über die Smartlife App einstelle) auch in den FHEM readings unter mode als "mute" angezeigt, also offensichtlich vom Modul auch korrekt ausgelesen.
Jedoch unter den "set"-Parametern werden nur "cool" und "heating" als Wahlmöglichkeiten angezeigt.
Eine manuelle Ergänzung der Attribute "tuya_spec_functions" und "tuya_spec_status" brachte leider keinerlei Erfolg.

Wie lässt sich das Problem lösen?

-- Ergänzung: ich hatte soeben noch die Idee über die fhem-Kommandozeile 'set #devicename# mode mute' einzugeben, das hat geklappt!!

liegt also anscheinend nur an der "set" Listendefinition irgendwo in einem der fhem-Module, aber in welchem..???

vielen Dank schon mal für Hilfe
Olli


edit: Das Thema hat sich durch abwarten von selbst gelöst. Inzwischen ist auch der Wert "mute" im "set" device Listenfeld aufgetaucht --> klappt alles bestens.
NUC mit Ubuntu, MAX!Cube über LAN, 1 MAX WT, 8 MAX HT, 2 MAX Fensterkontakt, MaxScanner, HM CCU2 mit Homematic HT's, div. Schaltern, Bewegungsmelder, Ökofen Pelletheizung über httpmod

dominik

Hi,

super, dass es klappt :)

Zur Info, wenn du bei den Attributen etwas änderst, musst du das Device nochmals initialisieren. Das geht am schnellsten durch einen fhempy Restart oder nochmaliges Setzen des IODev. Daher hat es wahrscheinlich nicht gleich geklappt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hallo Dominik,
jedes mal, wenn ich local_pybinding restart mache, geht der local_pybinding auf disconnected und
der Python server geht auf offline. Erst ein shutdown restart sartet den Python server wieder.
Ist das noch ein Bug oder mache ich etwas falsch?
Auszug aus dem Log
2022.06.04 21:53:07.404 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.04 21:53:17.445 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.04 21:53:27.480 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.04 21:53:37.519 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.04 21:53:47.547 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.04 21:53:57.590 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)

dominik

Poste bitte auch noch das fhempy Log beim Restart.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Bitte sehr
2022-06-04 22:42:51,633 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-06-04 22:42:51,765 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-06-04 22:42:51,767 - INFO     - websockets.server: server closing
2022-06-04 22:43:01,777 - ERROR    - fhempy.lib.fhem: Connection closed, can't send message.
2022-06-04 22:43:01,777 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,777 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 8286308)
2022-06-04 22:43:01,778 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"function":"Set","msgtype":"function","defargsh":{},"PYTHONTYPE":"tuya","NAME":"Air_conditioner_33051602e09806002e71","args":["Air_conditioner_33051602e09806002e71","?"],"id":"8286308","defargs":["Air_conditioner_33051602e09806002e71","fhempy","tuya","hw50w7qvxluhslkk","33051602e09806002e71","192.168.178.75","d286d82bcff59bc1","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"argsh":{}}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,778 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,779 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 34544046)
2022-06-04 22:43:01,779 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"argsh":{},"defargs":["Badezimmervorhang_83652817a4e57c966383","fhempy","tuya","t6ief6k56sapz1ey","83652817a4e57c966383","192.168.178.101","448e956ebc228af8","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"id":"34544046","PYTHONTYPE":"tuya","NAME":"Badezimmervorhang_83652817a4e57c966383","args":["Badezimmervorhang_83652817a4e57c966383","?"],"defargsh":{},"function":"Set","msgtype":"function"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,780 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,780 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 49209709)
2022-06-04 22:43:01,780 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"id":"49209709","defargs":["Garderobenlicht_67600068c44f33f54a31","fhempy","tuya","pxphdeyqak8mxld4","67600068c44f33f54a31","192.168.178.81","a15bde2385777214","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"argsh":{},"msgtype":"function","function":"Set","defargsh":{},"args":["Garderobenlicht_67600068c44f33f54a31","?"],"NAME":"Garderobenlicht_67600068c44f33f54a31","PYTHONTYPE":"tuya"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,781 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,781 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 1898266)
2022-06-04 22:43:01,782 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"argsh":{},"defargs":["Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","fhempy","tuya","qexu7r2qg0i3bm9g","bfc0100ce21d5d7715kbjp","192.168.178.69","c7375d0348ded912","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"id":"1898266","PYTHONTYPE":"tuya","args":["Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","?"],"NAME":"Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","defargsh":{},"function":"Set","msgtype":"function"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-04 22:43:01,782 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _w

Sommerfeld

Hallo Dominik,
da das Problem weiterhin besteht wollte ich nachfragen,
ob du schon Zeit hattest, dich mit dem Problem zu beschäftigen.
Beste Grüße

dominik

Hi,

kannst du mir bitte das weitere Log posten? Ich glaube es ist abgeschnitten.
Es scheint so, als ob nach dem shutdown noch immer Messages von FHEM rein kommen, obwohl die Websocket Connection schon geschlossen ist. Kann sein, dass da noch Messages nachverarbeitet werden. Bitte daher zumindest ein paar Sekunden mehr vom Log.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hi,
sorry, hat etwas gedauert. Habe gerade es nochmals versucht.
Anbei das Log.OSError: [Errno 113] Connect call failed ('192.168.178.85', 6668)
2022-06-11 21:07:06,290 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-06-11 21:07:06,296 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-06-11 21:07:08,969 - ERROR    - Bewegungsmelder_Tuya_bf728d260af2218b1b1gpk: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.92', 6668)
2022-06-11 21:07:08,984 - ERROR    - Ladestation_Saugroboter_EG_bf4e3f442e327a1baav18i: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.80', 6668)
2022-06-11 21:07:08,990 - ERROR    - Rauchmelder_AZ_00812426e8db84b82551: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.86', 6668)
2022-06-11 21:07:09,208 - ERROR    - Wasserlecksensor_bfe0c3d5be1780ba831cmt: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.85', 6668)
2022-06-11 21:07:12,071 - ERROR    - Ladestation_Saugroboter_EG_bf4e3f442e327a1baav18i: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.80', 6668)
2022-06-11 21:07:12,072 - ERROR    - Rauchmelder_AZ_00812426e8db84b82551: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.86', 6668)
2022-06-11 21:07:12,082 - ERROR    - Bewegungsmelder_Tuya_bf728d260af2218b1b1gpk: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.92', 6668)
2022-06-11 21:07:12,650 - ERROR    - Wasserlecksensor_bfe0c3d5be1780ba831cmt: Failed to connect to device
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/tuya.py", line 384, in setup_connection
    self._connected_device = await pytuya.connect(
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/tuya/pytuya/__init__.py", line 669, in connect
    _, protocol = await loop.create_connection(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.85', 6668)
2022-06-11 21:07:13,475 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-06-11 21:07:13,520 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-06-11 21:07:13,725 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-06-11 21:07:13,732 - INFO     - websockets.server: server closing
2022-06-11 21:07:23,747 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,748 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 70302647)
2022-06-11 21:07:23,748 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"defargs":["Air_conditioner_33051602e09806002e71","fhempy","tuya","hw50w7qvxluhslkk","33051602e09806002e71","192.168.178.75","d286d82bcff59bc1","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"defargsh":{},"PYTHONTYPE":"tuya","function":"Set","argsh":{},"msgtype":"function","NAME":"Air_conditioner_33051602e09806002e71","id":"70302647","args":["Air_conditioner_33051602e09806002e71","?"]}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,749 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,749 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 60558836)
2022-06-11 21:07:23,749 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"id":"60558836","args":["Badezimmervorhang_83652817a4e57c966383","?"],"function":"Set","PYTHONTYPE":"tuya","argsh":{},"defargsh":{},"defargs":["Badezimmervorhang_83652817a4e57c966383","fhempy","tuya","t6ief6k56sapz1ey","83652817a4e57c966383","192.168.178.101","448e956ebc228af8","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"msgtype":"function","NAME":"Badezimmervorhang_83652817a4e57c966383"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,750 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,751 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 31296897)
2022-06-11 21:07:23,751 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"defargs":["Castdevice_Dachboden_Ueberwachung_38237338a4e57cb3ebca","fhempy","tuya","paq3mq0gnaf7s1tc","38237338a4e57cb3ebca","192.168.178.109","a84276fc0235282f","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"defargsh":{},"argsh":{},"PYTHONTYPE":"tuya","function":"Set","NAME":"Castdevice_Dachboden_Ueberwachung_38237338a4e57cb3ebca","msgtype":"function","id":"31296897","args":["Castdevice_Dachboden_Ueberwachung_38237338a4e57cb3ebca","?"]}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,752 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,752 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 877006)
2022-06-11 21:07:23,752 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"args":["Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","?"],"id":"877006","NAME":"Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","msgtype":"function","defargs":["Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","fhempy","tuya","qexu7r2qg0i3bm9g","bfc0100ce21d5d7715kbjp","192.168.178.69","c7375d0348ded912","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"defargsh":{},"argsh":{},"PYTHONTYPE":"tuya","function":"Set"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,753 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 110, in sendBackReturn
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 930, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,753 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 48201288)
2022-06-11 21:07:23,754 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"id":"48201288","args":["Garderobenlicht_67600068c44f33f54a31","?"],"defargsh":{},"defargs":["Garderobenlicht_67600068c44f33f54a31","fhempy","tuya","pxphdeyqak8mxld4","67600068c44f33f54a31","192.168.178.81","a15bde2385777214","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"argsh":{},"PYTHONTYPE":"tuya","function":"Set","NAME":"Garderobenlicht_67600068c44f33f54a31","msgtype":"function"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1145, in read_frame
    frame = await Frame.read(
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.8/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
    await self.sendBackError(hash, "fhempy failed to handle message")
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 121, in sendBackError
    await self.wsconnection.send(msg.encode("utf-8"))
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1001 (going away); no close frame received
2022-06-11 21:07:23,757 - INFO     - websockets.server: connection closed
2022-06-11 21:07:23,757 - INFO     - websockets.server: server closed

dominik

Hmm...server closed passt eigentlich. Exit 1 sollte aber auch noch dort stehen.
Läuft der Prozess danach noch? Mach danach mal ein "ps -efa|grep fhempy" auf der Linux Console.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Guten Morgen,
Zitatps -efa|grep fhempy
Hier die Ausgabe:

dominik

Welche Version verwendest du aktuell?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Angezeigt wird immer: version update finished...please wait, s. Anlage.
Ich bin mir sicher, dass ich die Version 0.1.362 habe.