Accéder au contenu principal


Add of LORA technology to OpenMQTTGateway

The V0.9.1 release of OpenMQTTGateway will introduce the compatibility with LORA RF technology based on the work of Sandeep MISTRY.
LORA is a technology used on Low Power Wide Area Network, the 3 first words of this definition are very interesting. Indeed in home automation we are often faced against the challenge of range and working with battery powered device. LORA solves both problems by its low power consumption and its "kms" range.

The first tests on OMG has been done with the TTGO LORA boards based on ESP32.They are delivered with an antenna and an embedded display. Quite usefull for the first tests.
Note that the modules I bought had already a sender and receiver program flashed!

If you want to reflash these programs you can find them here:
You can use this library for the display:

These modules combined with OpenMQTTGateway enables to send LORA messages coming …

Testing and incorporating more devices and components to OpenMQTTGateway -> affiliated links

After a few years of contributing to OpenMQTTGateway project I see that the scope of the project is exceeding my own home usage, more and more use cases are found by the users. Request of incorporating, gateways, devices, tests are very frequents but I miss devices or components to test with.

So as to continue to extend the OMG functionnalities I've decided to build a list of compatible components and compatible devices with affiliated links
The principle is the following, if you bought something coming from these links there will be a commission for me. I will reinvest this commission into OpenMQTTGateway project in the form of devices/components tests or other aspects linked to OMG (servers for example). Enabling by the way to extend the compatibility list or build/test new features.

If you are searching for compatible devices here is the list:

If you are searching for compatible components here is the list:

Connected terrarium with arilux module

One easy thing that you can build with your child is a terrarium, but what about mixing this achievment with your DIY competencies and transform it into a connected terrarium.
Here is how to do it:
Bill of materials : 
Big recipient in glass with a top that can be drilled or cut (so as to pass the alimentation cable)A cap in plastic of another recipient that can fits into the bigger cap Different earth or little stones color.PlantsCup of something in plasticConnected light
FTDI so as to program the Arilux the first time (after you can upload by Over The Air update)Arilux AL-LC0XPower supply for the ariluxRgb led stripGlue gun

Step 1 :  Connected light

We are not going to use the stock firmware of the ARILUX (of course ;-) so as to connect it to a home automation controller (in this case OpenHAB).
We will load into the Arilux the firmware from mertenats 
So as to load the firmware follow the instructions on the first page of the repository, I used Option 2 to avoid soldering on tiny pa…

A community space for OpenMQTTgateway discussions

With the increase of OpenMQTTgateway users the current community ecosystem composed of github + a gitter chat is showing its limits, especially for the chat which doesn't enable to structure discussions around a subject. 
So as to have more capitalisation on the questions, answers and informations coming from the community I'm introducing a forum based on discourse
Giving the opportunity to build together a knowledge base around OpenMQTTGateway.

Hope you enjoy it, don't hesitate to post questions and share your thoughts, ideas or information around OpenMQTTGateway.

OpenMQTTGateway now reads Xiaomi Mijia Temperature and Humidity sensor

In the path of integrating BLE devices to OpenMQTTGateway I have found the Xiaomi Mi Jia Humidity and temperature sensor to be a good candidate.

This little indoor sensor is able to measure temperature and humidity and to transmit these data by bluetooth low energy to your smartphone.

As we already integrated another BLE device (Mi Flora) why not extending the integration scope of OpenMQTTGateway to this one.

I ordered one to see if I was able to extract data from it. After a few weeks, I received it, a first test with nRF connect application showed me that this device diffuses data in a quite similar way compared to Mi Flora (using BLE service data exposition).

From this point I had to determine the differences between the data sent from mi flora and the data sent from mi jia hum & temp sensor. The reverse engineering was similar to the one done with Mi Flora and with some offset implementation in the program I was able to read easily the humidity and temperature of the sensor.

You ca…

Adding infrared emitter to SONOFF RF BRIDGE

With the add of  SONOFF RF Bridge  to the OpenMQTTGateway compatibility list we were able to send and receive 433mhz by MQTT. 
The interesting thing with OpenMQTTGateway is the ability to have on one board several gateways (RF, IR, BLE and more to come ;-). 

The last versions of SONOFF RF BRIDGE as two IO free pins, why not using these pins to add a new gateway to this little cheap device and control more devices.

If we follow the interest of the different gateways you are more interested on RF and after comes IR infrared.

My choice came in this case to add an infrared emitter to the RF Bridge, with this gateway we are adding the capacity of controlling TV, DVD, hifi...

On the hardware side, I followed the same schematic for IR setup with ESP8266 with just a little add a protection resistor of 1K for the IR led.
The other resistor is connected between the transistor base and IO5 of the RF Bridge instead of D0.
The IR led is powered by the 3,3V of the Sonoff RF Bridge.

The schema:

Here is how i…

ESP32 compatibility, 433mhz 315mhz communication, BLE presence detection and mi flora readings

While I was waiting for the ESP32 developement environment to be enough mature I found a presence detection implementation from @touliloup. It was the opportunity to put my hands on the ESP32 dev board that was waiting for me.

I started with the BLE gateway development. The first attempt with the libraries supplied with the Arduino ESP32 environement was not successfull. I had to add the library from Neil Kolban :
With the examples provided it was quite easy to setup a first system that display on the serial monitor the BLE devices nearby.

The next step was to integrate the function with MQTT and by the way to recover the same level of funcionnality we already had with esp8266 + hm10. Not so difficult until there.
The goal of OpenMQTTGateway is to be able to have on a single system several gateways so as to centralize the telecommunication part of your controller.  In this context the following is easy to guess ;  add another tele…