fhempy: Bluetooth Fragen

Begonnen von RockFan, 11 Januar 2021, 23:31:47

Vorheriges Thema - Nächstes Thema

RockFan

Hallo Dominik,

meine offenen Fragen bzgl. meinen ersten Versuchen mit fhempy und Bluetooth nun, wie von Dir empfohlen, nochmal in einem eigenen Thread:

- einen Peer konnte ich auf einem weitern Raspi anlegen und er wurde in FHEM auch erkannt und erzeugt, bei Update bekomme ich aber folgende Meldung im FHEM Log (obwohl er laut Reading auf dem aktuellen Versionsstand ist):

2021.01.08 11:54:50 1: ws:192.168.178.77:15733 disconnected, waiting to reappear (fhempy_peer_192_168_178_77)
2021.01.08 11:54:50 1: BindingsIo: ERROR fhempy_peer_192_168_178_77 - error while connecting: 192.168.178.77: Verbindungsaufbau abgelehnt (111)

- Benötige ich für jede Instanz (fhem,peers) je ein define für mein Handy, wenn ich es mit Bluetooth Presence Checker lokalisieren möchte?
- BLE Presence: Ich kann mit "sudo find /opt/fhem -name bluepy-helper" nichts finden (mit dem adequaten Kommando auf meinem Peer übrigens auch nicht). Wie kann ich den Helper installieren?
- Was müsste eigentlich mit dem Modul discover_ble erkennbar sein? Ich habe es angelegt, sehe aber nichts, außer das es "active" ist. Sollte es BLE Devices von selbst finden? Ist aber wahrscheinlich eine Folge des fehlenden Helpers, oder?

Viele Grüße
Dieter
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Hi Dieter,

danke für das Erstellen eines neuen Threads.

Zitat von: RockFan am 11 Januar 2021, 23:31:47
- einen Peer konnte ich auf einem weitern Raspi anlegen und er wurde in FHEM auch erkannt und erzeugt, bei Update bekomme ich aber folgende Meldung im FHEM Log (obwohl er laut Reading auf dem aktuellen Versionsstand ist):

2021.01.08 11:54:50 1: ws:192.168.178.77:15733 disconnected, waiting to reappear (fhempy_peer_192_168_178_77)
2021.01.08 11:54:50 1: BindingsIo: ERROR fhempy_peer_192_168_178_77 - error while connecting: 192.168.178.77: Verbindungsaufbau abgelehnt (111)

Das ist normal. Beim Update wird der Remote Peer auch aktualisiert und neu gestartet, daher ist dieser kurz weg.

Zitat
- Benötige ich für jede Instanz (fhem,peers) je ein define für mein Handy, wenn ich es mit Bluetooth Presence Checker lokalisieren möchte?
Ja, aktuell wird jeweils ein Presence Check define genau einem Peer mit dem IODev zugewiesen.
Zitat
- BLE Presence: Ich kann mit "sudo find /opt/fhem -name bluepy-helper" nichts finden (mit dem adequaten Kommando auf meinem Peer übrigens auch nicht). Wie kann ich den Helper installieren?
Probier bitte mal sudo -u fhem pip3 install --upgrade bluepy und probier es dann nochmals. Falls ein Fehler kommt, bitte posten.
Zitat
- Was müsste eigentlich mit dem Modul discover_ble erkennbar sein? Ich habe es angelegt, sehe aber nichts, außer das es "active" ist. Sollte es BLE Devices von selbst finden? Ist aber wahrscheinlich eine Folge des fehlenden Helpers, oder?
Es legt automatisch über BLE gefundene Devices an. Aktuell nur: EQ3BT, Nespresso und GFPro Bewässerung.
Die anderen gefundenen Devices werden nicht als Readings angelegt, da es so viele BLE Signale gibt, dass ich bei mir z.B. nach einem Tag 100 Readings hatte.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

RockFan

Hallo Dominik,

Danke für die Erklärungen!

bluepy konnte ich erfolgreich auf beiden Raspis installieren und der Helper wurde nun auch auf beiden gefunden. Zum Testen habe ich dann mal meine Smartwatch in FHEM definiert.
Hierbei bekomme ich dann allerdings folgenden Fehler:

Failed to load module ble_presence: Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 265, in _onMessage
    fct_timeout,
  File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ble_presence/ble_presence.py", line 294, in Define
    scanner.get_instance(self.logger).register_mac_listener(self._address, self)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ble_presence/ble_presence.py", line 97, in register_mac_listener
    self._scan_task = self.create_async_task(self.loop_scan())
AttributeError: 'scanner' object has no attribute 'create_async_task'


Fehlt noch etwas anderes?

Viele Grüße
Dieter
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Hi,

sorry für die späte Rückmeldung. Da war noch ein Fehler im Code durch meine letzte Änderungen. Wird in Version 0.1.23 behoben sein.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

RockFan

Hallo Dominik,

ich habe vorhin ein FHEM-Update gemacht und die Fehlermeldung ist jetzt weg. Danke dafür  :)

