Giter Club home page Giter Club logo

home-assistant-nespressoble's People

Contributors

soundch3z avatar tikismoke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-nespressoble's Issues

Connection times out very often

Hi and thank you for this great integration! Unfortunately my Raspberry Pi 4 has a lot of trouble connecting to my Nespresso Prodigio machine. On the Web Bluetooth Page of brewbutton everything works fine as well, only home assistant has problems connecting to the machine (it sometimes works after a lot of reboots). Also I disabled any other bluetooth integrations on home assistant and my Nespresso machine is not far away from the Raspberry Pi. I attached the logs.

2020-08-03 23:50:22 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] 
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:27 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nespresso is taking over 10 seconds.
2020-08-03 23:50:27 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] Failed to get_info, 3 times
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:33 ERROR (SyncWorker_14) [pygatt.backends.gatttool.gatttool] Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:33 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] 
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:38 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] Failed to get_info, 3 times
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:43 ERROR (SyncWorker_14) [pygatt.backends.gatttool.gatttool] Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:43 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] 
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:48 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] Failed to get_info, 3 times
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:54 ERROR (SyncWorker_14) [pygatt.backends.gatttool.gatttool] Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:54 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] 
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:50:59 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] Failed to get_info, more than 3 times
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 179, in get_info
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:51:04 ERROR (SyncWorker_14) [pygatt.backends.gatttool.gatttool] Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.
2020-08-03 23:51:04 ERROR (SyncWorker_14) [custom_components.nespresso.nespresso] Failed to discover sensors
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
    self.sendline(cmd)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
    self.wait(event, timeout)
  File "/srv/homeassistant/lib/python3.7/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 "/home/homeassistant/.homeassistant/custom_components/nespresso/nespresso.py", line 205, in get_sensors
    dev = self.adapter.connect(mac, address_type=pygatt.BLEAddressType.random)
  File "/srv/homeassistant/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
    raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to ec:d7:50:55:f6:a0 after 5.0 seconds.

if you know anything I can do, that would be great, thanks.

Using other interface than hci0

Hi,

is there any possibility to use another hci interface with this integration? I have a Bluetooth Dongle connected to my pi via usbip and want to be able to use it with this integration.

Thank!

The configuration is not valid: Platform error sensor.nespresso

Hi i use
Home Assistant 2023.1.6
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230110.0 - latest

I try to install home-assistant-nespressoble from HACS, but when add to mi configuration under sensor:

  • platform: nespresso
    mac: d2:12:f1:7b:cd:6d
    resource: 8287ee82593d3c4e
    scan_interval: 30
    I can't restart because:
Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:518
Integration: Home Assistant Supervisor ([documentation](https://www.home-assistant.io/integrations/hassio), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+hassio%22))
First occurred: 19:33:10 (1 occurrences)
Last logged: 19:33:10
The system cannot restart because the configuration is not valid: Platform error sensor.nespresso - Integration 'nespresso' not found

I try to change:
6da872c
It doesn't seem to work..

Thanks

Auth code to hex

Hi Tikismoke,

Thanks for your great work. I'm trying to make the mqtt script work, there's an auth code needed in hex format. How do I go from my auth key (I already retrieved it) to the hex array format?

Regards,
Silvan

Button Get me a Coffee

Hello there!

Nice work on this integration! Thanks a lot !
But how can i put the button "Make a Coffee" in Lovelace? ^^
I only have the sensors...

Connection timeout

Hi,
Very great work !
I just installed but I get an error "Connection timeout after 5 seconds".
An idea ?
Thx !

HassOs and Bluez

Any idea on how to use this integration on HassOs?
Ps...well done!!! Iโ€™m wating this integration from years!!

ESpHome Proxy Bluetooth

Hi tikismoke, if I use BLE Client for Esphome, do you think the integration will work? Where could I specify to use this device?

Thanks

Looking for an advice

Hello, looking for an advice here!
I have a Nespresso Expert&Milk machine with Bluetooth.
In order to use your code I have to get an authorization token. The problem is that official Nespresso application is banned in Russia, and AFAICS to get that token you MUST run an official app at least once.
Earlier I managed to control my machine with an official app downloaded from some third-party server, but now this old version shows "Upgrade is needed" dialog and the new official version downloaded from apkpure just refuses to install: I guess because of my country too.
SO, any advice appreciated: How can I run this version or maybe get auth token without an official app?
I've installed nrf Connect but cant see anything like auth token in the logs

Possibility to make the custom_component cross-platform

Hello tiki smoke how are you? I'm thinking of the possibility to use the custom_component with macOS too...
do you think it would be possible to use some alternative to scan BLE devices?
I have seen some use @abandonware/bluetooth-hci-socket

Integration is using deprecated `DEVICE_CLASS_*` constants

This custom integration uses deprecated DEVICE_CLASS_* constants in its codebase.

The DEVICE_CLASS_* constants have been deprecated and replaced in Home Assistant Core 2021.12 (over a year ago). I would highly suggest updating/migrating this integration to the new enums.

For example, for the device classes supported by the sensor platform, there is now a SensorDeviceClass enum. So if a sensor previously used the DEVICE_CLASS_ENERGY constant, it should now use SensorDeviceClass.ENERGY. Other platforms (like binary_sensor, and number) provide similar enumerations for their supported device classes.

The migration thus only consists of replacing constants with an enumeration member and is, therefore, very low impact and should be fairly straightforward.

If I can help resolve any questions regarding this change or migration, feel free to ask or respond to this issue. I'm happy to help!

Kindest regards,

../Frenck

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.