Git Product home page Git Product logo

Comments (3)

hcoohb avatar hcoohb commented on August 17, 2024

Hi,

I have never used remote Home-assistant so I don't know how it handle the reading/writing of bt entities...
But the yeelight_bt lamp is actually very picky in how it handles the bt connection, so due to that, when the light is turned on, we actually need to wait some time before trying to read the state to confirm the light is on.

So it could be that the remote home-assistant is not waiting for the real notification and goes back to off on the master... the question is though why shouldn't it pick up that the light is on after some time?
If you physically turn on the light, does it gets picked up by the secondary instance? and by the master instance?

from hass-yeelightbt.

xekil avatar xekil commented on August 17, 2024

Hi,

After a physical press, HA and HA remote update the status exactly at the same time after about 20 seconds.

Strangely, apart from this delay, everything works fine today, strange.

On the other hand, I have a lot of error of this type:

Logger: custom_components.yeelight_bt.yeelightbt
Source: custom_components/yeelight_bt/yeelightbt.py:264
Integration: Yeelight bluetooth (documentation, issues)
First occurred: 14:45:38 (1 occurrences)
Last logged: 14:45:38

Could not write to lamp: error<class 'bluepy.btle.BTLEException'>(Error from bluepy-helper (badparam))
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:493
First occurred: 14:45:34 (1 occurrences)
Last logged: 14:45:34

Update of light.yeelight_leo is taking over 10 seconds
Logger: custom_components.yeelight_bt.yeelightbt
Source: custom_components/yeelight_bt/yeelightbt.py:260
Integration: Yeelight bluetooth (documentation, issues)
First occurred: 14:45:24 (2 occurrences)
Last logged: 14:45:31

Could not write to lamp: error<class 'bluepy.btle.BTLEInternalError'>(Helper not started (did you call connect()?)), Retrying now...
Could not write to lamp: error<class 'bluepy.btle.BTLEException'>(No current connection), Retrying now...
Logger: custom_components.yeelight_bt.yeelightbt
Source: custom_components/yeelight_bt/yeelightbt.py:76
Integration: Yeelight bluetooth (documentation, issues)
First occurred: 14:44:49 (2 occurrences)
Last logged: 14:45:31

Could not connect to lamp: error<class 'bluepy.btle.BTLEDisconnectError'>(Failed to connect to peripheral g4:52:31:ef:c3:f8, addr type: public)

I am using BLE Monitor in parallel with the same Bluetooth dongle, I cannot use two Bluetooth dongles on the same device (Hass.io). Is this the source of these errors?

from hass-yeelightbt.

hcoohb avatar hcoohb commented on August 17, 2024

All of those problem should be fully resolved with the new bluetooth integration and using bluetooth-proxy on esp32.

Closing for now but feel free to reopen if needed

from hass-yeelightbt.

Related Issues (20)

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.