FHEM Forum

FHEM - Hausautomations-Systeme => Sonstige Systeme => Thema gestartet von: dominik am 14 Januar 2017, 20:31:16

Titel: fhempy: Nespresso
Beitrag von: dominik am 14 Januar 2017, 20:31:16
Mittlerweile gibt es ein Modul für Nespresso Bluetooth Maschinen:
https://github.com/dominikkarall/fhem_pythonbinding/blob/master/README.md

-- ab hier der alte Text --
Hallo zusammen,

es gibt ja nun auch Nespresso Maschinen mit Bluetooth Anbindung. Glücklicherweise habe ich eine solche seit Weihnachten zum Spielen - und Kaffee trinken ;)

Hat schon jemand versucht die Maschine per gatttool in FHEM anzubinden? Im Internet konnte ich nichts dazu finden. Meine bisherigen Code Recherchen haben ergeben, dass man die Werte über gatttool erst lesen kann, wenn man eine "verschlüsselte" Nespresso Club ID an die Maschine schickt. Leider hatte ich da bis jetzt noch keinen Erfolg.

Sollte da schon jemand weiter gekommen sein, würde ich mich über einen Austausch freuen.

Btw, ich denke es macht Sinn im Forum unter "Hausautomations-Systeme" auch einen Bereich "Bluetooth" zu eröffnen da es immer mehr solche Devices gibt.

Gruß,
Dominik
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 04 Oktober 2020, 15:27:28
Hi,

nachdem ich gerade wieder an der Nespresso Bluetooth Maschine bastel, wollte ich mal fragen ob sich damit schon jemand beschäftigt hat?

Ich habe folgendes die letzten Tage gefunden:
https://github.com/tikismoke/home-assistant-nespressoble

Ich habe es bei mir noch nicht getestet, muss noch den Auth Key ausfindig machen. Im Nespresso Code konnte ich sehen, dass der Auth Key eine Zufallszahl ist die beim ersten Verbinden mit der Kaffeemaschine generiert wird. Die Maschine laesst sich dann nur mit diesem Code steuern. Der Code ist auch im eigenen Nespresso Konto hinterlegt. Meine Ueberlegung war schon den Auth Code selbst zu schreiben wenn die Kaffeemaschine noch nicht verbunden ist, dann ginge jedoch keine Nespresso App.
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 04 Oktober 2020, 22:56:43
So, ich habe gerade erfolgreich getestet...hier das Modul fuer alle die auch eine Bluetooth Nespresso Maschine haben:
https://github.com/dominikkarall/fhem_pythonbinding

Ich habe mit dieser getestet:
https://www.nespresso.com/de/de/expert-machines-range
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 16 November 2020, 15:43:27
Ich hab mir jetzt auch mal eine Nespresso Expert gegönnt, die im Laufe der Woche kommen sollte.  ;D

Wie hast du das ganze technisch gelöst? Einfach Bluetooth Stick an den Raspberry? Wie ist bei dir die Reichweite bzw. wie weit sind Kaffeemaschine und Stick voneinander entfernt?
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 16 November 2020, 20:09:35
Zitat von: ReneH87 am 16 November 2020, 15:43:27
Ich hab mir jetzt auch mal eine Nespresso Expert gegönnt, die im Laufe der Woche kommen sollte.  ;D

Wie hast du das ganze technisch gelöst? Einfach Bluetooth Stick an den Raspberry? Wie ist bei dir die Reichweite bzw. wie weit sind Kaffeemaschine und Stick voneinander entfernt?

Ich habe einen RPi mit onboard Bluetooth, der funkt zur Maschine. Sind aktuell ca. 5-6m dazwischen, jedoch ohne Wände. Bei mir macht nur der RPi mit Bluetooth manchmal zicken, daher habe ich das ble_reset alle 24h am Laufen.

Du musst einmalig den Token auslesen, das habe ich im Readme beschrieben, danach kannst du schon Kaffee machen und dich über den aktuellen Kapselstand informieren :)
Hier die Readings
fault 0 2020-11-16 12:05:19
always_1 1 2020-10-04 23:25:59
awake 0 2020-11-16 12:15:27
caps_number 8 2020-11-16 12:05:19
capsule_engaged 0 2020-11-05 12:52:53
capsule_mechanism_jammed 0 2020-10-04 23:25:59
descaling_counter 0 2020-10-04 23:25:59
descaling_needed 1 2020-10-04 23:25:59
device_name Expert_FD3910D8XXXX 2020-11-16 19:26:25
manufacturer Expert_FD3910D8XXXX 2020-11-16 19:26:25
serial_nr fd:39:10:d8:XX:XX 2020-10-04 23:25:59
sleeping 1 2020-11-16 12:15:27
slider 1 2020-11-16 12:05:19
state online 2020-11-16 19:26:25
tray_open_tray_sensor_full 0 2020-11-05 12:47:49
tray_sensor_during_brewing 0 2020-10-04 23:25:59
water_engadged 0 2020-11-05 12:52:53
water_hardness 4 2020-10-19 10:00:32
water_is_empty 0 2020-10-04 23:25:59
water_temp_low 1 2020-11-16 12:15:27
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 16 November 2020, 22:34:20
Danke  :)

Bin allerdings noch etwas unschlüssig, wie ich das am besten realisiere. fhem läuft bei mir auf einem Synology NAS im docker Container. So wie ich das sehe, hätte ich folgende Möglichkeiten:

Was mir aber noch nicht ganz klar ist: wo definiere ich bei deinem Code wie der BT Adapter erreichbar ist? Müsste ja irgendwo ein Device /dev/... geben o.ä.?
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 16 November 2020, 23:32:02
Das ist wahrscheinlich RPi die bessere Variante. Kannst ja einen RPi Zero nutzen.

Als BT Adapter wird hci0 verwendet, das habe ich noch nicht konfigurierbar gemacht.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 18 November 2020, 21:30:13
Zitat von: dominik am 16 November 2020, 23:32:02
Das ist wahrscheinlich RPi die bessere Variante. Kannst ja einen RPi Zero nutzen.

Als BT Adapter wird hci0 verwendet, das habe ich noch nicht konfigurierbar gemacht.

Warte noch sehnsüchtig, dass die Kaffeemaschine kommt. Morgen sollte es soweit sein  ;D

Klappt eigentlich auch die Integration in Google Home mit gassistant? So nach dem Motto "Ok google, mach mir einen Kaffee"?  8)
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 21 November 2020, 15:44:48
Sodele, Kaffeemaschine ist gekommen, raspi zero auch  :)

Habe dein Script auch eingebunden und dabei ist mir folgendes aufgefallen:
- "git clone https://github.com/dominikkarall/fhem_pythonbinding.git" sollte aus dem Home Verzeichnis aus aufgerufen werden. Ich weiß, macht man normal, aber ich war gerade in /tmp und hab dann erst im Service gesehen, dass du auf das Skript in /home verweist.
- pytest musste ich ebenfalls installieren, sonst kam "ModuleNotFoundError: No module named 'importlib_metadata'"

Beim Verbindungsversuch von fhem kommt jetzt allerdings folgende Fehlermeldung:

