lstrojny / homebridge-ble-thermobeacon Goto Github PK
View Code? Open in Web Editor NEWHomebridge integration for Brifit/ORIA thermometer
License: Apache License 2.0
Homebridge integration for Brifit/ORIA thermometer
License: Apache License 2.0
Describe Your Problem:
I try to add a Brifit Bluetooth Thermometer Hygrometer to Homebridge but the device is not recogniced. I guess that my sensor is slightly different because the referenced scripts can read the data (my sensor https://www.amazon.de/dp/B08GWVLXZ3?ref=ppx_yo2ov_dt_b_product_details&th=1). I would be very glad for some help. Thanks!
I tested the ThermoBeacon script. The Pi is reciving the data:
raspberry@pi:~/ThermoBeacon $ python tbcmd.py scan
[3d:26:00:00:01:a6] [18] T= 20.50°C, H = 55.38%, Button:Off, Battery : 90%, UpTime = 25195s
[3d:26:00:00:01:a6] [18] T= 20.50°C, H = 55.38%, Button:Off, Battery : 90%, UpTime = 25196s
[3d:26:00:00:01:a6] [18] Max=26.50°C at 19248s, Min=12.56°C at 10838s
Maybe the sensor is not identified correctly as "identify" is not working:
raspberry@pi:~/ThermoBeacon $ python tbcmd.py identify -mac 3d:26:00:00:01:a6
connectd
///Characteristic 0000fff5-0000-1000-8000-00805F9B34FB was not found!
I tested identify with and without pressing the button. I guess this is somehow related to the Transmit Handle 0x0021 in https://github.com/rnlgreen/thermobeacon/blob/main/thermobeacon2.py
"query" is working fine:
raspberry@pi:~/ThermoBeacon $ python tbcmd.py query -mac 3d:26:00:00:01:a6
{'mac': '3d:26:00:00:01:a6', 'temp': 20.44, 'relhum': 56.06, 'button': False, 'battery': 90.32, 'uptime': 26986}
I also scaned for BLE with bluetoothctl and scan on and got:
[NEW] Device 3D:26:00:00:01:A6 ThermoBeacon
[CHG] Device 3D:26:00:00:01:A6 RSSI: -76
[CHG] Device 3D:26:00:00:01:A6 ManufacturerData Key: 0x0018
[CHG] Device 3D:26:00:00:01:A6 ManufacturerData Value:
00 00 a6 01 00 00 26 3d a8 01 30 4b 00 00 c9 00 ......&=..0K....
56 2a 00 00 V*..
Logs:
Logs from starting the child bridge:
[03/01/2023, 22:32:09] [homebridge-ble-thermobeacon] Launched child bridge with PID 1355
[03/01/2023, 22:32:09] Registering platform 'homebridge-ble-thermobeacon.BleThermoBeacon'
[03/01/2023, 22:32:09] [homebridge-ble-thermobeacon] Loaded homebridge-ble-thermobeacon v0.0.15 child bridge successfully
[03/01/2023, 22:32:09] Loaded 0 cached accessories from cachedAccessories.0E181663E32D.
[03/01/2023, 22:32:09] Homebridge v1.6.0 (HAP v0.11.0) (homebridge-ble-thermobeacon) is running on port 47939.
Plugin Config:
{
"debug": true,
"buttonAsLock": true,
"devices": [
{
"address": "3d:26:00:00:01:a6",
"name": "Blue",
"buttonAsLock": true
}
],
"platform": "BleThermoBeacon",
"_bridge": {
"username": "0E:18:16:63:E3:2D",
"port": 47939
}
}
I tested it with and without buttonAsLock.
Environment:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.