fhempy: Nespresso

Begonnen von dominik, 14 Januar 2017, 20:31:16

Vorheriges Thema - Nächstes Thema

dominik

#30
Ich habe soeben ein größeres Update von fhem_pythonbinding (neuer Name fhempy, ist kürzer zu tippen) gemacht.

Du kannst am Pi Zero /home/pi/fhem_pythonbinding löschen und auch /etc/systemd/system/fhem_pythonbinding.service. Ab sofort gibt es nämlich fhempy als pip package und man erspart sich somit das mühsame git update.
https://github.com/dominikkarall/fhem_pythonbinding#run-python-modules-on-remote-python-peers-eg-extend-bluetooth-range

Kurz zusammengefasst läuft die Installation nun mit
sudo pip3 install fhempy
curl -sL https://raw.githubusercontent.com/dominikkarall/fhem_pythonbinding/master/install_systemd_fhempy.sh | sudo -E bash -


Weitere Neuerung:
- Update des Remote Peers kann nun über das BindingsIo Devie durchgeführt werden (set remote_bindingio update)
- Version vom Remote Peer wird ebenfalls im BindingsIo Device angezeigt
- Hilfetexte bei cmds werden nun supported, z.B. steht dann bei "brew" im Webinterface wie die Parameter lauten :)
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ReneH87

Super, Update hat problemlos funktioniert  :) ich teste und werde berichten...

kleiner Hinweis: in deinem Post unten fehlt ein "curl -sL" vor dem zweiten Befehl

dominik

Update in FHEM Connect (gassistant) ist online. Du kannst jetzt ohne homebridgeMapping testen :)

Danke für den Hinweis, ist korrigiert.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ReneH87

Danke, auch das hat geklappt :)

ReneH87

Seit der kompletten Neuinstallation des Remote Raspi krieg ich auch nespresso_ble nicht mehr zum Laufen:

