-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flic 2 takes multiple clicks before connecting #102
Comments
ugh, I also experience this - did you find resolution? |
@webash Could you show the btmon hci log as well? Do you have a rpi 4? |
Not sure I remember it all but I did replace the battery and used an external USB BT dongle. Both solved some issues, I'm just not sure which ;-) |
I'm using a RPI3. Do you mean the
Not sure if any of this helps. I've truncated to just a few events. I have quite a few broadcasting bluetooth devices of my own, and live in an apartment building in London - so there's going to be noise. But all other bluetooth devices (like the Switchbot devices through the esp32 bt proxy) work fine. This is now the third Raspberry Pi (v3) I've used for this over the years. Sometimes it works just fine for a while, and then suddenly it'll just stop and I'll have to reboot the Pi or restart I finally thought I'd replace the Pi with a fresh install and nothing else running on it - but still seeing the same behaviours. |
Any idea which adapter you've got? Thinking it must be the built-in Pi BT at this stage - it never has been great. |
It seems like whatever integration you are running, it runs a scan continuously. Scanning should only be performed when pairing a new button, so try turn off this scanning. Not sure but the Bluetooth controller (the cypress wifi/bt chip in a RPi) could be confused of all those advertisements maybe. Also Flic buttons will not work reliably when the battery is low (they often drop connections in that case). |
Understood; wasn't aware that discovery was quite that intensive. I might push a change to the HA documentation to make that clearer.
Yeah very true.
Yep; changed some batteries just to be sure it wasn't only that. |
Hi there,
I'm turning my lights on and off with flic2 buttons connected to a Raspberry Pi 4, using the onboard Bluetooth. My problem is, that it often only works after three clicks.
first click : red flic2 led
second click : orange flic2 led
third click : green flic2 led, light is toggled two times (I think the click with the orange led was queued)
I already tried to reduce the baud rate (see Issue #90)
root 519 1 0 08:23 ? 00:00:00 /usr/bin/hciattach /dev/serial1 bcm43xx 230400 flow -
Any ideas?
Many thanks :-)
Markus
btmon shows:
The text was updated successfully, but these errors were encountered: