Skip to content

random connection timeouts using the library #4

@jr3us

Description

@jr3us

Hi,
First, thank you for creating this library for accessing the GOVEE BT LED bulbs!
I am in process of writing a wrapper on a Raspberry pi 4 for this bulb that sends mqtt messages for use in Home assistant (home-assistant.io).

I do have all of the functionality working from within Home Assistant with regards to controlling the GOVEE bulb.

However, randomly, after 10 or 20 commands sent to the bulb, I get errors connecting. as follows:

raise ConnectionTimeout(self.mac, err)
govee_btled.errors.ConnectionTimeout: Failed connecting to XX:XX:XX:XX:XX:XX

Any ideas come to mind to fix this? For each call from Home assistant, the wrapper initializes the bulb, and then deletes the connection.

I have tried both the gattinfo as well as the BGAPI version in the pygatt library.

I also tried the following timeout change, with no change.

echo 1000 > /sys/kernel/debug/bluetooth/hci0/supervision_timeout

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions