fhempy: ble_monitor (Bluetooth Low Energy)

Begonnen von dominik, 15 Februar 2022, 23:36:47

Vorheriges Thema - Nächstes Thema

dominik

Hast du auch andere Module von fhempy im Einsatz? Funktionieren diese? Weil diese Fehlermeldung irritiert mich ebenfalls:
ZitatOSError: [Errno 126] Required key not available
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Nighthawk

Hallo Dominik,

nein, aktuell ist nur ble_monitor im Einsatz.
Bis vor Kurzem hatte ich noch das Ring Modul gehabt, dieses wurde aber durch das Ring_Mqtt abgelöst.

dominik

Probier bitte mal das helloworld Modul um zu sehen ob es generell funktioniert
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Nighthawk

Das scheint auch nicht richtig zu funktionieren:

Internals:
   CFGFN     
   DEF        helloworld
   FHEMPYTYPE helloworld
   FUUID      62868d7e-f33f-357a-4614-d8ddb3f49d1d6949
   IODev      local_pybinding
   NAME       TEST
   NR         3826
   PYTHONTYPE helloworld
   STATE      long running off
   TYPE       fhempy
   Helper:
     DBLOG:
       state:
         logdb:
           TIME       1652985315.26582
           VALUE      long running off
   READINGS:
     2022-05-19 20:35:15   state           long running off
   args:
     TEST
     fhempy
     helloworld
   argsh:
Attributes:


2022-05-19 20:33:38,700 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-82' coro=<Event.wait() done, defined at /usr/lib/python3.10/asyncio/locks.py:201> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.10/asyncio/tasks.py:387]>
/usr/lib/python3.10/traceback.py:376: RuntimeWarning: coroutine 'Event.wait' was never awaited
  result.append(FrameSummary(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2022-05-19 20:33:38,708 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-91' coro=<Event.wait() running at /usr/lib/python3.10/asyncio/locks.py:201> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.10/asyncio/tasks.py:387]>
2022-05-19 20:33:38,709 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-94' coro=<Event.wait() done, defined at /usr/lib/python3.10/asyncio/locks.py:201> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.10/asyncio/tasks.py:387]>

dominik

Kannst du mir bitte das gesamte Log posten? Danke!
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Nighthawk

Da ist leider nicht so viel mehr drin:

022-05-19 16:49:04,983 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.348...
2022-05-19 16:49:04,985 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-19 16:49:05,012 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-19 16:49:22,611 - INFO     - websockets.server: connection open
2022-05-19 16:49:22,612 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-19 16:49:22,660 - WARNING  - zeroconf: Error with socket 15 (('192.168.42.0', 5353))): [Errno 126] Required key not available
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 1053, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 126] Required key not available
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 183, in run
    self._event_loop.run_until_complete(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 644, in run_until_complete
    raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
2022-05-19 16:49:27,515 - ERROR    - Feuermelder_SZ: Waiting for the HCIdump thread to finish took too long! (>10s)
2022-05-19 16:49:27,516 - WARNING  - asyncio: Executing <Task finished name='Task-40' coro=<ble_monitor.Define() done, defined at /opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/ble_monitor/ble_monitor.py:33> result=None created at /usr/lib/python3.10/asyncio/tasks.py:636> took 1.002 seconds
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 183, in run
    self._event_loop.run_until_complete(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 644, in run_until_complete
    raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.10/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 183, in run
    self._event_loop.run_until_complete(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 644, in run_until_complete
    raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
2022-05-19 16:49:31,519 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 16:49:32,639 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 16:49:36,523 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 16:49:37,643 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 16:49:42,649 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 16:49:47,655 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 16:49:52,658 - ERROR    - Feuermelder_SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-19 20:33:38,700 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-82' coro=<Event.wait() done, defined at /usr/lib/python3.10/asyncio/locks.py:201> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.10/asyncio/tasks.py:387]>
/usr/lib/python3.10/traceback.py:376: RuntimeWarning: coroutine 'Event.wait' was never awaited
  result.append(FrameSummary(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2022-05-19 20:33:38,708 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-91' coro=<Event.wait() running at /usr/lib/python3.10/asyncio/locks.py:201> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.10/asyncio/tasks.py:387]>
2022-05-19 20:33:38,709 - ERROR    - asyncio: Task was destroyed but it is pending!
task: <Task pending name='Task-94' coro=<Event.wait() done, defined at /usr/lib/python3.10/asyncio/locks.py:201> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[_release_waiter(<Future pendi...ask_wakeup()]>)() at /usr/lib/python3.10/asyncio/tasks.py:387]>

dominik

Teste bitte mal mit Version 0.1.355. Ich habe dort Zeroconf aktualisiert, bin mir aber noch nicht sicher ob es damit zusammenhaengt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Nighthawk

update all + shutdown restart bringen leider keine Veränderung.

dominik

Kannst du es bitte mal mit Python 3.9 probieren?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Nighthawk

hmm, ich habe versucht python 2.10 vom System zu verbannen, leider scheint es nicht so trivial möglich zu sein, denn jetzt sieht es so aus als hätte ich beide Versionen:


~$ python3 -V
Python 3.10.4
~$ python3.9 -V
Python 3.9.12


wie bekomme ich nun ble_monitor dazu die 3.9 zu nutzen, bzw wie werde ich die 3.10 komplett los?

Nighthawk

ok, habe es jetzt folgender Maßen umgebogen:

# update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
# sudo update-alternatives  --set python /usr/bin/python3.9
# update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
# sudo update-alternatives  --set python3 /usr/bin/python3.9


leider hat das ebenfalls nicht zur Lösung des Problems geführt:

2022-05-21 10:11:03,351 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2022-05-21 10:11:03,355 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 10:11:03,405 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 10:11:20,639 - INFO     - websockets.server: connection open
2022-05-21 10:11:20,643 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 10:11:20,743 - WARNING  - zeroconf: Error with socket 9 (('192.168.42.0', 5353))): [Errno 126] Required key not available
Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 1053, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 126] Required key not available
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 183, in run
    self._event_loop.run_until_complete(
  File "/usr/lib/python3.9/asyncio/base_events.py", line 645, in run_until_complete
    raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
2022-05-21 10:11:25,110 - ERROR    - Feuermelder_ SZ: Waiting for the HCIdump thread to finish took too long! (>10s)
2022-05-21 10:11:25,111 - WARNING  - asyncio: Executing <Task finished name='Task-45' coro=<ble_monitor.Define() done, defined at /opt/fhem/.local/lib/python3.9/site-pa>
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 171, in run
    conn[hci], btctrl[hci] = self._event_loop.run_until_complete(
  File "/usr/lib/python3.9/asyncio/base_events.py", line 645, in run_until_complete
    raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 183, in run
    self._event_loop.run_until_complete(
  File "/usr/lib/python3.9/asyncio/base_events.py", line 645, in run_until_complete
    raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
2022-05-21 10:11:29,116 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-21 10:11:30,187 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-21 10:11:34,119 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-21 10:11:35,191 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-21 10:11:40,195 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-21 10:11:45,201 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2022-05-21 10:11:50,207 - ERROR    - Feuermelder_ SZ: HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.

marboj

Hallo zusammen,

würde das Modul auch gerne nutzen, habe allerdings Python 3.7 installiert. Nach dem Upgrade auf Bullseye liefen meine Scripte nicht mehr. Kann mir jemand einen Tip geben, was zu tun ist?

Oder besteht die Möglichkeit, das 3.7 nochmal supportet wird?

Gruß
Marco
meine FHEM-Konfiguration: Raspberry Pi4, BT-Dongle, CUL868, CeeBee II

dominik

@marboj, Python 3.7 sollte auch funktionieren. Was bekommst du für einen Fehler?

@Nighthawk, probier bitte mit Python 3.9 nochmals helloworld.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

marboj

Habe den XIAOMI Temp/Hum Sensor LYWSD03MMC im Einsatz. Dafür habe ich das mi_temphum installiert.

Das Gerät zeigt im Status: Server offline und als Reading habe ich lediglich den Namen des Geräts: ATC_45CBF4.

Hier das Log von fhempy:

2022-05-21 23:05:38,656 - ERROR    - __main__: Failed to load fhempy
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 100, in <module>
    import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2022-05-21 23:05:38,657 - INFO     - __main__: Attempting install of fhempy>=0.1.12
2022-05-21 23:06:14,519 - INFO     - __main__: Successfully installed fhempy>=0.1.12
2022-05-21 23:06:14,520 - ERROR    - __main__: Failed to import fhempy, exit now...
2022-05-21 23:07:15,503 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:07:15,553 - INFO     - fhempy.lib.pkg_installer: Attempting install of async-upnp-client==0.20.0
2022-05-21 23:07:21,605 - INFO     - fhempy.lib.pkg_installer: Successfully installed async-upnp-client==0.20.0 update!
2022-05-21 23:07:21,607 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:07:21,651 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:07:24,512 - INFO     - websockets.server: connection open
2022-05-21 23:07:24,514 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:07:24,700 - INFO     - fhempy.lib.pkg_installer: Attempting install of mitemp-bt==0.0.3
2022-05-21 23:07:30,620 - INFO     - fhempy.lib.pkg_installer: Successfully installed mitemp-bt==0.0.3 update!
2022-05-21 23:07:34,427 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:13:59,260 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:13:59,268 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:13:59,313 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:14:03,524 - INFO     - websockets.server: connection open
2022-05-21 23:14:03,526 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:14:04,452 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:30:58,653 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-21 23:30:58,654 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-21 23:31:04,503 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-21 23:31:04,526 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-21 23:31:04,528 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:31:04,530 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-21 23:31:04,531 - INFO     - websockets.server: server closing
2022-05-21 23:31:14,549 - INFO     - websockets.server: connection closed
2022-05-21 23:31:14,550 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-21 23:31:15,515 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:31:15,522 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:31:15,562 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:31:24,677 - INFO     - websockets.server: connection open
2022-05-21 23:31:24,679 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:31:25,396 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:33:54,847 - INFO     - fhempy.lib.pkg_installer: Attempting install of pycryptodomex>=3.12.0
2022-05-21 23:34:03,395 - INFO     - fhempy.lib.pkg_installer: Successfully installed pycryptodomex>=3.12.0 update!
2022-05-21 23:34:03,450 - INFO     - fhempy.lib.pkg_installer: Attempting install of janus>=1.0.0
2022-05-21 23:34:08,310 - INFO     - fhempy.lib.pkg_installer: Successfully installed janus>=1.0.0 update!
2022-05-21 23:34:08,366 - INFO     - fhempy.lib.pkg_installer: Attempting install of aioblescan>=0.2.12
2022-05-21 23:34:13,209 - INFO     - fhempy.lib.pkg_installer: Successfully installed aioblescan>=0.2.12 update!
2022-05-21 23:34:13,255 - INFO     - fhempy.lib.pkg_installer: Attempting install of btsocket>=0.1.0
2022-05-21 23:34:17,946 - INFO     - fhempy.lib.pkg_installer: Successfully installed btsocket>=0.1.0 update!
2022-05-21 23:34:17,991 - INFO     - fhempy.lib.pkg_installer: Attempting install of pyric>=0.1.6.3
2022-05-21 23:34:23,065 - INFO     - fhempy.lib.pkg_installer: Successfully installed pyric>=0.1.6.3 update!
2022-05-21 23:34:23,125 - INFO     - fhempy.lib.pkg_installer: Attempting install of bleparser==2.0.0
2022-05-21 23:34:27,993 - INFO     - fhempy.lib.pkg_installer: Successfully installed bleparser==2.0.0 update!
2022-05-21 23:36:14,870 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-21 23:36:14,871 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-21 23:36:20,604 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-21 23:36:20,633 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-21 23:36:20,637 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-21 23:36:20,639 - INFO     - websockets.server: server closing
2022-05-21 23:36:30,661 - INFO     - websockets.server: connection closed
2022-05-21 23:36:30,662 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-21 23:36:31,571 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:36:31,579 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:36:31,627 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:36:40,829 - INFO     - websockets.server: connection open
2022-05-21 23:36:40,833 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:36:41,588 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:38:00,269 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-21 23:38:00,271 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-21 23:38:06,102 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-21 23:38:06,148 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-21 23:38:06,148 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-21 23:38:06,150 - INFO     - websockets.server: server closing
2022-05-21 23:38:16,172 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 247, in handle_function
    await self.sendBackReturn(hash, "")
  File "/opt/fhem/.local/lib/python3.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:38:16,174 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 34770047)
2022-05-21 23:38:16,175 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"PYTHONTYPE":"ble_monitor","NAME":"my_body_scale","argsh":{},"FHEMPYTYPE":"ble_monitor","msgtype":"function","defargsh":{},"args":["my_body_scale","?"],"defargs":["my_body_scale","fhempy","ble_monitor","A4:C1:38:45:CB:F4"],"id":"34770047","function":"Set"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:38:16,183 - INFO     - websockets.server: connection closed
2022-05-21 23:38:16,185 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-21 23:38:17,215 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:38:17,222 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:38:17,263 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:38:26,798 - INFO     - websockets.server: connection open
2022-05-21 23:38:26,801 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:39:12,543 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:40:45,756 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:40:45,764 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:40:45,813 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:40:50,808 - INFO     - websockets.server: connection open
2022-05-21 23:40:50,810 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:40:52,265 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:44:05,525 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-21 23:44:05,526 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-21 23:44:11,379 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-21 23:44:11,416 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-21 23:44:11,420 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-21 23:44:11,422 - INFO     - websockets.server: server closing
2022-05-21 23:44:21,456 - INFO     - websockets.server: connection closed
2022-05-21 23:44:21,457 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-21 23:44:22,429 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:44:22,436 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:44:22,477 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:44:33,519 - INFO     - websockets.server: connection open
2022-05-21 23:44:33,520 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:44:41,636 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4
2022-05-21 23:45:59,085 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-21 23:45:59,087 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-21 23:46:04,931 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-21 23:46:04,953 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-21 23:46:04,957 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-21 23:46:04,959 - INFO     - websockets.server: server closing
2022-05-21 23:46:14,979 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:46:14,981 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 92851610)
2022-05-21 23:46:14,982 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"NAME":"mi_temphum","FHEMPYTYPE":"mitemp","defargs":["mi_temphum","fhempy","mitemp","A4:C1:38:45:CB:F4"],"argsh":{},"function":"Set","id":"92851610","defargsh":{},"PYTHONTYPE":"mitemp","args":["mi_temphum","?"],"msgtype":"function"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:46:14,984 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:46:14,985 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 49340130)
2022-05-21 23:46:14,986 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"function":"FW_detailFn","argsh":{},"id":"49340130","PYTHONTYPE":"mitemp","args":["WEB","mi_temphum","",null],"defargsh":{},"msgtype":"function","NAME":"mi_temphum","FHEMPYTYPE":"mitemp","defargs":["mi_temphum","fhempy","mitemp","A4:C1:38:45:CB:F4"]}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:46:14,988 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 332, in handle_function
    await self.sendBackReturn(hash, ret)
  File "/opt/fhem/.local/lib/python3.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:46:14,989 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 52890719)
2022-05-21 23:46:14,990 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"id":"52890719","function":"Set","argsh":{},"msgtype":"function","defargsh":{},"args":["mi_temphum","?"],"PYTHONTYPE":"mitemp","FHEMPYTYPE":"mitemp","NAME":"mi_temphum","defargs":["mi_temphum","fhempy","mitemp","A4:C1:38:45:CB:F4"]}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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-05-21 23:46:14,999 - INFO     - websockets.server: connection closed
2022-05-21 23:46:15,000 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-21 23:46:15,941 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-21 23:46:15,948 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-21 23:46:15,988 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-21 23:46:25,154 - INFO     - websockets.server: connection open
2022-05-21 23:46:25,156 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-21 23:46:35,584 - ERROR    - mi_temphum: Failed to get updates from mitemp A4:C1:38:45:CB:F4

meine FHEM-Konfiguration: Raspberry Pi4, BT-Dongle, CUL868, CeeBee II

marboj

#89
wenn ich das Thermometer als ble_monitor anlege, hat das Gerät folgenden Status:

Failed to load module ble_monitor: Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 260, in handle_function
    module_object = await self.import_module(hash)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 454, in import_module
    functools.partial(importlib.import_module, pymodule)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 34, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ble_monitor/ble_monitor.py", line 2, in <module>
    from fhempy.lib.ble_monitor.blemonitor import BLEmonitor
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ble_monitor/blemonitor.py", line 8, in <module>
    from fhempy.lib.ble_monitor.hcidump import HCIdump
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ble_monitor/hcidump.py", line 8, in <module>
    from bleparser import BleParser
  File "/opt/fhem/.local/lib/python3.7/site-packages/bleparser/__init__.py", line 4, in <module>
    from .altbeacon import parse_altbeacon
  File "/opt/fhem/.local/lib/python3.7/site-packages/bleparser/altbeacon.py", line 5, in <module>
    from typing import Final
ImportError: cannot import name 'Final' from 'typing' (/usr/lib/python3.7/typing.py)


Hier das fhempy-log:

2022-05-22 09:58:04,374 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-22 09:58:04,375 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-22 09:58:10,166 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-22 09:58:10,187 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-22 09:58:10,187 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-22 09:58:10,189 - INFO     - websockets.server: server closing
2022-05-22 09:58:20,222 - INFO     - websockets.server: connection closed
2022-05-22 09:58:20,224 - INFO     - websockets.server: server closed
2022-05-22 09:58:20,228 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 166, in _onMessage
    await self.handle_message(msg, hash)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 186, in handle_message
    await self.handle_function(hash, msg)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 293, in handle_function
    await fhem.readingsSingleUpdate(hash, "state", errorMsg, 1)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem.py", line 166, in readingsSingleUpdate
    async with update_locks[hash["NAME"]]:
  File "/usr/lib/python3.7/asyncio/locks.py", line 92, in __aenter__
    await self.acquire()
  File "/usr/lib/python3.7/asyncio/locks.py", line 192, in acquire
    await fut
concurrent.futures._base.CancelledError
2022-05-22 09:58:20,229 - ERROR    - fhempy.lib.fhem_pythonbinding: fhempy failed to handle message(id: 70780800)
2022-05-22 09:58:20,230 - ERROR    - fhempy.lib.fhem_pythonbinding: Failed to handle message: {"msgtype":"function","args":["mi_temphum","?"],"PYTHONTYPE":"ble_monitor","defargsh":{},"id":"70780800","argsh":{},"function":"Set","defargs":["mi_temphum","fhempy","ble_monitor","A4:C1:38:45:CB:F4"],"FHEMPYTYPE":"ble_monitor","NAME":"mi_temphum"}
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
    message = await self.read_message()
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
    extensions=self.extensions,
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
    await self._waiter
concurrent.futures._base.CancelledError

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

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 144, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/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.7/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.7/site-packages/websockets/legacy/protocol.py", line 620, in send
    await self.ensure_open()
  File "/opt/fhem/.local/lib/python3.7/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
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-22 09:58:21,118 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-22 09:58:21,125 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-22 09:58:21,166 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-22 09:58:31,083 - INFO     - websockets.server: connection open
2022-05-22 09:58:31,085 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-22 10:00:13,976 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-22 10:00:13,977 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-22 10:00:19,868 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-22 10:00:19,891 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-22 10:00:19,891 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-22 10:00:19,893 - INFO     - websockets.server: server closing
2022-05-22 10:00:29,907 - INFO     - websockets.server: connection closed
2022-05-22 10:00:29,908 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-22 10:00:30,793 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-22 10:00:30,801 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-22 10:00:30,841 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-22 10:00:39,953 - INFO     - websockets.server: connection open
2022-05-22 10:00:39,955 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-22 10:17:15,703 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-22 10:17:15,710 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-22 10:17:15,754 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-22 10:17:21,030 - INFO     - websockets.server: connection open
2022-05-22 10:17:21,032 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2022-05-22 12:01:23,596 - INFO     - fhempy.lib.fhem_pythonbinding: Start update...
2022-05-22 12:01:23,597 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-05-22 12:01:29,648 - INFO     - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2022-05-22 12:01:29,682 - INFO     - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-05-22 12:01:29,682 - INFO     - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-05-22 12:01:29,684 - INFO     - websockets.server: server closing
2022-05-22 12:01:39,700 - INFO     - websockets.server: connection closed
2022-05-22 12:01:39,701 - INFO     - websockets.server: server closed
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 118, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 627, in run
    loop.run_until_complete(loop.shutdown_default_executor())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_default_executor'
2022-05-22 12:01:40,606 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.357...
2022-05-22 12:01:40,613 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-05-22 12:01:40,656 - INFO     - websockets.server: server listening on 0.0.0.0:15733
2022-05-22 12:01:49,788 - INFO     - websockets.server: connection open
2022-05-22 12:01:49,790 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1



@dominik: Was kann das sein?
meine FHEM-Konfiguration: Raspberry Pi4, BT-Dongle, CUL868, CeeBee II