Nov 21 14:42:43 raspberrypi systemd[1]: Started FHEM PythonBinding.
Nov 21 14:42:47 raspberrypi python3[652]: 2020-11-21 14:42:47,665 - INFO     - lib.fhem_pythonbinding: Starting pythonbinding...
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,675 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,770 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,781 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,811 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,822 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,833 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,843 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,854 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,865 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,876 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,887 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,898 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,909 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,920 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,931 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:02 raspberrypi python3[652]: 2020-11-21 14:43:02,950 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 21 14:43:03 raspberrypi python3[652]: 2020-11-21 14:43:03,040 - ERROR    - lib.fhem_pythonbinding: Connection closed error
Nov 21 14:43:03 raspberrypi python3[652]: Traceback (most recent call last):
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Nov 21 14:43:03 raspberrypi python3[652]:     message = await self.read_message()
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Nov 21 14:43:03 raspberrypi python3[652]:     frame = await self.read_data_frame(max_size=self.max_size)
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Nov 21 14:43:03 raspberrypi python3[652]:     frame = await self.read_frame(max_size)
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Nov 21 14:43:03 raspberrypi python3[652]:     extensions=self.extensions,
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Nov 21 14:43:03 raspberrypi python3[652]:     data = await reader(2)
Nov 21 14:43:03 raspberrypi python3[652]:   File "/usr/lib/python3.7/asyncio/streams.py", line 677, in readexactly
Nov 21 14:43:03 raspberrypi python3[652]:     raise IncompleteReadError(incomplete, n)
Nov 21 14:43:03 raspberrypi python3[652]: asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
Nov 21 14:43:03 raspberrypi python3[652]: The above exception was the direct cause of the following exception:
Nov 21 14:43:03 raspberrypi python3[652]: Traceback (most recent call last):
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/fhem_pythonbinding.py", line 40, in pybinding
Nov 21 14:43:03 raspberrypi python3[652]:     async for message in websocket:
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Nov 21 14:43:03 raspberrypi python3[652]:     yield await self.recv()
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Nov 21 14:43:03 raspberrypi python3[652]:     await self.ensure_open()
Nov 21 14:43:03 raspberrypi python3[652]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Nov 21 14:43:03 raspberrypi python3[652]:     raise self.connection_closed_exc()
Nov 21 14:43:03 raspberrypi python3[652]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Nov 21 14:43:03 raspberrypi python3[652]: 2020-11-21 14:43:03,070 - INFO     - lib.fhem_pythonbinding: Restart binding
Nov 21 14:43:03 raspberrypi systemd[1]: fhem_pythonbinding.service: Main process exited, code=exited, status=1/FAILURE
Nov 21 14:43:03 raspberrypi systemd[1]: fhem_pythonbinding.service: Failed with result 'exit-code'.
Nov 21 14:43:03 raspberrypi systemd[1]: fhem_pythonbinding.service: Service RestartSec=100ms expired, scheduling restart.
Nov 21 14:43:03 raspberrypi systemd[1]: fhem_pythonbinding.service: Scheduled restart job, restart counter is at 1.
Nov 21 14:43:03 raspberrypi systemd[1]: Stopped FHEM PythonBinding.


Wäre cool, wenn du dir das mal ansehen könntest  ;D
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 21 November 2020, 17:28:42
Hi,

pytest sollte eigentlich nicht benötigt werden. Kannst du sicherheitshalber bitte auch noch ein
sudo pip3 install importlib_metadata
machen?

Wie hast du das Device in FHEM angelegt?
define remote_pybinding BindingsIo REMOTE_IP:15733 Python
Hast du vielleicht mehrere solche Devices angelegt? Wenn ja, am besten mal alle löschen.
Falls du schon ein Device dem remote_pybinding IODev zugewiesen hast, entferne dieses auch vorerst.

Dann starte nochmals fhem_pythonbinding am Remote neu. Da sollte dann im Log nur "Starting fhem_pythonbindg..." stehen, sonst nichts.
Nun leg nochmals mit define das remote_pybinding an und schau was im Log kommt.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 21 November 2020, 21:09:05
Danke, jetzt klappts. Hatte zuerst die Devices in fhem angelegt und erst danach gemerkt, dass das Script auf dem raspi noch nicht lief. Dann alles in fhem gelöscht, nochmal neu eingerichtet und schon ging es  :)

Der "descaling_counter" zählt nicht wirklich runter oder ist das bei dir auch?
descaling_counter 65535

Und wie ist das eigentlich mit Standby, kann man die Maschine irgendwie auch per BT wecken?

Google Home Integration hat nach einigem Probieren geklappt (genericDeviceType: coffee_maker):
homebridgeMapping:
{
  "CookCurrentCookingMode": {
    "fixedValue": "BREW"
  },
  "CookCurrentFoodPreset": {
    "fixedValue": "Kaffee"
  },
  "CookCurrentFoodQuantity": {
    "fixedValue": 1
  },
  "CookCurrentFoodUnit": {
    "fixedValue": "NO_UNITS"
  },
  "SimpleCook": {
    "supportedCookingModes": ["BREW"],
    "foodPresets": [{
      "food_preset_name": ["ristretto"],
      "supported_units": ["NO_UNITS"]
    },{
      "food_preset_name": ["espresso"],
      "supported_units": ["NO_UNITS"]
    },{
      "food_preset_name": ["lungo", "kaffee"],
      "supported_units": ["NO_UNITS"]
    },{
      "food_preset_name": ["americano"],
      "supported_units": ["NO_UNITS"]
    },{
      "food_preset_name": ["hotwater", "tee"],
      "supported_units": ["NO_UNITS"]
    }],
    "params": {
      "foodPreset": {
        "cmds": ["ristretto:brew ristretto medium","espresso:brew espresso medium","lungo:brew lungo medium",
"americano:brew americano medium","hotwater:brew hotwater high"]
      }
    }
  }
}


Zudem haben im nespresso Script die Flags für Americano und Heißwasser gefehlt:


                if temp == "medium":
                    command += "00"
                elif temp == "low":
                    command += "01"
                elif temp == "high":
                    command += "02"
                else:
                    command += "00"

                if volume == "ristretto":
                    command += "00"
                elif volume == "espresso":
                    command += "01"
                elif volume == "lungo":
                    command += "02"
                elif volume == "hotwater":
                    command += "04"
                elif volume == "americano":
                    command += "05"
                else:
                    command += "00"
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 22 November 2020, 00:12:01
Super :)

Danke für die Info wegen Hotwater und Americano, nehme ich beim nächsten Update mit auf.
Die Google Home Integration nehme ich auch gleich in FHEM Connect mit auf, damit man dann kein homebridgeMapping mehr benötigt. Danke!

Mein descaling_counter steht schon mehrere Monate auf 0, daher weiß ich noch nicht in welchen Abständen er runterzählt (ja, ich muss mal wieder entkalken...).

//Edit
Für das aus dem Standby holen habe ich auch noch keine Funktion gefunden. In der App gibt es dazu auch keine Funktion - oder ich habe diese noch nicht entdeckt.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 22 November 2020, 00:19:23
Beim homeBridgeMapping hatte ich noch einen kleinen Fehler oben drin, hab ich korrigiert:

"cmds": ["ristretto:brew ristretto medium","espresso:brew espresso medium","lungo:brew lungo medium","americano:brew americano medium","hotwater:brew hotwater high"]

Bzgl. Standby: ich schau mir die App mal an, ob es da überhaupt geht. Wenn nicht, wird das sicherlich auch anderweitig nicht gehen.
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 22 November 2020, 00:24:20
Danke!

Zum Einschalten haette ich noch eine Idee, vielleicht kann man 0ml Heisswasser starten. In der App geht 0ml wahrscheinlich nicht, aber vielleicht verarbeitet es das Command per Bluetooth. Das sollte ueber die "recipe" Funktion gehen, die habe ich aber noch nicht integriert.
Siehe: https://github.com/petergullberg/brewbutton#recipe-brew-07
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 22 November 2020, 00:28:25
Gern  :) sowas macht ja auch richtig Spaß...

Ich hab gerade bemerkt, dass Einschalten gar nicht nötig ist. Z.B. Heißwasser weckt die Maschine auf und sie legt gleich los. Denke das hatte vorhin nicht funktioniert, weil er ja den Bezug nicht startet, wenn der Kapselslider zwischen den Bezügen nicht geöffnet wurde. Müsste mal schauen, ob er es kapiert, wenn ich z.B. am Vorabend eine Kapsel einlege und dann morgens aus dem Bett per Google den Bezug starte  ;D

Ist es für solche Fälle evtl. denkbar die Antwort von Commands zur Maschine in fhem auszugeben? So würde man auch in fhem sehen, warum die Maschine nichts macht?
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 22 November 2020, 00:32:55
Das sollte klappen :)

Zur Info, aktuell werden die Readings alle 5min aktualisiert. Also nicht wundern, wenn sich die Werte nicht gleich aendern. Man koennte da noch Subscriptions einbauen, dann wuerden sich die Werte sofort aendern, aber da fehlte mir noch die Zeit dazu.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 22 November 2020, 00:39:52
Ja, sowas kostet leider immer ziemlich viel Zeit... aber 5min sind ja erstmal auch vollkommen ausreichend.

Wie schnell ist Google auch mit den Fehlerausgaben zu Anfragen? Also mal angenommen man startet den Bezug und dann meldet die Maschine "Wasser leer". Kriegt man das hin, dass der Fehler direkt von Google ausgegeben wird oder ist dazu BT/die Maschine zu langsam?
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 22 November 2020, 00:43:44
Über die Cloud ist es leider nicht möglich, das dauert zu lange, aber über localHome könnte es gehen.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 24 November 2020, 19:59:42
Ich hab grad ein update von fhem gemacht und dabei ist mir das pythonbinding abgeschmiert:

Nov 24 18:54:23 raspberrypi python3[400]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/fhem_pythonbinding.py", line 40, in pybinding
Nov 24 18:54:23 raspberrypi python3[400]:     async for message in websocket:
Nov 24 18:54:23 raspberrypi python3[400]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Nov 24 18:54:23 raspberrypi python3[400]:     yield await self.recv()
Nov 24 18:54:23 raspberrypi python3[400]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Nov 24 18:54:23 raspberrypi python3[400]:     await self.ensure_open()
Nov 24 18:54:23 raspberrypi python3[400]:   File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Nov 24 18:54:23 raspberrypi python3[400]:     raise self.connection_closed_exc()
Nov 24 18:54:23 raspberrypi python3[400]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Nov 24 18:54:23 raspberrypi python3[400]: 2020-11-24 18:54:23,112 - INFO     - lib.fhem_pythonbinding: Restart binding


fhem Log:
2020.11.24 19:54:56.842 1 : remote_Pybinding: Can't connect to ws:192.168.5.7:15733: read from http://192.168.5.7:15733 timed out
2020.11.24 19:54:56.842 1 : BindingsIo: ERROR remote_Pybinding - error while connecting: read from http://192.168.5.7:15733 timed out


Am Punkt "Restart binding" schien er sich dann aufgehängt zu haben. Nach einem manuellen Neustart war aber wieder alles ok.
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 24 November 2020, 21:36:18
Hast du das systemd .service File verwendet? Wenn ja, sollte dort das Service automatisch neu gestartet werden.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 24 November 2020, 21:46:13
Ja, hab's darüber am Laufen. Kann man noch irgendwo nachvollziehen, warum er nicht neu gestartet hat?
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 24 November 2020, 21:56:12
Leider nein, mehr Logs stehen da nicht zur Verfügung mit Default INFO Debug Level.

Du kannst nochmals einen FHEM Neustart machen und damit testen ob es nochmals vorkommt. Wenn es dann hängt, kannst ein "ps -efa|grep python" am RPi Zero machen um zu sehen was da hängt.

Ich muss leider beim Connection Error einen Restart machen, da aus mir noch unerklärlichen Gründen es sonst manchmal vorkommen kann, dass 4 FHEM Verbindungen gleichzeitig vom DevIO Device aufgebaut werden. Ich habe den Fehler dazu noch nicht gefunden.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 24 November 2020, 23:27:03
mh, diesmal hat funktioniert... ich beobachte mal und melde mich, falls es wieder passiert.

zu gassistant: kannst du kurz Bescheid geben, wenn das Mapping & Co drin sind?  :)
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 27 November 2020, 19:45:57
Ich melde mich dann, habe gerade mehr umgebaut, daher muss ich etwas mehr testen bevor ich es online stelle.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 27 November 2020, 19:49:06
Ist gerade nochmal abgeschmiert, nur dass diesmal kein Neustartversuch passiert bzw. die Fehler in einer Endlosschleife kommen:

Nov 27 18:42:40 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:42:40 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:42:40 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:42:40 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:42:40 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:42:40 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:42:40 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:42:40 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:42:40 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:42:40 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:42:48 raspberrypi python3[442]: 2020-11-27 18:42:48,118 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Nov 27 18:42:48 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:42:48 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:42:48 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:42:48 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:42:48 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:42:48 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:42:48 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:42:48 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:42:48 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:42:48 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:42:48 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:42:48 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:42:48 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:42:48 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:42:48 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:42:48 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:42:48 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:42:48 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:42:48 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:14 raspberrypi python3[442]: 2020-11-27 18:43:14,102 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Nov 27 18:43:14 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:43:14 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:43:14 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:43:14 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:43:14 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:43:14 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:14 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:14 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:14 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:14 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:14 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:14 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:43:14 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:43:14 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:43:14 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:43:14 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:43:14 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:43:14 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:14 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:14 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:14 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:14 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:14 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:14 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:43:14 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:14 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:14 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:14 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:14 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:14 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:14 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:15 raspberrypi python3[442]: 2020-11-27 18:43:15,923 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Nov 27 18:43:15 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:43:15 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:43:15 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:43:15 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:43:15 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:43:15 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:15 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:15 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:15 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:15 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:15 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:15 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:43:15 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:43:15 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:43:15 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:43:15 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:43:15 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:43:15 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:15 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:15 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:15 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:15 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:15 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:15 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:43:15 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:15 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:15 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:15 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:15 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:15 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:15 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:23 raspberrypi python3[442]: 2020-11-27 18:43:23,190 - ERROR    - pygatt.backends.gatttool.gatttool: No response received
Nov 27 18:43:23 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:43:23 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:43:23 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:43:23 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:43:23 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:43:23 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:23 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:23 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:23 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:23 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:23 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:23 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:43:23 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/fhem_pythonbinding/FHEM/bindings/python/lib/nespresso_ble/nespresso.py", line 245, in connectnespresso
Nov 27 18:43:23 raspberrypi python3[442]:     device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/device.py", line 122, in char_write
Nov 27 18:43:23 raspberrypi python3[442]:     wait_for_response=wait_for_response)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
Nov 27 18:43:23 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
Nov 27 18:43:23 raspberrypi python3[442]:     self._backend.char_write_handle(self, handle, *args, **kwargs)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
Nov 27 18:43:23 raspberrypi python3[442]:     return func(self, *args, **kwargs)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:23 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:23 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:23 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:23 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:23 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None
Nov 27 18:43:23 raspberrypi python3[442]: During handling of the above exception, another exception occurred:
Nov 27 18:43:23 raspberrypi python3[442]: Traceback (most recent call last):
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
Nov 27 18:43:23 raspberrypi python3[442]:     self.sendline(cmd)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
Nov 27 18:43:23 raspberrypi python3[442]:     next(self.gen)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
Nov 27 18:43:23 raspberrypi python3[442]:     self.wait(event, timeout)
Nov 27 18:43:23 raspberrypi python3[442]:   File "/home/pi/.local/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
Nov 27 18:43:23 raspberrypi python3[442]:     raise NotificationTimeout()
Nov 27 18:43:23 raspberrypi python3[442]: pygatt.exceptions.NotificationTimeout: None


pi@raspberrypi:~ $ ps -efa|grep python
pi         442     1  1 Nov25 ?        00:50:54 /usr/bin/python3 FHEM/bindings/python/pythonbinding.py
pi        8928  8913  0 18:44 pts/1    00:00:00 grep --color=auto python


Nach einem Neustart sah es so aus:

Nov 27 18:45:04 raspberrypi python3[8933]: 2020-11-27 18:45:04,728 - INFO     - lib.fhem_pythonbinding: Starting pythonbinding...
Nov 27 18:45:10 raspberrypi python3[8933]: 2020-11-27 18:45:10,892 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 27 18:45:31 raspberrypi python3[8933]: 2020-11-27 18:45:31,971 - ERROR    - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Nov 27 18:45:57 raspberrypi python3[8933]: 2020-11-27 18:45:57,490 - ERROR    - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.


hat aber dann auf Befehle normal reagiert (z.B. Heißwasser) und kurz danach ists auch wieder auf "online" umgesprungen. Evtl. war das die Ursache?

edit:

Zitat von: dominik am 27 November 2020, 19:45:57
Ich melde mich dann, habe gerade mehr umgebaut, daher muss ich etwas mehr testen bevor ich es online stelle.

alles klar :)
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 27 November 2020, 21:26:27
Hast du einen kompletten Neustart machen müssen, oder nur das PythonBinding neu gestartet?
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 27 November 2020, 21:53:50
Nur das PythonBinding auf dem separaten raspi
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 27 November 2020, 21:57:00
Ok, hab schon eine Idee wo der Fehler liegt.
Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 29 November 2020, 21:25:03
Hab gerade ein Update eingespielt. Eventuell behebt das das Problem, bin leider nicht in der Nähe meiner Maschine zum Testen.
Titel: Antw:Nespresso Bluetooth
Beitrag von: ReneH87 am 30 November 2020, 10:31:33
Danke  :) ich hab grad ein Update gemacht, ich sag Bescheid, ob ich nochmal Fehler sehe

edit:
Nov 30 09:29:14 raspberrypi systemd[1]: Started FHEM PythonBinding.
Nov 30 09:29:18 raspberrypi python3[15466]: 2020-11-30 09:29:18,624 - INFO     - lib.fhem_pythonbinding: Starting pythonbinding...
Nov 30 09:29:26 raspberrypi python3[15466]: 2020-11-30 09:29:26,122 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Nov 30 09:29:47 raspberrypi python3[15466]: 2020-11-30 09:29:47,287 - ERROR    - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.


das sehe ich grad, obwohl die Verbdinung online ist. Auch reagiert er normal auf Befehle...

edit2: Crash nach Restart von fhem hat wie erwartet zum Restart des Bindings geführt
Nov 30 10:48:09 raspberrypi python3[15466]:     raise self.connection_closed_exc()
Nov 30 10:48:09 raspberrypi python3[15466]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Nov 30 10:48:09 raspberrypi python3[15466]: 2020-11-30 10:48:09,157 - INFO     - lib.fhem_pythonbinding: Restart binding
Nov 30 10:48:09 raspberrypi systemd[1]: fhem_pythonbinding.service: Main process exited, code=exited, status=1/FAILURE
Nov 30 10:48:09 raspberrypi systemd[1]: fhem_pythonbinding.service: Failed with result 'exit-code'.
Nov 30 10:48:09 raspberrypi systemd[1]: fhem_pythonbinding.service: Service RestartSec=100ms expired, scheduling restart.
Nov 30 10:48:09 raspberrypi systemd[1]: fhem_pythonbinding.service: Scheduled restart job, restart counter is at 2.
Nov 30 10:48:09 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Nov 30 10:48:09 raspberrypi systemd[1]: Started FHEM PythonBinding.
Nov 30 10:48:13 raspberrypi python3[15614]: 2020-11-30 10:48:13,588 - INFO     - lib.fhem_pythonbinding: Starting pythonbinding...
Nov 30 10:48:39 raspberrypi python3[15614]: 2020-11-30 10:48:39,322 - INFO     - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2

Titel: Antw:Nespresso Bluetooth
Beitrag von: dominik am 04 Dezember 2020, 23:26:16
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 :)
Titel: Antw:fhempy: Nespresso
Beitrag von: ReneH87 am 07 Dezember 2020, 09:57:46
Super, Update hat problemlos funktioniert  :) ich teste und werde berichten...

kleiner Hinweis: in deinem Post unten fehlt ein "curl -sL" vor dem zweiten Befehl
Titel: Antw:fhempy: Nespresso
Beitrag von: dominik am 08 Dezember 2020, 09:55:46
Update in FHEM Connect (gassistant) ist online. Du kannst jetzt ohne homebridgeMapping testen :)

Danke für den Hinweis, ist korrigiert.
Titel: Antw:fhempy: Nespresso
Beitrag von: ReneH87 am 09 Dezember 2020, 18:59:22
Danke, auch das hat geklappt :)
Titel: Antw:fhempy: Nespresso
Beitrag von: ReneH87 am 24 März 2021, 01:02:51
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?
Titel: Antw:fhempy: Nespresso
Beitrag von: dominik am 04 April 2021, 20:13:21
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.
Titel: Antw:fhempy: Nespresso
Beitrag von: ReneH87 am 14 Mai 2021, 01:05:59
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?
Titel: Antw:fhempy: Nespresso
Beitrag von: ReneH87 am 16 Mai 2021, 22:22:53
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.