Allerdings habe ich jetzt ein anderes Problem:
Nachdem ich ein Update auf den Peers gemacht habe, haben diese nun Version 0.1.25. Auch das ist prima. Ein Update der FHEM-Instanz schlägt allerdings fehl und setzt diese offensichtlich außer Betrieb:
   
local_pybinding hat nun den Status disconnected und die verbundenen Devices zeigen alle "PythonBinding offline". Nach einem Neustart des Raspis lief die Instanz zwar wieder, hat aber nur Version 0.1.22. Ein Update-Versuch läuft wieder in das gleiche Problem.
Ich habe jetzt nochmal nue FHEM neugestartet, wodurch local_pybinding wieder mit Version 0.1.22 läuft.

Hier ist noch ein Auszug aus dem heutigen PythonBinding-Log ab dem FHEM Update:


2021-01-23 10:45:26,005 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-01-23 10:45:33,305 - ERROR    - asyncio: Task exception was never retrieved
future: <Task finished coro=<PyBinding.onMessage() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:123> exception=SystemExit(1)>
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 125, in onMessage
    await self._onMessage(payload)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 377, in _onMessage
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 158, in _onMessage
    sys.exit(1)
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
    handle._run()
  File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 127, in onMessage
    sys.exit(1)
SystemExit: 1
2021-01-23 10:45:34,394 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 10:45:34,413 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-23 10:45:34,478 - INFO     - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-01-23 10:46:25,571 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 10:46:25,606 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 454, in run
    pybinding, "0.0.0.0", port, ping_timeout=None, ping_interval=None
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/usr/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 965, in __await_impl__
    server = await self._create_server()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server
    % (sa, err.strerror.lower())) from None
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2021-01-23 10:46:58,998 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 10:46:59,062 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 454, in run
    pybinding, "0.0.0.0", port, ping_timeout=None, ping_interval=None
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/usr/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 965, in __await_impl__
    server = await self._create_server()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server
    % (sa, err.strerror.lower())) from None
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2021-01-23 10:47:28,208 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 10:47:28,240 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
  File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
    fpb.run()
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 454, in run
    pybinding, "0.0.0.0", port, ping_timeout=None, ping_interval=None
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/usr/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 965, in __await_impl__
    server = await self._create_server()
  File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server
    % (sa, err.strerror.lower())) from None
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2021-01-23 10:48:05,192 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 10:48:05,210 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-23 10:48:05,218 - INFO     - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-01-23 10:48:13,377 - INFO     - asyncio: poll took 8157.742 ms: 1 events
2021-01-23 10:48:13,512 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-01-23 10:48:15,976 - ERROR    - da_LEDBulb1: Annotation is not class: typing.Tuple[int, int, int]
/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/miio/miio.py:78: UserWarning: Please consider using python-yeelight for more complete support.
  self._device = self._miio_device_class(ip=self._miio_ip, token=self._miio_token)
2021-01-23 10:48:15,982 - ERROR    - wz_Lampe: Annotation is not class: typing.Tuple[int, int, int]
2021-01-23 10:48:15,988 - ERROR    - da_LEDStrip: Annotation is not class: typing.Tuple[int, int, int]
2021-01-23 10:48:21,038 - INFO     - asyncio: poll 8560.349 ms took 1024.851 ms: 1 events
2021-01-23 10:48:21,041 - ERROR    - wz_Lampe: Failed to send_command: info
2021-01-23 10:48:21,043 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 10:48:24,272 - INFO     - asyncio: poll 7527.835 ms took 3226.627 ms: 1 events
2021-01-23 10:48:25,821 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0xb2787cf0>(<Future finis...events.py:396>) created at /opt/fhem/.local/lib/python3.7/site-packages/aiohttp/helpers.py:730> took 0.150 seconds
2021-01-23 10:48:28,576 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: foreach my $fhem_dev (sort keys %main::defs) {  return 1 if(defined($main::defs{$fhem_dev}{TYPE}) && $main::defs{$fhem_dev}{TYPE} eq 'BindingsIo' && $main::defs{$fhem_dev}{IP} eq '192.168.178.77');;}return 0;;
2021-01-23 10:48:32,220 - INFO     - asyncio: <Server sockets=[<socket.socket fd=20, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.178.75', 8301)>]> is serving
2021-01-23 10:48:32,550 - ERROR    - MEDIONRadio_MediaRenderer: Device exists already, do not create a new one
2021-01-23 10:48:35,502 - INFO     - asyncio: poll 4396.718 ms took 1846.021 ms: 1 events
2021-01-23 10:48:38,055 - INFO     - asyncio: poll 2350.539 ms took 2353.404 ms: timeout
2021-01-23 10:48:46,904 - INFO     - asyncio: poll 1116.185 ms took 1118.234 ms: timeout
2021-01-23 10:48:50,037 - INFO     - asyncio: poll 1224.888 ms took 1226.352 ms: timeout
2021-01-23 10:48:52,636 - INFO     - asyncio: poll 8019.931 ms took 2569.495 ms: 1 events
2021-01-23 10:48:58,093 - INFO     - asyncio: poll 5281.370 ms took 5287.355 ms: timeout
2021-01-23 10:49:02,733 - INFO     - asyncio: poll 1944.008 ms took 1947.042 ms: timeout
2021-01-23 10:49:05,885 - INFO     - asyncio: poll 5915.557 ms took 1728.685 ms: 1 events
2021-01-23 10:49:08,128 - INFO     - asyncio: poll 4184.982 ms took 2240.741 ms: 1 events
2021-01-23 10:49:10,075 - INFO     - asyncio: poll 1941.107 ms took 1944.018 ms: timeout
2021-01-23 10:49:12,221 - INFO     - asyncio: poll 8039.871 ms took 2129.886 ms: 1 events
2021-01-23 10:49:13,017 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0xb1ca2510>(<Future finis...events.py:396>) created at /opt/fhem/.local/lib/python3.7/site-packages/aiohttp/helpers.py:730> took 0.223 seconds
2021-01-23 10:49:16,637 - INFO     - asyncio: poll 4566.538 ms took 3073.272 ms: 1 events
2021-01-23 10:49:18,134 - INFO     - asyncio: poll 1395.400 ms took 1398.476 ms: timeout
2021-01-23 10:49:19,621 - INFO     - asyncio: poll 1483.709 ms took 1485.627 ms: timeout
2021-01-23 10:49:24,171 - INFO     - asyncio: poll 4968.793 ms took 4064.211 ms: 1 events
2021-01-23 10:49:26,701 - INFO     - asyncio: poll 2889.573 ms took 1622.028 ms: 1 events
2021-01-23 10:49:29,298 - INFO     - asyncio: poll 1938.179 ms took 1131.451 ms: 1 events
2021-01-23 10:49:30,087 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 10:49:32,929 - INFO     - asyncio: poll 2796.882 ms took 2799.901 ms: timeout
2021-01-23 10:49:34,303 - INFO     - asyncio: poll 2448.867 ms took 1132.489 ms: 1 events
2021-01-23 10:49:35,621 - INFO     - asyncio: poll 1313.844 ms took 1315.410 ms: timeout
2021-01-23 10:49:38,169 - INFO     - asyncio: poll 2103.719 ms took 2106.190 ms: timeout
2021-01-23 10:49:44,306 - INFO     - asyncio: poll 9998.309 ms took 4164.189 ms: 1 events
2021-01-23 10:49:48,226 - INFO     - asyncio: poll 5832.650 ms took 3918.758 ms: 1 events
2021-01-23 10:49:51,622 - INFO     - asyncio: poll 1454.121 ms took 1456.563 ms: timeout
2021-01-23 10:49:53,908 - INFO     - asyncio: poll 6605.631 ms took 2284.706 ms: 1 events
2021-01-23 10:49:58,234 - INFO     - asyncio: poll 4273.525 ms took 4278.375 ms: timeout
2021-01-23 10:50:03,126 - INFO     - asyncio: poll 2935.533 ms took 2939.075 ms: timeout
2021-01-23 10:50:06,262 - INFO     - asyncio: poll 6793.925 ms took 2872.167 ms: 1 events
2021-01-23 10:50:08,297 - INFO     - asyncio: poll 3920.668 ms took 2034.702 ms: 1 events
2021-01-23 10:50:10,186 - INFO     - asyncio: poll 1882.049 ms took 1885.028 ms: timeout
2021-01-23 10:50:18,310 - INFO     - asyncio: poll 8084.886 ms took 8094.198 ms: timeout
2021-01-23 10:50:26,710 - INFO     - asyncio: poll 7215.700 ms took 5799.824 ms: 1 events
2021-01-23 10:50:30,355 - ERROR    - fhempy_og_BT_Huawei_P10_Lite: BleakScanner failed
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/bt_presence/bt_presence.py", line 51, in run_bt_scan
    rssi = rssi[0]
TypeError: 'NoneType' object is not subscriptable
2021-01-23 10:50:33,349 - INFO     - asyncio: poll 2986.924 ms took 2990.104 ms: timeout
2021-01-23 10:50:35,113 - INFO     - asyncio: poll 4794.660 ms took 1536.220 ms: 1 events
2021-01-23 10:50:35,116 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 10:50:36,485 - INFO     - asyncio: poll 3240.502 ms took 1353.901 ms: 1 events
2021-01-23 10:50:38,374 - INFO     - asyncio: poll 1884.535 ms took 1886.989 ms: timeout
2021-01-23 10:50:39,386 - INFO     - asyncio: poll 1977.174 ms took 1008.230 ms: 1 events
2021-01-23 10:50:42,721 - INFO     - asyncio: poll 8246.647 ms took 2348.746 ms: 1 events
2021-01-23 10:50:46,181 - INFO     - asyncio: poll 5888.323 ms took 3449.584 ms: 1 events
2021-01-23 10:50:48,431 - INFO     - asyncio: poll 1822.284 ms took 1633.753 ms: 1 events
2021-01-23 10:50:50,373 - INFO     - asyncio: poll 1749.099 ms took 1751.821 ms: timeout
2021-01-23 10:50:52,637 - INFO     - asyncio: poll 7339.110 ms took 1542.323 ms: 1 events
2021-01-23 10:50:58,440 - INFO     - asyncio: poll 4716.551 ms took 4722.798 ms: timeout
2021-01-23 10:50:58,960 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-01-23 10:51:03,192 - INFO     - asyncio: poll 3119.532 ms took 2779.524 ms: 1 events
2021-01-23 11:49:42,674 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 11:49:42,692 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-23 11:49:42,700 - INFO     - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-01-23 11:51:08,760 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 11:51:08,787 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-23 11:51:08,808 - INFO     - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-01-23 11:51:22,090 - INFO     - asyncio: poll took 13281.643 ms: 1 events
2021-01-23 11:51:22,360 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-01-23 11:51:23,052 - WARNING  - asyncio: Executing <Task pending coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:125> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.7/asyncio/futures.py:348, <TaskWakeupMethWrapper object at 0xb34db3b0>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.101 seconds
2021-01-23 11:51:24,432 - INFO     - asyncio: poll 14099.864 ms took 1130.925 ms: 1 events
2021-01-23 11:51:24,901 - WARNING  - asyncio: Executing <Task pending coro=<ble_presence.Define() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ble_presence/ble_presence.py:287> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xaedaad50>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> cb=[_release_waiter(<Future pendi...events.py:396>)() at /usr/lib/python3.7/asyncio/tasks.py:366] created at /usr/lib/python3.7/asyncio/tasks.py:403> took 0.362 seconds
2021-01-23 11:51:25,277 - ERROR    - da_LEDBulb1: Annotation is not class: typing.Tuple[int, int, int]
/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/miio/miio.py:78: UserWarning: Please consider using python-yeelight for more complete support.
  self._device = self._miio_device_class(ip=self._miio_ip, token=self._miio_token)
2021-01-23 11:51:25,295 - ERROR    - da_LEDStrip: Annotation is not class: typing.Tuple[int, int, int]
2021-01-23 11:51:25,300 - ERROR    - wz_Lampe: Annotation is not class: typing.Tuple[int, int, int]
2021-01-23 11:51:29,188 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0xb2f78670>(<Future finis...events.py:396>) created at /opt/fhem/.local/lib/python3.7/site-packages/aiohttp/helpers.py:730> took 0.151 seconds
2021-01-23 11:51:29,924 - WARNING  - asyncio: Executing <Task pending coro=<discover_ble.runBleScan() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/discover_ble/discover_ble.py:20> wait_for=<Future pending cb=[Deferred.asFuture.<locals>.checkCancel() at /opt/fhem/.local/lib/python3.7/site-packages/twisted/internet/defer.py:786, <TaskWakeupMethWrapper object at 0xb2e82c70>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.393 seconds
2021-01-23 11:51:30,347 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 11:51:30,357 - ERROR    - wz_Lampe: Failed to send_command: info
2021-01-23 11:51:30,612 - ERROR    - AmazfitBipDieter: Failed to scan: Failed to execute management command 'scan'
2021-01-23 11:51:31,592 - INFO     - asyncio: <Server sockets=[<socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.178.75', 8301)>]> is serving
2021-01-23 11:51:37,404 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: foreach my $fhem_dev (sort keys %main::defs) {  return 1 if(defined($main::defs{$fhem_dev}{TYPE}) && $main::defs{$fhem_dev}{TYPE} eq 'BindingsIo' && $main::defs{$fhem_dev}{IP} eq '192.168.178.77');;}return 0;;
2021-01-23 11:51:40,694 - INFO     - asyncio: poll 1277.681 ms took 1279.357 ms: timeout
2021-01-23 11:51:42,781 - INFO     - asyncio: poll 5271.655 ms took 1162.563 ms: 1 events
2021-01-23 11:51:46,395 - INFO     - asyncio: poll 4080.238 ms took 3584.990 ms: 1 events
2021-01-23 11:51:49,941 - INFO     - asyncio: poll 5330.198 ms took 2461.226 ms: 1 events
2021-01-23 11:51:52,576 - INFO     - asyncio: poll 1411.048 ms took 1176.885 ms: 1 events
2021-01-23 11:51:55,252 - INFO     - asyncio: poll 1639.372 ms took 1642.755 ms: timeout
2021-01-23 11:51:56,576 - INFO     - asyncio: poll 1647.962 ms took 1321.413 ms: 1 events
2021-01-23 11:52:00,576 - INFO     - asyncio: poll 1338.070 ms took 1186.566 ms: 1 events
2021-01-23 11:52:03,905 - INFO     - asyncio: poll 4082.518 ms took 1079.609 ms: 1 events
2021-01-23 11:52:06,086 - INFO     - asyncio: poll 2999.904 ms took 2178.180 ms: 1 events
2021-01-23 11:52:08,382 - INFO     - asyncio: poll 1407.801 ms took 1409.480 ms: timeout
2021-01-23 11:52:10,764 - INFO     - asyncio: poll 3193.236 ms took 1131.658 ms: 1 events
2021-01-23 11:52:12,722 - INFO     - asyncio: poll 1387.514 ms took 1283.815 ms: 1 events
2021-01-23 11:52:16,924 - INFO     - asyncio: poll 3691.839 ms took 3695.809 ms: timeout
2021-01-23 11:52:20,771 - INFO     - asyncio: poll 3785.485 ms took 3789.883 ms: timeout
2021-01-23 11:52:22,834 - INFO     - asyncio: poll 2057.841 ms took 2060.202 ms: timeout
2021-01-23 11:52:25,363 - INFO     - asyncio: poll 3324.160 ms took 1755.091 ms: 1 events
2021-01-23 11:52:30,402 - INFO     - asyncio: poll 3406.120 ms took 3410.450 ms: timeout
2021-01-23 11:52:32,844 - INFO     - asyncio: poll 1197.395 ms took 1199.249 ms: timeout
2021-01-23 11:52:35,411 - INFO     - asyncio: poll 4092.926 ms took 2561.239 ms: 1 events
2021-01-23 11:52:35,413 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 11:52:36,945 - INFO     - asyncio: poll 1516.972 ms took 1519.604 ms: timeout
2021-01-23 11:52:38,475 - INFO     - asyncio: poll 1472.247 ms took 1474.564 ms: timeout
2021-01-23 11:52:40,808 - INFO     - asyncio: poll 1676.568 ms took 1678.764 ms: timeout
2021-01-23 11:52:42,852 - INFO     - asyncio: poll 1310.172 ms took 1312.378 ms: timeout
2021-01-23 11:52:44,878 - INFO     - asyncio: poll 4089.778 ms took 2014.050 ms: 1 events
2021-01-23 11:52:46,957 - INFO     - asyncio: poll 2024.061 ms took 2027.110 ms: timeout
2021-01-23 11:52:50,861 - INFO     - asyncio: poll 5853.882 ms took 3851.110 ms: 1 events
2021-01-23 11:52:52,866 - INFO     - asyncio: poll 1999.614 ms took 2002.108 ms: timeout
2021-01-23 11:52:55,197 - INFO     - asyncio: poll 3358.070 ms took 1588.016 ms: 1 events
2021-01-23 11:52:56,970 - INFO     - asyncio: poll 1764.827 ms took 1767.889 ms: timeout
2021-01-23 11:53:00,868 - INFO     - asyncio: poll 3207.413 ms took 3211.294 ms: timeout
2021-01-23 11:53:04,268 - INFO     - asyncio: poll 4091.123 ms took 1376.578 ms: 1 events
2021-01-23 11:53:04,278 - INFO     - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-01-23 11:53:06,987 - INFO     - asyncio: poll 2682.477 ms took 2686.883 ms: timeout
2021-01-23 11:53:08,616 - INFO     - asyncio: poll 1588.169 ms took 1590.663 ms: timeout
2021-01-23 12:11:47,628 - INFO     - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-23 12:11:47,647 - INFO     - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-23 12:11:47,655 - INFO     - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-01-23 12:11:55,747 - INFO     - asyncio: poll took 8091.632 ms: 1 events
2021-01-23 12:11:56,154 - INFO     - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-01-23 12:11:57,751 - ERROR    - da_LEDBulb1: Annotation is not class: typing.Tuple[int, int, int]
/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/miio/miio.py:78: UserWarning: Please consider using python-yeelight for more complete support.
  self._device = self._miio_device_class(ip=self._miio_ip, token=self._miio_token)
2021-01-23 12:11:57,795 - ERROR    - da_LEDStrip: Annotation is not class: typing.Tuple[int, int, int]
2021-01-23 12:11:57,803 - ERROR    - wz_Lampe: Annotation is not class: typing.Tuple[int, int, int]
2021-01-23 12:12:02,159 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0xb07a6b50>(<Future finis...events.py:396>) created at /opt/fhem/.local/lib/python3.7/site-packages/aiohttp/helpers.py:730> took 0.145 seconds
2021-01-23 12:12:02,871 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 12:12:02,873 - ERROR    - wz_Lampe: Failed to send_command: info
2021-01-23 12:12:04,663 - INFO     - asyncio: <Server sockets=[<socket.socket fd=65, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.178.75', 8301)>]> is serving
2021-01-23 12:12:09,564 - INFO     - asyncio: poll 3127.808 ms took 1487.954 ms: 1 events
2021-01-23 12:12:11,208 - ERROR    - fhempy.lib.fhem: Timeout - NO RESPONSE for command: foreach my $fhem_dev (sort keys %main::defs) {  return 1 if(defined($main::defs{$fhem_dev}{TYPE}) && $main::defs{$fhem_dev}{TYPE} eq 'BindingsIo' && $main::defs{$fhem_dev}{IP} eq '192.168.178.77');;}return 0;;
2021-01-23 12:12:16,711 - INFO     - asyncio: poll 8285.946 ms took 3099.476 ms: 1 events
2021-01-23 12:12:21,239 - INFO     - asyncio: poll 5184.458 ms took 4526.505 ms: 1 events
2021-01-23 12:12:25,680 - INFO     - asyncio: poll 4269.239 ms took 2101.030 ms: 1 events
2021-01-23 12:12:28,987 - INFO     - asyncio: poll 1754.730 ms took 1135.124 ms: 1 events
2021-01-23 12:12:30,801 - INFO     - asyncio: poll 1171.533 ms took 1173.290 ms: timeout
2021-01-23 12:12:31,956 - INFO     - asyncio: poll 1150.587 ms took 1152.269 ms: timeout
2021-01-23 12:12:35,966 - INFO     - asyncio: poll 4723.190 ms took 3188.727 ms: 1 events
2021-01-23 12:12:37,502 - INFO     - asyncio: poll 1306.913 ms took 1308.374 ms: timeout
2021-01-23 12:12:39,933 - INFO     - asyncio: poll 4599.478 ms took 2195.380 ms: 1 events
2021-01-23 12:12:40,718 - WARNING  - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0xb11d0ad0>(<Future finis...events.py:396>) created at /opt/fhem/.local/lib/python3.7/site-packages/aiohttp/helpers.py:730> took 0.207 seconds
2021-01-23 12:12:42,338 - INFO     - asyncio: poll 1065.966 ms took 1067.132 ms: timeout
2021-01-23 12:12:43,965 - INFO     - asyncio: poll 3035.859 ms took 1394.224 ms: 1 events
2021-01-23 12:12:52,144 - INFO     - asyncio: poll 6725.541 ms took 6525.585 ms: 1 events
2021-01-23 12:12:59,973 - INFO     - asyncio: poll 9029.868 ms took 7396.150 ms: 1 events
2021-01-23 12:13:01,609 - INFO     - asyncio: poll 1437.134 ms took 1439.538 ms: timeout
2021-01-23 12:13:04,050 - INFO     - asyncio: poll 1016.150 ms took 1019.090 ms: timeout
2021-01-23 12:13:07,642 - INFO     - asyncio: poll 3462.255 ms took 3466.566 ms: timeout
2021-01-23 12:13:08,037 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 12:13:10,688 - INFO     - asyncio: poll 4315.994 ms took 2643.937 ms: 1 events
2021-01-23 12:13:12,363 - INFO     - asyncio: poll 1671.024 ms took 1673.735 ms: timeout
2021-01-23 12:13:17,061 - INFO     - asyncio: poll 9781.509 ms took 4473.182 ms: 1 events
2021-01-23 12:13:22,374 - INFO     - asyncio: poll 5212.829 ms took 5218.281 ms: timeout
2021-01-23 12:13:23,608 - INFO     - asyncio: poll 1013.421 ms took 1015.072 ms: timeout
2021-01-23 12:13:26,706 - INFO     - asyncio: poll 8771.215 ms took 3096.829 ms: 1 events
2021-01-23 12:13:31,974 - INFO     - asyncio: poll 5468.177 ms took 5061.952 ms: 1 events
2021-01-23 12:13:37,656 - INFO     - asyncio: poll 4861.864 ms took 4763.017 ms: 1 events
2021-01-23 12:13:40,880 - INFO     - asyncio: poll 3942.889 ms took 2430.892 ms: 1 events
2021-01-23 12:13:42,394 - INFO     - asyncio: poll 1510.947 ms took 1513.606 ms: timeout
2021-01-23 12:13:47,659 - INFO     - asyncio: poll 9745.567 ms took 4999.245 ms: 1 events
2021-01-23 12:13:52,411 - INFO     - asyncio: poll 4743.321 ms took 4748.838 ms: timeout
2021-01-23 12:13:56,006 - INFO     - asyncio: poll 8594.990 ms took 2181.410 ms: 1 events
2021-01-23 12:14:00,937 - INFO     - asyncio: poll 6402.345 ms took 4919.760 ms: 1 events
2021-01-23 12:14:02,421 - INFO     - asyncio: poll 1480.987 ms took 1482.487 ms: timeout
2021-01-23 12:14:04,175 - INFO     - asyncio: poll 1276.969 ms took 1279.384 ms: timeout
2021-01-23 12:14:08,050 - INFO     - asyncio: poll 3690.268 ms took 3695.788 ms: timeout
2021-01-23 12:14:11,480 - INFO     - asyncio: poll 3810.000 ms took 2860.034 ms: 1 events
2021-01-23 12:14:13,062 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 12:14:21,062 - INFO     - asyncio: poll 9364.533 ms took 7983.004 ms: 1 events
2021-01-23 12:14:22,446 - INFO     - asyncio: poll 1288.234 ms took 1290.384 ms: timeout
2021-01-23 12:14:26,706 - INFO     - asyncio: poll 8846.940 ms took 3096.992 ms: 1 events
2021-01-23 12:14:28,729 - INFO     - asyncio: poll 5541.767 ms took 1815.073 ms: 1 events
2021-01-23 12:14:32,460 - INFO     - asyncio: poll 3676.503 ms took 3680.783 ms: timeout
2021-01-23 12:14:35,970 - INFO     - asyncio: poll 5653.283 ms took 3053.142 ms: 1 events
2021-01-23 12:14:38,574 - INFO     - asyncio: poll 2359.152 ms took 2362.460 ms: timeout
2021-01-23 12:14:41,232 - INFO     - asyncio: poll 3773.651 ms took 2534.320 ms: 1 events
2021-01-23 12:14:52,488 - INFO     - asyncio: poll 9806.220 ms took 9816.915 ms: timeout
2021-01-23 12:14:54,609 - INFO     - asyncio: poll 1926.275 ms took 1929.061 ms: timeout
2021-01-23 12:14:59,212 - INFO     - asyncio: poll 7888.216 ms took 4601.547 ms: 1 events
2021-01-23 12:15:02,502 - INFO     - asyncio: poll 3225.982 ms took 3229.346 ms: timeout
2021-01-23 12:15:04,352 - INFO     - asyncio: poll 1421.461 ms took 1423.499 ms: timeout
2021-01-23 12:15:11,423 - INFO     - asyncio: poll 6826.405 ms took 6833.913 ms: timeout
2021-01-23 12:15:14,541 - INFO     - asyncio: poll 9442.717 ms took 1459.757 ms: 1 events
2021-01-23 12:15:18,087 - INFO     - asyncio: poll 7981.959 ms took 3545.675 ms: 1 events
2021-01-23 12:15:18,089 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 12:15:22,528 - INFO     - asyncio: poll 4420.709 ms took 4425.486 ms: timeout
2021-01-23 12:15:26,612 - INFO     - asyncio: poll 3896.430 ms took 3902.074 ms: timeout
2021-01-23 12:15:32,540 - INFO     - asyncio: poll 5620.404 ms took 5626.681 ms: timeout
2021-01-23 12:15:36,357 - INFO     - asyncio: poll 8655.755 ms took 3402.140 ms: 1 events
2021-01-23 12:15:37,713 - INFO     - asyncio: poll 5193.605 ms took 1295.844 ms: 1 events
2021-01-23 12:15:41,615 - INFO     - asyncio: poll 3894.843 ms took 3898.988 ms: timeout
2021-01-23 12:15:44,382 - INFO     - asyncio: poll 9830.001 ms took 1654.793 ms: 1 events
2021-01-23 12:15:47,717 - INFO     - asyncio: poll 7816.386 ms took 2976.274 ms: 1 events
2021-01-23 12:15:51,130 - INFO     - asyncio: poll 4838.463 ms took 3411.396 ms: 1 events
2021-01-23 12:15:52,560 - INFO     - asyncio: poll 1391.533 ms took 1394.479 ms: timeout
2021-01-23 12:15:57,612 - INFO     - asyncio: poll 4871.014 ms took 4876.972 ms: timeout
2021-01-23 12:16:01,856 - INFO     - asyncio: poll 4957.000 ms took 4242.441 ms: 1 events
2021-01-23 12:16:04,590 - INFO     - asyncio: poll 1637.441 ms took 1640.762 ms: timeout
2021-01-23 12:16:06,014 - INFO     - asyncio: poll 7753.993 ms took 1184.319 ms: 1 events
2021-01-23 12:16:12,587 - INFO     - asyncio: poll 6255.854 ms took 6258.433 ms: timeout
2021-01-23 12:16:14,604 - INFO     - asyncio: poll 1848.485 ms took 1850.965 ms: timeout
2021-01-23 12:16:17,739 - INFO     - asyncio: poll 3202.245 ms took 2839.057 ms: 1 events
2021-01-23 12:16:22,604 - INFO     - asyncio: poll 3698.043 ms took 3703.812 ms: timeout
2021-01-23 12:16:23,115 - ERROR    - wz_Lampe: Failed to send_command: status
2021-01-23 12:16:26,713 - INFO     - asyncio: poll 7475.495 ms took 3581.998 ms: 1 events


Viele Grüße
Dieter
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Hi,

kannst du bitte mal auf der FHEM Instanz folgendes Command ausführen:
sudo -u fhem pip3 install --upgrade fhempy

Post dann bitte die Ausgabe falls ein Fehler auftritt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

RockFan

sieht nicht nach einem Fehler aus:


Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: fhempy in /opt/fhem/.local/lib/python3.7/site-packages (0.1.25)
Requirement already satisfied, skipping upgrade: zeroconf>=0.28.6 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (0.28.7)
Requirement already satisfied, skipping upgrade: cryptography>=3.3.1 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (3.3.1)
Requirement already satisfied, skipping upgrade: websockets>=8.1 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (8.1)
Requirement already satisfied, skipping upgrade: importlib-metadata>=3.3.0 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (3.3.0)
Requirement already satisfied, skipping upgrade: ifaddr>=0.1.7 in /opt/fhem/.local/lib/python3.7/site-packages (from zeroconf>=0.28.6->fhempy) (0.1.7)
Requirement already satisfied, skipping upgrade: cffi>=1.12 in /opt/fhem/.local/lib/python3.7/site-packages (from cryptography>=3.3.1->fhempy) (1.14.4)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography>=3.3.1->fhempy) (1.12.0)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in /opt/fhem/.local/lib/python3.7/site-packages (from importlib-metadata>=3.3.0->fhempy) (3.4.0)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.4; python_version < "3.8" in /opt/fhem/.local/lib/python3.7/site-packages (from importlib-metadata>=3.3.0->fhempy) (3.7.4.3)
Requirement already satisfied, skipping upgrade: pycparser in /opt/fhem/.local/lib/python3.7/site-packages (from cffi>=1.12->cryptography>=3.3.1->fhempy) (2.20)


... oder hätte ich es ausführen sollen, nachdem ich den nicht funktionierenden Update-Versuch gemacht habe? Ich bin ja momentan wieder auf 0.1.22 auf der FHEM Instanz.
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Das ist eigenartig, wenn die Installation 0.1.25 sagt, dürfte im BindingsIo nicht 0.1.22 stehen.

Wenn du einen FHEM Neustart machst, steht trotzdem 0.1.22?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

RockFan

Habe gerade nochmal einen Neustart von FHEM gemacht. Jetzt steht 0.1.25 im BindingsIO. Ich hätte wohl nach

sudo -u fhem pip3 install --upgrade fhempy

neu starten sollen  :-[

Ich hatte nur nach meinen Updateversuchen über BindingsIo in FHEM neugestartet. Dann kann ich jetzt auch im anderen Thread zum Yeelight rückmelden
(https://forum.fhem.de/index.php/topic,115427.msg1125596.html#msg1125596)

Viele Grüße
Dieter
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

RockFan

Hallo Dominik,

ich habe nun noch einen weiteren Raspi als Peer eingebunden (um alle Räume mit Bluetooth abzudecken). Auf diesem ist Openmediavault installiert (vielleicht spielt diese Info eine Rolle). Es ist mir mittlerweile ein wenig peinlich, da ich schon wieder mit einer Frage komme, die wahrscheinlich eher durch meine unzureichenden Linuxkenntnisse aufkommt.

In der Konsole arbeite ich auch hier mit dem User pi und bin wie bei dem anderen Peer vorgegangen. Jetzt habe ich hier wieder ein Problem mit dem Finden von bluepy-helper. Natürlich habe ich auch hier die Installation mit

sudo pip3 install --upgrade bluepy

angestoßen.

Ich bekomme hier mittlerweile die gleiche Rückmeldung, wie auf dem anderen Peer, wenn ich es erneut ausführe:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: bluepy in /usr/local/lib/python3.7/dist-packages (1.3.0)


Aber leider wird kein bluepy-helper gefunden. Ich habe nun eine ganze Weile versucht etwas zu finden und es mit dem anderen Peer zu vergleichen. Soweit ich das verstehe müsste bluepy unterhalb von site-packages zu finden sein.

Meine Suche mit

sudo find /. -name bluepy

liefert aber nur dist-packages

find: '/./proc/698/task/23285': No such file or directory
find: '/./proc/23262/task/23262/net': Invalid argument
find: '/./proc/23262/net': Invalid argument
/./usr/local/lib/python3.7/dist-packages/bluepy


Irgendwie stecke ich hier fest. Hast du noch eine Idee, was ich machen kann?

Danke schon mal  :)

Und: es eilt nicht!

Viele Grüße
Dieter
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Hi,
damit findest du es:
pi@raspberry39:~ $ find .local/ -name bluepy
.local/lib/python3.7/site-packages/bluepy
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

RockFan

Leider nein. Kein Ergebnis  :'(
Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Achso, moment, du hast bluepy mit sudo installiert. Das musst ohne sudo installieren.

Btw, installiert sich das noch immer nicht selbst? Sollte eigentlich wenn du fhempy startest und dann ein define in FHEM machst.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

RockFan

Zitat von: dominik am 27 Januar 2021, 23:29:20
Achso, moment, du hast bluepy mit sudo installiert. Das musst ohne sudo installieren.

Btw, installiert sich das noch immer nicht selbst? Sollte eigentlich wenn du fhempy startest und dann ein define in FHEM machst.

fhempy selbst ist schon ein paar Tage länger installiert (da war ich etwas ungenau in meiner Beschreibung). Mittelerweile weiß ich schon selbst nicht mehr genau, was ich wann genau gemacht habe  :-[

Die bluepy-Installation als sudo habe ich wieder deinstalliert und dann ohne sudo neu installiert. Dadurch funktiniert jetzt auch der find und damit das setcap für die Berechtigung :).
Der Helper wurde hier gefunden:

/home/pi/.local/lib/python3.7/site-packages/bluepy/bluepy-helper


Ich muss aber noch eine andere Schieflage erzeugt haben. Meine Smartwatch wird leider nicht gefunden.
Im syslog steht auch folgende Fehlermeldung:

Jan 28 00:00:28 MediaNAS fhempy[10656]: 2021-01-28 00:00:28,371 - ERROR    - AmazfitBipDieter: Failed to scan: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/bluepy/bluepy-helper': '/usr/local/lib/python3.7/dist-packages/bluepy/bluepy-helper'

Raspbian (Buster) auf Raspberry Pi 4 /  CUL + RFXTRX + TCM / FS20, FHT 80B, S300TH, Intertechno, DMX, Milight, EnOcean, Homematic, AMAD, Home Connect, MiSmartHome, Yeelight, ...

dominik

Hi,
der Fehler ist eigenartig. Lässt du fhempy als root laufen?

fhempy sollte mit pi installiert und ausgeführt werden. root/sudo ist nicht notwendig.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik