Skip to content
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

No devices being detected #33

Closed
accelle17 opened this issue Dec 15, 2017 · 8 comments
Closed

No devices being detected #33

accelle17 opened this issue Dec 15, 2017 · 8 comments

Comments

@accelle17
Copy link

I have installed on rpi 3 with Jessie image (9.2.1 node-js) and rpi 0w with stretch image (6.11.5 node-js) and it was able to start without any issue using root account. However, it cannot detect any devices after initializing. THe logs doesn't help either. WHat's odd is that on the console, the text color "BLE scanner was initialized" is only on white compared to the rest of the display (starting... started.. and iBeacon scanner was initialized). I'm not sure if that means something.
I'm not sure what else am I missing.

@mKeRix
Copy link
Owner

mKeRix commented Dec 19, 2017

Just to be sure: you have a publisher (console and/or MQTT) setup correctly, right?

Does sudo hcitool lescan on the command line find anything?

@accelle17
Copy link
Author

Yes, i'm using a blank user and password on mqtt.
the hcitool lescan shows BLE devices around me.

@mKeRix
Copy link
Owner

mKeRix commented Dec 19, 2017

Interesting, technically it should work. If you enable the console publisher in the config does it not list anything either? Last time someone reported this it was an issue with the MQTT connection/permissions.

@accelle17
Copy link
Author

room-assistant issue

that's the only output from console. I'm using below mqtt config, I don't have security configured for the my mosquitto.


 "mqtt": {
    "enabled": false,
    "url": "mqtt://192.168.1.157:1883",
    "username": "",
    "password": "",
    "reject_unauthorized": true,
    "topic": "room/living"
  },

@accelle17
Copy link
Author

Well, I just realized that the mqtt was not yet enabled. So I reconfigured it, and then configured mosquitto with username/pw and added that to the room-assistant config but it still encounter the same issue.

@accelle17
Copy link
Author

Strange, i added the mac of my mi band 2 on the whitelist and it fixed the issue. I thought using [""] or blank on the whitelist enables it to detect all ble devices?

@accelle17
Copy link
Author

crap, should have used "" instead of [""] on the whitelist. im closing this issue :)

@mKeRix
Copy link
Owner

mKeRix commented Dec 21, 2017

I'm glad you were able to figure it out on your own! :)

Just for any possible people coming here from Google in the future: to have no whitelist you have to put the option as [] or as "" (like you mentioned).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants