-
Notifications
You must be signed in to change notification settings - Fork 30
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
Support for Oregon Scientific RAR213HG #91
Comments
I can add it, will you be able to test it by installing beta versions from git? (I'll send commands) |
Thanks! |
@vco1 pip3 install -U https://github.com/devbis/ble2mqtt/archive/refs/heads/oregon.zip --no-cache-dir --force-reinstall and trying to run this version. Add this chunk to your config to devices section and replace the MAC. {
"address": "11:22:33:aa:bb:de",
"type": "oregon_weather",
"interval": 60
} Or, if you use docker, switch to I'll need logs here or on any pastebin site in case of errors |
@devbis When running ble2mqtt with log level set to error I get the following:
|
I removed that reading, can you please try again? Same command. |
Connecting via ble2mqtt:
|
It is a common issue but not directly related to the app. You need to reset the dongle/bluetooth/something else. The app tries to do that automatically, but sometimes it doesn't work well. |
Yes, the error occurs constantly. Currently running on a Pi with USB Bluetooth dongle. I will try to run it on a Pi4 with built-in bluetooth. |
It seems to connect now. But nothing gets advertised. MQTTExplorer has nothing for this device. It shows ble2mqtt as state online.
|
Thanks! Added a fix. Run again, please. |
|
fixed. Run again, please. |
Log level: INFO
|
Fixed. |
Amazed by how quickly you fix things. 👍 We're getting there...
Attached what I think is the relevant part of the log. I do see only 2 publish statements. For battery and link quality.
|
Thanks for the log. Looks like it doesn't subscribe to the needed characteristics. I added more debug code and some workaround. |
I also noted that the example code on instructables.com contains this:
Which seems to be missing from the ble2mqtt code. Could that cause the lack of data? Is this the part from the log that you need? Log:
|
It is subscribing to notifications, but via a high-level methods. |
This is all the logging for about the first minute after start of ble2mqtt. |
Thanks, that's what I needed. For some reason the device is not sending data for 5 seconds. |
Is it possible to add support for the Oregon Scientific RAR213HG weather station?
I looked into adding support myself, but am a bit confused about what needs to be added where. Especially if a new protocol is needed, and if so, what needs to be added where.
Information about a.o. the characteristics for this device can be found here: https://www.instructables.com/Connect-Raspberry-Pi-to-Oregon-Scientific-BLE-Weat/
Thanks in advance.
The text was updated successfully, but these errors were encountered: