Giter Site home page Giter Site logo

avea's People

Contributors

fabaff avatar k0rventen avatar pattyland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pattyland

avea's Issues

License compability

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.

Implement a unique identifier

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

New Maintainer?

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

ValueError: too many values to unpack (expected 2)

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)

module 'bluepy.btle' has no attribute 'BTLEDisconnectError'

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'

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.