Mär 24 00:57:25 fhempy fhempy[591]: 2021-03-24 00:57:25,580 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Mär 24 00:57:25 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:57:25 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:57:25 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:57:25 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:57:25 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:57:25 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:57:25 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:57:25 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:57:25 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:57:25 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:58:00 fhempy fhempy[591]: 2021-03-24 00:58:00,665 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Mär 24 00:58:00 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mär 24 00:58:00 fhempy fhempy[591]:     wait_for_response=True,
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mär 24 00:58:00 fhempy fhempy[591]:     wait_for_response=wait_for_response)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mär 24 00:58:00 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mär 24 00:58:00 fhempy fhempy[591]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mär 24 00:58:00 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:58:00 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:58:00 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:58:00 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:58:00 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:58:00 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:58:00 fhempy fhempy[591]: During handling of the above exception, another exception occurred:
Mär 24 00:58:00 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:58:00 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:58:00 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:58:00 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:58:00 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:58:00 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:58:00 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:58:35 fhempy fhempy[591]: 2021-03-24 00:58:35,751 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Mär 24 00:58:35 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mär 24 00:58:35 fhempy fhempy[591]:     wait_for_response=True,
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mär 24 00:58:35 fhempy fhempy[591]:     wait_for_response=wait_for_response)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mär 24 00:58:35 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mär 24 00:58:35 fhempy fhempy[591]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mär 24 00:58:35 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:58:35 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:58:35 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:58:35 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:58:35 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:58:35 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:58:35 fhempy fhempy[591]: During handling of the above exception, another exception occurred:
Mär 24 00:58:35 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mär 24 00:58:35 fhempy fhempy[591]:     wait_for_response=True,
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mär 24 00:58:35 fhempy fhempy[591]:     wait_for_response=wait_for_response)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mär 24 00:58:35 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mär 24 00:58:35 fhempy fhempy[591]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mär 24 00:58:35 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:58:35 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:58:35 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:58:35 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:58:35 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:58:35 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:58:35 fhempy fhempy[591]: During handling of the above exception, another exception occurred:
Mär 24 00:58:35 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:58:35 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:58:35 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:58:35 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:58:35 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:58:35 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:58:35 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:59:10 fhempy fhempy[591]: 2021-03-24 00:59:10,831 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Mär 24 00:59:10 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mär 24 00:59:10 fhempy fhempy[591]:     wait_for_response=True,
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mär 24 00:59:10 fhempy fhempy[591]:     wait_for_response=wait_for_response)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mär 24 00:59:10 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mär 24 00:59:10 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:59:10 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:59:10 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:59:10 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:59:10 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:59:10 fhempy fhempy[591]: During handling of the above exception, another exception occurred:
Mär 24 00:59:10 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mär 24 00:59:10 fhempy fhempy[591]:     wait_for_response=True,
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mär 24 00:59:10 fhempy fhempy[591]:     wait_for_response=wait_for_response)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mär 24 00:59:10 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mär 24 00:59:10 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:59:10 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:59:10 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:59:10 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:59:10 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:59:10 fhempy fhempy[591]: During handling of the above exception, another exception occurred:
Mär 24 00:59:10 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mär 24 00:59:10 fhempy fhempy[591]:     wait_for_response=True,
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mär 24 00:59:10 fhempy fhempy[591]:     wait_for_response=wait_for_response)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mär 24 00:59:10 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mär 24 00:59:10 fhempy fhempy[591]:     return func(self, *args, **kwargs)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:59:10 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:59:10 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:59:10 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:59:10 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:59:10 fhempy fhempy[591]: During handling of the above exception, another exception occurred:
Mär 24 00:59:10 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mär 24 00:59:10 fhempy fhempy[591]:     self.sendline(cmd)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mär 24 00:59:10 fhempy fhempy[591]:     next(self.gen)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mär 24 00:59:10 fhempy fhempy[591]:     self.wait(event, timeout)
Mär 24 00:59:10 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mär 24 00:59:10 fhempy fhempy[591]:     raise NotificationTimeout()
Mär 24 00:59:10 fhempy fhempy[591]: pygatt.exceptions.NotificationTimeout: None
Mär 24 00:59:15 fhempy fhempy[591]: 2021-03-24 00:59:15,859 - ERROR    - nespresso_ble: Failed to send auth code, more than 3 times
Mär 24 00:59:15 fhempy fhempy[591]: 2021-03-24 00:59:15,868 - ERROR    - Esszimmer.Nespresso: Failed to update status
Mär 24 00:59:15 fhempy fhempy[591]: Traceback (most recent call last):
Mär 24 00:59:15 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso_ble.py", line 144, in blocking_update_status
Mär 24 00:59:15 fhempy fhempy[591]:     self.sensors_data = self.nespressodetect.get_sensor_data()
Mär 24 00:59:15 fhempy fhempy[591]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 316, in get_sensor_data
Mär 24 00:59:15 fhempy fhempy[591]:     data = self.dev.char_read_handle(
Mär 24 00:59:15 fhempy fhempy[591]: AttributeError: 'NoneType' object has no attribute 'char_read_handle'


MAC & Auth Code haben vorher genau so funktioniert und der Auth Code ändert sich ja auch nicht einfach so oder?

dominik

Der AuthCode ändert sich meines Wissens nur, wenn du die Maschine mit einem neuen WLAN verbindest.

Prüf bitte sicherheitshalber den AutoCode nochmals. Vielleicht hat die Nespresso App auch irgendeine Funktion, dass der AuthCode mal geändert wird. Bei mir ist es aber noch nicht passiert.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

ReneH87

Klappt leider weiterhin nicht:

Mai 14 01:03:56 fhempy fhempy[28942]: pygatt.exceptions.NotificationTimeout: None
Mai 14 01:03:56 fhempy fhempy[28942]: During handling of the above exception, another exception occurred:
Mai 14 01:03:56 fhempy fhempy[28942]: Traceback (most recent call last):
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 289, in connectnespresso
Mai 14 01:03:56 fhempy fhempy[28942]:     wait_for_response=True,
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Mai 14 01:03:56 fhempy fhempy[28942]:     wait_for_response=wait_for_response)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Mai 14 01:03:56 fhempy fhempy[28942]:     return func(self, *args, **kwargs)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Mai 14 01:03:56 fhempy fhempy[28942]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Mai 14 01:03:56 fhempy fhempy[28942]:     return func(self, *args, **kwargs)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mai 14 01:03:56 fhempy fhempy[28942]:     self.sendline(cmd)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mai 14 01:03:56 fhempy fhempy[28942]:     next(self.gen)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mai 14 01:03:56 fhempy fhempy[28942]:     self.wait(event, timeout)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mai 14 01:03:56 fhempy fhempy[28942]:     raise NotificationTimeout()
Mai 14 01:03:56 fhempy fhempy[28942]: pygatt.exceptions.NotificationTimeout: None
Mai 14 01:03:56 fhempy fhempy[28942]: During handling of the above exception, another exception occurred:
Mai 14 01:03:56 fhempy fhempy[28942]: Traceback (most recent call last):
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Mai 14 01:03:56 fhempy fhempy[28942]:     self.sendline(cmd)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Mai 14 01:03:56 fhempy fhempy[28942]:     next(self.gen)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Mai 14 01:03:56 fhempy fhempy[28942]:     self.wait(event, timeout)
Mai 14 01:03:56 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Mai 14 01:03:56 fhempy fhempy[28942]:     raise NotificationTimeout()
Mai 14 01:03:56 fhempy fhempy[28942]: pygatt.exceptions.NotificationTimeout: None
Mai 14 01:04:06 fhempy fhempy[28942]: 2021-05-14 01:04:06,145 - ERROR    - nespresso_ble: Failed to send auth code, more than 3 times
Mai 14 01:04:06 fhempy fhempy[28942]: 2021-05-14 01:04:06,155 - ERROR    - Esszimmer.Nespresso: Failed to update status
Mai 14 01:04:06 fhempy fhempy[28942]: Traceback (most recent call last):
Mai 14 01:04:06 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso_ble.py", line 144, in blocking_update_status
Mai 14 01:04:06 fhempy fhempy[28942]:     self.sensors_data = self.nespressodetect.get_sensor_data()
Mai 14 01:04:06 fhempy fhempy[28942]:   File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/nespresso_ble/nespresso.py", line 316, in get_sensor_data
Mai 14 01:04:06 fhempy fhempy[28942]:     data = self.dev.char_read_handle(
Mai 14 01:04:06 fhempy fhempy[28942]: AttributeError: 'NoneType' object has no attribute 'char_read_handle'


AuthCode hab ich überprüft, ist immer noch der gleiche. System ist aktuell, hab auch schon mal alles neu installiert incl. OS. Hast du noch eine Idee?

ReneH87

So nachdem ich mir einen Wolf gesucht hab, bin ich endlich fündig geworden:

https://www.raspberrypi.org/forums/viewtopic.php?t=303483
https://github.com/raspberrypi/linux/issues/4139

Ein Kernel-Update hat die Bluetooth Funktion von raspi zerschossen. Hab einfach mit "sudo rpi-update" das neueste (5.10.36+) installiert und nun funktioniert alles wieder.