core
core copied to clipboard
zengge integration does not work with Home Assistant Core (missing package)
The problem
zengge integration requires bluepy, which is missing in the Home Assistant Core
What version of Home Assistant Core has the issue?
2023.8.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
zengge
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zengge
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
I do not have the log any more, but following steps get this error rid:
ssh -t -p 22222 [email protected] docker exec -it homeassistant
And then:
apk update
apk add make
apk add libc-dev
apk add gcc
apk add glib-dev
pip install --find-links $WHEELS_LINKS bluepy==1.3.0
Additional information
Actually, repositories of Alpine Linux 3.18.2 don't contain bluepy, so the correct fix will require a new Alpine Linux package.
Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (zengge
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of zengge
can trigger bot actions by commenting:
-
@home-assistant close
Closes the issue. -
@home-assistant rename Awesome new title
Renames the issue. -
@home-assistant reopen
Reopen the issue. -
@home-assistant unassign zengge
Removes the current integration label and assignees on the issue, add the integration domain after the command.
(message by CodeOwnersMention)
zengge documentation zengge source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still an issue with core 2023.11.3:
The system cannot restart because the configuration is not valid: Platform error light.zengge - Requirements for zengge not found: ['bluepy==1.3.0'].
Hello @stanislav-brabec , I'm trying to use zengge and having the same issue. Did you install bluepy manually successfully?
I am having the same issue.
same here.
Same here
Cannot set it up too
I successfully installed the required libraries on my Alpine Linux setup,
apk add glib-dev python3-dev apk add build-base pip install bluepy==1.3.0 pip install zengge==0.2
However, upon reloading my YAML settings in Home Assistant, I encountered an error during the setup of the Zengge light platform.
Here’s the traceback:
Error while setting up zengge platform for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 362, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/zengge/light.py", line 46, in setup_platform light = ZenggeLight(device) ^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/zengge/light.py", line 69, in __init__ if self._bulb.connect() is False: ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zengge/__init__.py", line 36, in connect self.device = btle.Peripheral(self.mac, addrType=btle.ADDR_TYPE_PUBLIC) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/bluepy/btle.py", line 391, in __init__ self._connect(deviceAddr, addrType, iface) File "/usr/local/lib/python3.11/site-packages/bluepy/btle.py", line 439, in _connect raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp) bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral E4:98:BB:6F:C1:EB, addr type: public
The device's MAC address was retrieved directly from its companion app. Any suggestions on how to resolve this connection issue?