home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

zengge integration does not work with Home Assistant Core (missing package) #99335

Open stanislav-brabec opened 1 year ago

stanislav-brabec commented 1 year ago

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 root@homeassistant.local 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.

home-assistant[bot] commented 1 year ago

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)

issue-triage-workflows[bot] commented 9 months ago

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.

stanislav-brabec commented 9 months ago

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'].

Ursus-Bear commented 8 months ago

Hello @stanislav-brabec , I'm trying to use zengge and having the same issue. Did you install bluepy manually successfully?

molnard commented 8 months ago

I am having the same issue.

gabka913 commented 7 months ago

same here.

sginestrini commented 5 months ago

Same here

EnricoBettella commented 5 months ago

Cannot set it up too

ooropuloo commented 3 months ago

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?

issue-triage-workflows[bot] commented 2 weeks ago

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.

cornebistouille commented 2 weeks ago

same here :/ can someone do something? :)

stanislavbrabec commented 2 weeks ago

Home Assistant core 2024.8.3 The same error, the same work-around.

And Alpine Linux v3.20 repositories still do not contain bluepy.