fhempy: tuya (lokal)

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

Vorheriges Thema - Nächstes Thema

dominik

Mach mal set fhempyserver_15733 restart
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Es hat sich nichts verändert

dominik

Bitte das fhempy Log dazu posten
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Muss mich korrigieren, siehe Anlage.

Sommerfeld

Wenn ich ein set local_pybinding update mache, ist das alte Problem wieder da.
Ein  set fhempyserver_15733 restart hilft und es läuft wieder.


dominik

Drück jetzt auf Update bei fhempy und poste das Log ab diesen Zeitpunkt. Dann auch ein ps -efa|grep fhempy und dann noch ein ps -efa|grep PID wobei PID die Nummer aus dem grep fhempy ist.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Sommerfeld

Hier das Log:
2022-06-12 10:51:38,274 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-06-12 10:51:38,278 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-06-12 10:51:38,940 - 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-12 10:51:38,956 - 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-12 10:51:39,133 - 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-12 10:51:39,875 - 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-12 10:51:41,516 - 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-12 10:51:41,520 - 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-12 10:51:41,874 - 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-12 10:51:42,632 - 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-12 10:51:43,221 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-06-12 10:51:43,244 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-06-12 10:51:43,396 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-06-12 10:51:43,399 - INFO     - websockets.server: server closing
2022-06-12 10:51:53,412 - 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-12 10:51:53,413 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 17710557)
2022-06-12 10:51:53,413 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"argsh":{},"PYTHONTYPE":"tuya","NAME":"Air_conditioner_33051602e09806002e71","function":"Set","defargsh":{},"id":"17710557","defargs":["Air_conditioner_33051602e09806002e71","fhempy","tuya","hw50w7qvxluhslkk","33051602e09806002e71","192.168.178.75","d286d82bcff59bc1","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"msgtype":"function","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-12 10:51:53,414 - 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-12 10:51:53,417 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 11794353)
2022-06-12 10:51:53,419 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"NAME":"Badezimmervorhang_83652817a4e57c966383","function":"Set","PYTHONTYPE":"tuya","argsh":{},"id":"11794353","defargsh":{},"defargs":["Badezimmervorhang_83652817a4e57c966383","fhempy","tuya","t6ief6k56sapz1ey","83652817a4e57c966383","192.168.178.101","448e956ebc228af8","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"msgtype":"function","args":["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-12 10:51:53,419 - 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-12 10:51:53,420 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 38297861)
2022-06-12 10:51:53,420 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"args":["Castdevice_Dachboden_Ueberwachung_38237338a4e57cb3ebca","?"],"msgtype":"function","defargs":["Castdevice_Dachboden_Ueberwachung_38237338a4e57cb3ebca","fhempy","tuya","paq3mq0gnaf7s1tc","38237338a4e57cb3ebca","192.168.178.109","a84276fc0235282f","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"id":"38297861","defargsh":{},"argsh":{},"PYTHONTYPE":"tuya","function":"Set","NAME":"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-12 10:51:53,421 - 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-12 10:51:53,421 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 74702197)
2022-06-12 10:51:53,422 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"defargsh":{},"id":"74702197","argsh":{},"PYTHONTYPE":"tuya","NAME":"Emma_bf623c4459370bd192tywm","function":"Set","args":["Emma_bf623c4459370bd192tywm","?"],"msgtype":"function","defargs":["Emma_bf623c4459370bd192tywm","fhempy","tuya","smignajbaljjp2wa","bf623c4459370bd192tywm","192.168.178.89","bc09bdd536d6f7f6","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"]}
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-12 10:51:53,423 - 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-12 10:51:53,423 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 23952104)
2022-06-12 10:51:53,424 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"args":["Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","?"],"defargs":["Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp","fhempy","tuya","qexu7r2qg0i3bm9g","bfc0100ce21d5d7715kbjp","192.168.178.69","c7375d0348ded912","3.3","fq83awrvav6glwxl28ed","59327720c0834b8d8d4bc010f9b9a072"],"msgtype":"function","id":"23952104","defargsh":{},"argsh":{},"PYTHONTYPE":"tuya","function":"Set","NAME":"Fritzphone_Ladeschale_SZ_bfc0100ce21d5d7715kbjp"}
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-12 10:51:53,427 - INFO     - websockets.server: connection closed
2022-06-12 10:51:53,427 - INFO     - websockets.server: server closed

Und dann
ZitatDann auch ein ps -efa|grep fhempy und dann noch ein ps -efa|grep PID wobei PID die Nummer aus dem grep fhempy ist.

thburkhart

hallo,
seit ein paar Tagen gelingt ein FHEM-Update bzgl. pythonbinding
nicht mehr:

2022.06.22 18:42:43 1 : Downloading https://raw.githubusercontent.com/dominikkarall/fhempy/master/controls_pythonbinding.txt
2022.06.22 18:42:43 1 :
2022.06.22 18:42:43 1 : pythonbinding
2022.06.22 18:42:43 1 : UPD FHEM/10_PythonModule.pm
2022.06.22 18:42:43 1 : UPD FHEM/10_fhempyServer.pm
2022.06.22 18:42:44 1 : saving fhem.cfg
2022.06.22 18:42:44 1 : saving ./log/fhem2.save
2022.06.22 18:42:44 1 :
2022.06.22 18:42:44 1 : New entries in the CHANGED file:
2022.06.22 18:42:44 1 : See https://github.com/dominikkarall/fhempy/releases for details
2022.06.22 18:42:44 1 : Calling /usr/bin/perl ./contrib/commandref_modular.pl, this may take a while
2022.06.22 18:42:44 1 :
2022.06.22 18:42:44 1 : update finished, "shutdown restart" is needed to activate the changes.
2022-06-22 18:42:44 Global global UPDATE
2022.06.22 18:42:58 1 : BindingsIo (local_pybinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{3}\x{ef}\x{bf}\x{bd}") at /usr/local/share/perl/5.32.1/JSON.pm line 190.
2022.06.22 18:42:58 1 : BindingsIo (local_pybinding): received JSON was:  �
2022.06.22 18:43:08 1 : ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2022.06.22 18:43:08 1 : BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.22 18:43:21 1 : PERL WARNING: Deep recursion on subroutine "main::CallFn" at fhem.pl line 3970.
2022.06.22 18:43:21 1 : PERL WARNING: Deep recursion on subroutine "main::CallFn" at fhem.pl line 1947.
2022.06.22 18:43:25 1 : ws:127.0.0.1:15733 reappeared (local_pybinding)
2022.06.22 18:43:46 1 : PERL WARNING: Deep recursion on subroutine "main::readingsEndUpdate" at (eval 553488) line 1.
2022.06.22 18:43:46 1 : PERL WARNING: Use of uninitialized value in string eq at (eval 553491) line 1.
2022.06.22 18:43:48 1 : PERL WARNING: Use of uninitialized value in string eq at (eval 553700) line 1.
2022.06.22 18:43:54 1 : PERL WARNING: Use of uninitialized value in string eq at (eval 554655) line 1.



woran könnte das liegen

Beste Grüße

Thomas
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

Was passiert nach einem shutdown Restart oder nur fhempy Restart? 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

Wasserwerk33

Hallo Leute,
vielleicht ist es ja eine doofe Frage. Aber benötige ich diese Programme zusätzlich?? Also die die Oben stehen??

Hatte es nämlich erst mit der Cloud Probiert aber die wollte nicht so ganz Funktoniren. Jetzt weiß ich nicht genau ob die noch benötige oder nicht. 

Danke für eure Hilfe.


dominik

Ne, du musst nix extra installieren. Sieht bei dir schon ganz gut aus, musst nur noch bei dem einem Device das Define anpassen. Statt offline schreibst du die IP an der Stelle rein.

Da die anderen Devices offline anzeigen, stell bitte sicher, dass die IPs fix bleiben.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

thburkhart

Zitat von: thburkhart am 23 Juni 2022, 08:50:04
hallo,
seit ein paar Tagen gelingt ein FHEM-Update bzgl. pythonbinding
nicht mehr:

2022.06.22 18:42:43 1 : Downloading https://raw.githubusercontent.com/dominikkarall/fhempy/master/controls_pythonbinding.txt
2022.06.22 18:42:43 1 :
2022.06.22 18:42:43 1 : pythonbinding
2022.06.22 18:42:43 1 : UPD FHEM/10_PythonModule.pm
2022.06.22 18:42:43 1 : UPD FHEM/10_fhempyServer.pm
2022.06.22 18:42:44 1 : saving fhem.cfg
2022.06.22 18:42:44 1 : saving ./log/fhem2.save
2022.06.22 18:42:44 1 :
2022.06.22 18:42:44 1 : New entries in the CHANGED file:
2022.06.22 18:42:44 1 : See https://github.com/dominikkarall/fhempy/releases for details
2022.06.22 18:42:44 1 : Calling /usr/bin/perl ./contrib/commandref_modular.pl, this may take a while
2022.06.22 18:42:44 1 :
2022.06.22 18:42:44 1 : update finished, "shutdown restart" is needed to activate the changes.
2022-06-22 18:42:44 Global global UPDATE
2022.06.22 18:42:58 1 : BindingsIo (local_pybinding): ERROR JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{3}\x{ef}\x{bf}\x{bd}") at /usr/local/share/perl/5.32.1/JSON.pm line 190.
2022.06.22 18:42:58 1 : BindingsIo (local_pybinding): received JSON was:  �
2022.06.22 18:43:08 1 : ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2022.06.22 18:43:08 1 : BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2022.06.22 18:43:21 1 : PERL WARNING: Deep recursion on subroutine "main::CallFn" at fhem.pl line 3970.
2022.06.22 18:43:21 1 : PERL WARNING: Deep recursion on subroutine "main::CallFn" at fhem.pl line 1947.
2022.06.22 18:43:25 1 : ws:127.0.0.1:15733 reappeared (local_pybinding)
2022.06.22 18:43:46 1 : PERL WARNING: Deep recursion on subroutine "main::readingsEndUpdate" at (eval 553488) line 1.
2022.06.22 18:43:46 1 : PERL WARNING: Use of uninitialized value in string eq at (eval 553491) line 1.
2022.06.22 18:43:48 1 : PERL WARNING: Use of uninitialized value in string eq at (eval 553700) line 1.
2022.06.22 18:43:54 1 : PERL WARNING: Use of uninitialized value in string eq at (eval 554655) line 1.



woran könnte das liegen

Beste Grüße

Thomas


hallo domikik,

kannst du dir das erklären ?

Herzliche Grüße

Thomas
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: dominik am 29 Juni 2022, 14:47:30
Was passiert nach einem shutdown Restart oder nur fhempy Restart? Bitte auch fhempy Log posten.

Das war an dich gerichtet :)
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

denis.robel

#103
Bin gerade dabei einen Wandthermostat für eine Fussbodenheizung (BEOK TOL47WIFI ) einzubinden.
Soweit funktioniert alles erst einmal lokal - vielen Dank für das coole Modul.

Meine Fragen sind:

1. Gibt es für die Devices so etwas wie eine setList wie bei MQTT Devices?
2. Das genericDeviceType ist thermostat, wie definiere ich desired-temp= ...
3. Wie sieht das RhasspyMapping für die Sprachsteuerung aus?
Das folgende geh jedenfalls nicht ...
SetOnOff:cmdOn=on,cmdOff=off
GetOnOff:currentVal=switch,valueOff=off
SetNumeric:currentVal=temp_set,cmd=temp_set,minVal=4.5,maxVal=29.5,step=0.5,type=Temperatur
GetNumeric:currentVal=temp_set,part=0,type=temp_set


VG Denis
VG

Denis

satprofi

In letzter Zeit vermehrt keine zustandsänderung nach absetzen der Befehle. Entweder cloudprobleme,  oder doch fhempy?
bin ich allein?
gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram