Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running script #4

Open
mj261 opened this issue Nov 13, 2024 · 0 comments
Open

Error when running script #4

mj261 opened this issue Nov 13, 2024 · 0 comments

Comments

@mj261
Copy link

mj261 commented Nov 13, 2024

When running the script in a venv, I receive the following error. This is with a BedJet 3 and running the script on a Raspberry Pi 4 with Python 3.11.2.

(temp) mjones@homekit:~ $ python bedjet.py 
/home/mjones/bedjet.py:15: DeprecationWarning: Callback API version 1 is deprecated, update to latest version
  client = mqtt.Client()
Failed to connect to 2C:BC:BB:A2:6C:12 try 1 of 4
Traceback (most recent call last):
  File "/home/mjones/bedjet.py", line 118, in <module>
    bjet = bedjet()
           ^^^^^^^^
  File "/home/mjones/bedjet.py", line 67, in __init__
    self.devname = self.device.char_read("00002001-bed0-0080-aa55-4265644a6574").decode()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mjones/temp/lib/python3.11/site-packages/pygatt/backends/gatttool/device.py", line 18, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mjones/temp/lib/python3.11/site-packages/pygatt/backends/gatttool/device.py", line 43, in char_read
    return self._backend.char_read(self, uuid, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mjones/temp/lib/python3.11/site-packages/pygatt/backends/gatttool/gatttool.py", line 52, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mjones/temp/lib/python3.11/site-packages/pygatt/backends/gatttool/gatttool.py", line 600, in char_read
    with self._receiver.event("value", timeout=timeout):
  File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/home/mjones/temp/lib/python3.11/site-packages/pygatt/backends/gatttool/gatttool.py", line 187, in event
    self.wait(event, timeout)
  File "/home/mjones/temp/lib/python3.11/site-packages/pygatt/backends/gatttool/gatttool.py", line 153, in wait
    raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant