Nespresso Integration

Wtf. could you post the version info of the machine (available somewhere in the apps) please (125 for me). Have you tried to check your auth code maybe it has change.

Remember that the machine doesn’t support two simultaneous connection.

I have never reopened the official apps since I start this dev

Yes I know, I have opened not so frequently the app only to update the cups number.
I have checked the auth code 3 times, it’s correct. Maybe there is a connection between the registered machine on the Nespresso web profile?
Firmware 1.25
Connectivity firmware 1.18

and…what if it’s a python problem?

2020-11-25 16:39:39 ERROR (SyncWorker_1) [pygatt.backends.gatttool.gatttool] No response received
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
2020-11-25 16:39:39 ERROR (SyncWorker_1) [custom_components.nespresso.nespresso] Failed to send auth code, retrying in 5s
Traceback (most recent call last):
File "/config/custom_components/nespresso/nespresso.py", line 279, in connectnespresso
device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
File "/usr/local/lib/python3.8/site-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
2020-11-25 16:39:44 ERROR (SyncWorker_1) [custom_components.nespresso.nespresso] Failed to send auth code, 3 times
Traceback (most recent call last):
File "/config/custom_components/nespresso/nespresso.py", line 279, in connectnespresso
device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
File "/usr/local/lib/python3.8/site-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
2020-11-25 16:39:59 ERROR (MainThread) [homeassistant.components.sensor] Setup of platform nespresso is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2020-11-25 16:40:14 ERROR (SyncWorker_1) [pygatt.backends.gatttool.gatttool] No response received
Traceback (most recent call last):
File "/config/custom_components/nespresso/nespresso.py", line 279, in connectnespresso
device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
File "/usr/local/lib/python3.8/site-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
2020-11-25 16:40:14 ERROR (SyncWorker_1) [custom_components.nespresso.nespresso] Failed to send auth code, retrying in 5s
Traceback (most recent call last):
File "/config/custom_components/nespresso/nespresso.py", line 279, in connectnespresso
device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
File "/usr/local/lib/python3.8/site-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/nespresso/nespresso.py", line 279, in connectnespresso
device.char_write(CHAR_UUID_AUTH, binascii.unhexlify(self.auth_code), wait_for_response=True)
File "/usr/local/lib/python3.8/site-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

Could you post the mqtt script error?

I d not why but indeed a python 3.8 change why not

do you mean this?

connect error
<3 write error
connect error
<3 write error
connect error
<3 write error
connect error
<5 write error
Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

when I press ctrl c:

^CTraceback (most recent call last):
  File "nespresso2mqtt.py", line 153, in connectnespresso
    device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
  File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
    return self.char_write_handle(self.get_handle(uuid), value,
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
    self._backend.char_write_handle(self, handle, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 153, in connectnespresso
    device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
  File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
    return self.char_write_handle(self.get_handle(uuid), value,
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
    self._backend.char_write_handle(self, handle, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 49, in wrapper
    raise NotConnectedError()
pygatt.exceptions.NotConnectedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 153, in connectnespresso
    device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
  File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
    return self.char_write_handle(self.get_handle(uuid), value,
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
    self._backend.char_write_handle(self, handle, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 49, in wrapper
    raise NotConnectedError()
pygatt.exceptions.NotConnectedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 153, in connectnespresso
    device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
  File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
    return self.char_write_handle(self.get_handle(uuid), value,
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
    self._backend.char_write_handle(self, handle, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 49, in wrapper
    raise NotConnectedError()
pygatt.exceptions.NotConnectedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nespresso2mqtt.py", line 176, in <module>
    connectnespresso(device)
  File "nespresso2mqtt.py", line 162, in connectnespresso
    connectnespresso(device, tries+1) #resend write auth
  File "nespresso2mqtt.py", line 162, in connectnespresso
    connectnespresso(device, tries+1) #resend write auth
  File "nespresso2mqtt.py", line 162, in connectnespresso
    connectnespresso(device, tries+1) #resend write auth
  File "nespresso2mqtt.py", line 165, in connectnespresso
    connectble() #reconnect to machine
  File "nespresso2mqtt.py", line 136, in connectble
    connectble()
  File "nespresso2mqtt.py", line 136, in connectble
    connectble()
  File "nespresso2mqtt.py", line 136, in connectble
    connectble()
  [Previous line repeated 9 more times]
  File "nespresso2mqtt.py", line 132, in connectble
    return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 156, in wait
    if not self._event_vector[event]["event"].wait(timeout):
  File "/usr/lib/python3.8/threading.py", line 558, in wait
    signaled = self._cond.wait(timeout)
  File "/usr/lib/python3.8/threading.py", line 306, in wait
    gotit = waiter.acquire(True, timeout)
KeyboardInterrupt

I don’t now why. It looks like the machine even not accept connection.
I’ll have to investigate this (certainly Friday) and upgrade python to make more test in dev env.

Yes I think it’s the machine that is dropping other connections except the iPhone one…ok it would be interesting if you can check python 3.8 too

Edit: with python 3.7 same results…it’s so strange…

Ok bubez81 issue was a bad auth code.

To retreive it follow this tuto: https://github.com/petergullberg/brewbutton/blob/master/README.md#retrieve-auth-key

Once you have your code try nrfconnect applications (ios or android). Write auth code in service 06aa3a41-f22a-11e3-9daa-0002a5d5c51b

Then try to read (06aa3a12-f22a-11e3-9daa-0002a5d5c51b) machine status. If auth is not right you won’t be able to read it, else it will show you something like 4400575…

integration with Nespresso works fine?
there is a nespresso compatibility list?

Except BT range issue it works asis.
I run only the pyton script to use it with Mqtt to solve this range issue from my own server.

Basically prodigio is working and d80 should.

Using Home Assistant Core

How do you use the MQTT script with this integration? Have a MQTT broker on the same local host.

I have a different mqtt broker but it doesn’t matter if ha has access to it.

In sensors.yaml:
‘’’

  • platform: mqtt
    state_topic: “/nespresso/caps_count”
    name: nespresso_caps_count
    unit_of_measurement: “caps”

  • platform: mqtt
    state_topic: “/nespresso/descaling_counter”
    name: nespresso_descaling_counter

  • platform: mqtt
    state_topic: “/nespresso/water_hardness”
    name: nespresso_water_hardness
    ‘’’

And in binary sensor

‘’’

  • platform: mqtt
    state_topic: “/nespresso/state/water_empty”
    name: nespresso_water_empty
    payload_on: “1”
    payload_off: “0”

  • platform: mqtt
    state_topic: “/nespresso/state/descaled_needed”
    name: nespresso_descaled_needed
    payload_on: “1”
    payload_off: “0”

  • platform: mqtt
    state_topic: “/nespresso/state/capsule_mechanism_jammed”
    name: nespresso_capsule_mechanism_jammed
    payload_on: “1”
    payload_off: “0”
    device_class: lock

  • platform: mqtt
    state_topic: “/nespresso/state/water_temp_low”
    name: nespresso_water_temp_low
    payload_on: “1”
    payload_off: “0”

  • platform: mqtt
    state_topic: “/nespresso/state/awake”
    name: nespresso_awake
    payload_on: “1”
    payload_off: “0”

  • platform: mqtt
    state_topic: “/nespresso/state/water_engadged”
    name: nespresso_water_engadged
    payload_on: “1”
    payload_off: “0”
    device_class: lock

  • platform: mqtt
    state_topic: “/nespresso/state/sleeping”
    name: nespresso_sleeping
    payload_on: “1”
    payload_off: “0”

  • platform: mqtt
    state_topic: “/nespresso/state/tray_sensor_during_brewing”
    name: nespresso_tray_sensor_during_brewing
    payload_on: “1”
    payload_off: “0”
    device_class: lock

  • platform: mqtt
    state_topic: “/nespresso/state/tray_open_tray_sensor_full”
    name: nespresso_tray_open_tray_sensor_full
    payload_on: “1”
    payload_off: “0”

  • platform: mqtt
    state_topic: “/nespresso/state/capsule_engaged”
    name: nespresso_capsule_engaged
    payload_on: “1”
    payload_off: “0”
    device_class: lock

  • platform: mqtt
    state_topic: “/nespresso/slider”
    name: nespresso_slider
    payload_on: “Open”
    payload_off: “Closed”
    device_class: lock

‘’’

No I own a prodigio and milk and the d80 seems to use same function. Do not now others device with nespresso ble

I discover also NESPRESSO vertuo next premium c black is WIFI/Bluetooth able…we can work also on this model!

If someone as one it need to best tested and reverse engine first.
Wifi setup will certainly work differently.

Which problem there is today to control PRODIGIO?

None, but for the new models with wifi I don’t how it works at all.

Hello. I have tried to get this installed and running today on HAOS and I think it’s mostly ready but I’ve run into a different issue that I expect others will also encounter. It’s with the latest version of HA (2021.6) that I installed just yesterday. Its requiring a version key to be included in custom integrations, otherwise they will not work. This is preventing the nespresso sensor from working for me. See below in my error logs

ERROR (SyncWorker_1) [homeassistant.loader] The custom integration ‘nespresso’ does not have a valid version key (None) in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details

ERROR (MainThread) [homeassistant.config] Platform error: sensor - Integration ‘nespresso’ not found.

And you’ll see under that link on the HA website it says:

The version key is required from Home Assistant version 2021.6

So I think a little update is needed for this nespresso integration in order for it to now work with the latest HA version.

Indeed I need to update all my integration to add those version and get not time for this right now.

I’ll do my best asp :neutral_face: