JoeRu
May 7, 2022, 6:04am
#1
Hi all
I reverse engineered the BLE devices from beehivemonitoring.com (beehive scales, sensors (hive heart, …) here / (GitHub - JoeRu/beehivemonitoring_devices: This is a documentation-project for the very good products of beehivemonitoring.com. It will make you able to get the data from the products wether by reading the BLE with an own BLE device or via API from the data-website. ) and would like to add the support of that devices to this project.
I checked the open mqtt repository but find it rather hard to find an example on #howto add code for a device.
Maybe you can give me a hand/ example on that behalf?
1 Like
Hello,
That’s great, I have family that has hives and I would love to help them with this.
The ble decoding of OMG has been externalized into a library so that it can be used by different projects and platform:
To add a decoder:
Here is an example of PR that add a device:
theengs:development
← theengs:Add-solis-6
opened 11:40PM - 23 Feb 22 UTC
## Description:
Ass SOLIS 6 Probes BBQ thermometer, see discussion [here](https… ://community.openmqttgateway.com/t/add-tenergy-solis-6-channel-meat-thermometer-to-openmqttgateway/1819/20)
## Checklist:
- [x] The pull request is done against the latest development branch
- [x] Only one feature/fix was added per PR and the code change compiles without warnings
- [x] I accept the [DCO](https://github.com/theengs/decoder/blob/development/docs/participate/development.md#developer-certificate-of-origin).
Note that by adding to decoder, the device will be available for OMG(esp) and Theengs Gateway (windows, unix)
And finaly @h2zero just added MQTT2MQTT decoding to Theengs gateway:
theengs:development
← theengs:decode-mqtt-sub-msg
opened 01:56AM - 06 May 22 UTC
This will decode messages sent to the subscribed topic and publish them to the p… ublish topic.
This allows for offloading the decode operation from other devices, such as an ESP32, to enhance performance.
The data sent to the topic is expected to be formatted in JSON and MUST have at least an "id" entry.
Example message:
{"id":"54:94:5E:9F:64:C4","mac_type":1,"manufacturerdata":"4c0010060319247bbc68","rssi":-74,"txpower":12}
If possible, the data will be decoded and published.
## Description:
## Checklist:
- [X] The pull request is done against the latest development branch
- [X] Only one feature/fix was added per PR and the code change compiles without warnings
- [X] I accept the [DCO](https://github.com/theengs/gateway/blob/development/docs/participate/development.md#developer-certificate-of-origin).
So that the python gateway can be leveraged with OMG even if the ESP doesn’t have the device decoder (close to what you have done)
1 Like
JoeRu
May 7, 2022, 11:29am
#3
Thanks. That’s a lot of read. I’ll give it a try the next weeks.
DigiH
May 7, 2022, 12:56pm
#4
@JoeRu Very interesting project! Never realised that bee keeping was so technologised already, especially impressed with the Bee Counter
Will be great to see these devices/sensors included in Theengs Decoder.
Might be an idea to create a topic in the Decoder Discussions for this to bounce some ideas/issues back and forth
1 Like
Nunak
May 12, 2022, 1:21pm
#5
Hi @JoeRu thanks for this work! I am trying solve the same, but I am not programer. In generall I would like to have some ble gateway idealy on ESP32 and forward info from hive heart to mqtt home assistant.
I was trying to use esphome.io and ble client to collect data, but I am not able to get the data.