Closed zehrer closed 3 years ago
Weird! Can you try setting forceDiscovering: false
? Do you run any other bluetooth related plugins?
I just released a new version where the log entries you see won't show up as long as you don't run homebridge with the debug-flag. But there's most likely some issue with your setup since this plugin is supposed to be scanning continuously but something external is causing it to stop scanning and then it retries when forceDiscovering: true
.
The AveaBlub use Bluetooth as well, may this a problem when several plug-ins use Bluetooth ?
Yes the bluetooth-library https://github.com/abandonware/noble which both this plugin and https://github.com/kounch/homebridge-avea-bulb use is known to not play very well with multiple instances of it running. This is why I added the option forceDiscovering
but it appears like homebridge-avea-bulk
have implemented a similar solution so the start / stop is caught in a loop. See: https://github.com/kounch/homebridge-avea-bulb/blob/master/index.js#L96
This plugin depends on continuous scanning since it only reads the BLE advertisement data and never connects to the device. It looks like homebridge-avea-bulb
only use scanning to find the device and then connect to it. One idea might be to try and place homebridge-avea-bulb
before this plugin in your homebridge configuration.
You can also try and set forceDiscovering: true
and forceDiscoveringDelay
to something higher than the default of 2500
, maybe try 10000
.
I run homebridge in service mode (no DEBUG and no -D) but the homebridge log file run full with about 100 entries per second like this :
[2020-10-11 21:42:45] [Keller] Start scanning. [2020-10-11 21:42:45] [WC] Stopped scanning. [2020-10-11 21:42:45] [Wohnzimmer] Stopped scanning. [2020-10-11 21:42:45] [Keller] Stopped scanning. [2020-10-11 21:42:45] [WC] Stopped scanning. [2020-10-11 21:42:45] [Wohnzimmer] Stopped scanning. [2020-10-11 21:42:45] [Keller] Stopped scanning. [2020-10-11 21:42:45] [WC] Stopped scanning. [2020-10-11 21:42:45] [Wohnzimmer] Stopped scanning. [2020-10-11 21:42:45] [Keller] Stopped scanning. [2020-10-11 21:42:45] [WC] Stopped scanning. [2020-10-11 21:42:45] [Wohnzimmer] Stopped scanning. [2020-10-11 21:42:45] [Keller] Stopped scanning. [2020-10-11 21:42:45] [WC] Stopped scanning.
Expected Behavior
at least not scanning log messages
Steps to Reproduce (for bugs)
I start homebridge in "Insecure" Mode to enable Accessory Control in Homebridge Config UI X
Versions
Configuration
Homebridge Log / Command Output