Accéder au contenu principal

Articles

Playing with the B-Parasite

One of the most successful Bluetooth Low Energy devices that started appearing in our Smart Home is the Xiaomi Mi Flora. Decoded and integrated into OpenMQTTGateway in 2017  this device enabled us to have a nice follow-up on our plants and vegetables' health. One of the main drawbacks is its power consumption, I'm around 6-9 months in terms of battery life. Not very satisfying when we see BLE sensors that can last several years. By chance, I found recently the work of Raphael about the b-Parasite, a BLE open-source plant sensor:  https://github.com/rbaron/b-parasite It is interesting from several aspects: Nice form factor and size The moisture probe is integrated into the PCB You can order directly from the files proposed to a PCB manufacturer with most of the components already soldered nRF52 powered, a reference module in Bluetooth Low Energy It's open-source design and code! So why not try it and see if it can replace my Mi Floras. The ordering experience from JLPCB was

OpenMQTTGateway and OpenHAB 3 with auto discovery of Things

  This tutorial will show how to integrate the BLE gateway to OpenHAB3 leveraging the auto-discovery functionality. After this tutorial, you should see your   Bluetooth Low Energy devices compatible with OpenMQTTGateway   in OpenHAB3 without any file-based manual configuration. Note that this tutorial is also available in OpenMQTTGateway  documentation Prerequisites OpenHAB 3.3 or higher MQTT broker installed with or without authentication A location defined in the “Model” section under “Settings” IP address (if your broker is installed on the same server as OpenHAB) The goal is to disable the IPv6 address of the broker server, so that the gateway can connect through IPv4. From the Administration click on Settings Click on Network Settings Click on Show Advanced Disable IPv6 Click on Save Note If the broker is installed on another server you will also need to configure it with an IPv4 address. Install the MQTT binding From the Administration click on Settings Click on Bindings Install

Theengs mobile application to read your BLE sensors

I’m excited to announce the release of Theengs Android mobile application, the application uses  Theengs Decoder  to read data from BLE devices and display those to your mobile, you can download it on Google Play (paid app) To stick with the spirit of  OpenMQTTGateway  the app can also be used as a gateway to an MQTT broker! So if you have an Android touch screen, you can install the app and configure it to read BLE sensor data and push it to your favorite Home Automation controller. Note that if you want to run the integration in the background this is possible as an experimental feature (we need your feedback on this). More information on the app documentation . We came a long way from removing the decoding of BLE sensors from OpenMQTTGateway, creating a dedicated  library , creating a  gateway , a Home Assistant  Addon  a data  explorer  and now a  mobile application ! And you know what, this is not the end, we have plans to release the app for other platforms.

Get your BLE sensors data into Home Assistant in a snap without ESP32

 The power of OpenMQTTGateway BLE is now accessible without an ESP32 and can be installed to Home Assistant in a snap.  Theengs Gateway can be installed as an  Addon in Home Assistant thanks to the work of Mihai Ambrosie Here is the process in a few step: Open Home Assistant and navigate to the "Add-on Store". Click on the 3 dots (top right) and select "Repositories". Enter https://github.com/mihsu81/addon-theengsgw in the box and click on "Add." You should now see "TheengsGateway HA Add-on" at the bottom list. Click on "TheengsGateway", then click "Install". Under the "Configuration" tab, change the settings appropriately (at least MQTT parameters). See Parameters. Start the Add-on. No need of creating YAML configuration for the sensors, they are automatically created in the Devices and Entities section. From this, they can be easily added to your dashboards and automation.

OpenMQTTGateway BLE on Windows, Raspberry Pi or Apple MAC !

  From a   long time   it was asked if OpenMQTTGateway could run on a Raspberry Pi. 100% 75% 50% image With the externalization of the part of OMG BLE code into  Theengs Decoder  and the multi-platform compatibility of the library, the doors were wide open to it. By integrating  Theengs Decoder  into a Python script we made a multi-platform  BLE to MQTT gateway  that can run on a Raspberry Pi, Unix, Windows, MAC, and many more. So now if you have a server with a BLE component you can retrieve decoded BLE sensors data and publish those to MQTT. Cherry on the cake,  TheengsGateway  use the same API as OpenMQTTGateway, so it will act in concert with your existing ESP based OpenMQTTGateway. If you use auto-discovery with OMG the sensors data will be automatically retrieved from  TheengsGateway  also! If you have Python and Pip this is as simple as one command: pip install TheengsGateway Full documentation can be found below: theengs.github.io Theengs gateway Multi platform MQTT gateway lev

Externalize the BLE devices decoding in a library - TheengsDecoder

 These last years OMG has grown leveraging different types of libraries for device decoding: RCSwitch at the beginning for RF/433mhz IRRemote and IRRemote ESP8266 for Infrared ESPilight and  RTL_433_ESP  for RF And many others for sensors, actuators, processing, mqtt... I thank all the maintainers and contributors of these libraries, without them, OMG would not exist. As you know OMG support also Bluetooth device decoding and control , we are not relying on a library for this, but rather on the OMG code. This is mainly due to the history, with the first reading of a Mi Flora by an HM10 integrated in November 2017 and the ESP32 reading of this same sensor in January 2018.  After BLE devices were added from time to time to reach a list of more than 25 devices compatible. A lot of other open-source software are using the BLE data broadcasted to propose a similar approach, sometimes dedicated to one or a range of devices, for a particular platform, or for a particular controller. My opini

Get your BLE sensors data into Home Assistant in 5 minutes

You can now upload your board directly from the web browser!  So let's imagine you want to read data from a sensor like a Mi Flora, an LYWSD03MMC, a weight scale, or any other BLE sensor from this list  Plug an ESP32 dev board to your computer USB port Go to this website: https://docs.openmqttgateway.com/upload/web-install.html Select esp32dev-ble Click the install button Depending on your board you may have to press the BOOT button Choose the port that the ESP is connected to. Wait until the process is complete. Release the BOOT button That's it, OMG is now loaded into your ESP32 board without Arduino IDE, platformIO or a binary flasher. Here are the steps in images: Now comes the Home Assistant part: Add the MQTT integration and activate auto discovery Create a user and a password (Configuration->Users) without administrator right for the gateway Well, this is enough for Home Assistant. So let's now connect both: Check the Wifi Access points available with your smartph