Closed sammcj closed 2 years ago
This library builds on the bleak where UUIDs are utilized instead of Bluetooth address for macOS.
More information at: https://bleak.readthedocs.io/en/latest/backends/macos.html#specific-features-for-the-macos-backend
I don't have access to a macOS machine to test so any more detail you can share would be helpful.
My first thought was that you could provide the UUID instead of the mac address. However, the following might block that: https://github.com/Anrijs/Aranet4-Python/blob/a85660ed4a6408732379518ddbdf87a8aa3e2172/aranet4/client.py#L204-L207
So it might be that this check needs to be different if it detects this is running on a macOS machine.
@sammcj Try now with version 2.0.3.
First run aranetctl --scan
to find UUID. Then use this UUID instead of MAC address.
Sorry for the slow response.
That fixed it, it works!
--------------------------------------
Connected: Aranet4 317960060368 | v0.4.10
Updated 28 s ago. Intervals: 300 s
2016 total log_size
--------------------------------------
CO2: 577 ppm
Temperature: 18.9 °C
Humidity: 54 %
Pressure: 990.3 hPa
Battery: 95 %
Status Display: GREEN
--------------------------------------
Thank you,
Although I think this library is written for Linux, I thought I'd try it out on macOS.
It looks like it can't find the unit (the MAC is correct, just redacted below).
Is the intended flow that you connect the OS to the device before running this - or should this both find and connect to it directly?