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 discovery on macOS Monterey #163

Closed
onderweg opened this issue Nov 9, 2021 · 12 comments
Closed

No discovery on macOS Monterey #163

onderweg opened this issue Nov 9, 2021 · 12 comments

Comments

@onderweg
Copy link

onderweg commented Nov 9, 2021

Noble does not discover any devices on macOS Monterey.

Expected Behavior

Bluetooth (Hygrothermograph) device is discovered by Noble.

Current Behavior

In the debug log, no more [Temperature & Humidity] messages after:

[11/9/2021, 7:16:32 PM] [Temperature & Humidity] Start scanning.
[11/9/2021, 7:16:32 PM] [Temperature & Humidity] Started scanning.

I added some logging to scanner.js and found that onDiscover is never called.

Steps to Reproduce (for bugs)

  • Install homebridge-mi-hygrothermograph plugin in Homebridge, on macOS Monterey
  • Restart Homebridge

Versions

  • homebridge: 1.3.5
  • homebridge-mi-hygrothermograph: [email protected]
  • node: v16.13.0
  • OS: macOS Montery (12.0.1)

Probable cause

Issue #225 in github.com/abandonware/noble

@onderweg onderweg changed the title No discovery macOS Monterey No discovery on macOS Monterey Nov 9, 2021
@hannseman
Copy link
Owner

Thanks for looking into this. I'll keep an eye on the noble issue.

@hannseman
Copy link
Owner

Have you tried this abandonware/noble#216 (comment)?

@onderweg
Copy link
Author

Yes

@pavelkrcil
Copy link

Hello, do you have any resolution on discover on Monterey?
Thank you.

@hannseman
Copy link
Owner

@pavelkrcil unfortunately no. All we can do is is hope it get fixed ASAP. You can follow this issue: abandonware/noble#225

@onderweg
Copy link
Author

@pavelkrcil a workaround that might be possible to implement: abandonware/noble#225 (comment)

@hannseman
Copy link
Owner

Looks like this should be fixed now with MacOS 12.3: abandonware/noble#225 (comment)

Can anyone confirm?

@nzbrian
Copy link

nzbrian commented May 14, 2022

Still no discovery on Macos 12.3.1 for me. Adding bluetooth access for node as described also doesn't fix it abandonware/noble#216

There's nothing in the debug logs beyond [Temperature & Humidity] Started scanning, as described in the initial issue log from 10 November 2021.

@onderweg
Copy link
Author

For me discovery works now 👍

@nzbrian
Copy link

nzbrian commented May 15, 2022

For me discovery works now 👍

Hi thanks @onderweg what kind of Mac are you using? Did you use System Preferences > Security & Privacy > Privacy > Bluetooth to allow /usr/local/bin/node ?

Are you using stock firmware on the LYWSD03MMC or a custom firmware, and if so with encryption or what settings please?

Keen to get this working

@onderweg
Copy link
Author

Hi, I'm using a Mac. Mini M1, with Monetery 12.3.
I did allow node in "System Preferences > Security & Privacy > Privacy > Bluetooth", although it's not clear to me if that's really necessary.

Are you using stock firmware on the LYWSD03MMC or a custom firmware

I'm using stock firmware

@sptofu123
Copy link

sptofu123 commented Jun 18, 2022

I'm having trouble not getting discovery too.
M1 mini on OS Monterey 12.4.

Logs just say:
[6/19/2022, 1:16:31 AM] [Temperature & Humidity] Initializing Hygrotermograph accessory...
[6/19/2022, 1:16:31 AM] [Temperature & Humidity] address option is not set. When running multiple sensors this will cause interference. See README for instructions.

Installed Xcode
I did the Bluetooth access permission setting for Node,Npm, even terminal.

Tried both the original and custom firmware for LYWSD03MMC. Still no go.

UPDATE:

Got it working. Set Homebridge mDNS Advertiser to bonjour HAP. ( were using Ciao )

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

5 participants