k0rventen / avea Goto Github PK
View Code? Open in Web Editor NEWControl Elgato's Avea bulb using python3 !
License: MIT License
Control Elgato's Avea bulb using python3 !
License: MIT License
Hi,
to reduce spam the Hacktoberfest 2020 is opt-in: https://hacktoberfest.digitalocean.com/hacktoberfest-update
Would be great if you could add the hacktoberfest label to this repository to encourage others (including me) to improve the project! 👍
Best Regards
Sören
Hello
I couldn't find any other way of getting in touch with you so apologies for opening issue.
First of all, thank you for this project. Documentation provided helps a lot.
Since android app is broken and all the integrations for avea are either written for a specific home automation framework or a os-specific library I decided to fix and extend the functionality of https://github.com/szeged/servo/tree/gh-pages/demos/elgato and host it with github pages as a static page. It is using web bluetooth which works with basically anything that runs chromium. I can do this using documentation you provide in this repo and replicate some of this library's functionality. MIT license lets me do it but project I am extending is licensed under MPL 2. I am not really familiar with licensing so if you don't mind I'd like to have your input on this please.
Thanks in advance.
Hi,
Users are getting this error while using the avea lib: home-assistant/core#55634
Could you check wether this is something you could prevent or is this something for I should forward to bluepy?
Greets,
Sören
Hi,
it would be good if there was a method to get a unique identifier for a bulb like a MAC address or even better a serial number so that you can recognize discovered bulbs!
Best Regards
Sören
Hi,
I just read that this library don't work with Python 3.10 because of bluez: https://deploy-preview-23287--home-assistant-docs.netlify.app/blog/2022/07/06/release-20227/#improved-stability-and-performance-and-python-310
(Open "Bluetooth (multiple integrations)" in the breaking charges section)
Do you think you could do something to fix that? It would be sad if this integration would break as so think it's the biggest user of this library:(
Hi,
since a few weeks I got emails from users of a project from me, that is using the avea library on PyPI, that version 1.0.4 is missing.
Now it seems like it got deleted? Even the author on GitHub and all his projects got deleted? Did he assign the package on PyPI to you? I'm a bit confused
Greets, Sören
Got this strange errors a few times lately, not sure wether this avea or bluepy:
2019-11-08 00:30:34 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform avea
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/avea/light.py", line 24, in setup_platform
nearby_bulbs = avea.discover_avea_bulbs()
File "/usr/local/lib/python3.7/site-packages/avea/avea.py", line 237, in discover_avea_bulbs
devices = scanner.scan(4.0)
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 852, in scan
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 790, in start
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 309, in _mgmtCmd
DBG("Select timeout")
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 352, in _waitResp
elif deviceAddr is not None:
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 318, in parseResp
if 'rsp' not in resp:
ValueError: too many values to unpack (expected 2)
Would be nice to get the firmware version of a bulb
In the last time this error pops up more often:
[...]
File "/config/custom_components/avea/light.py", line 84, in turn_off
self._light.set_brightness(0);
File "/config/deps/lib/python3.7/site-packages/avea/avea.py", line 83, in set_brightness
if self.connect():
File "/config/deps/lib/python3.7/site-packages/avea/avea.py", line 61, in connect
except bluepy.btle.BTLEDisconnectError:
AttributeError: module 'bluepy.btle' has no attribute 'BTLEDisconnectError'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.