Presence detection, BLE, mi flora, RF gateway with ESP32, OpenMQTTGateway is now compatible

I’m happy to share with you the launch of Theengs Plug

The first product powered by OpenMQTTGateway out of the box.

The plug is available for North American customers and can:

  • Be controlled remotely
  • Act as a Bluetooth Gateway to retrieve data from sensors
  • Measure the energy consumption of the plugged device

Here are the characteristics:

Power Supply 100-120VAC, 60Hz
Max current 15A
Microcontroller ESP32
WiFi Band 2.4 GHz
Protocol MQTT
Operating Humidity 0%~95% (No condensation)
Operating Temperature 0 ºC ~ 40 ºC
Storage Temperature -10°C ~ 50°C
Dimensions 4.05in * 1.37in * 2.4in/103mm * 34.6mm * 61mm

Theengs Plug hardware is UL certified.

The plug will be preloaded with OpenMQTTGateway and will support over 50 BLE devices .

This is also a way you can support the OpenMQTTGateway project!

2 Likes

Here is a video tutorial for RTL_433 on ESP32 + HA:

1 Like

New release v1.4.0

Adaptive scanning

This release brings a very interesting feature for Bluetooth Low Energy scanning.
You may have already asked yourself, what should I set for the interval between my scans? Do I use passive or active scanning? Or how do these parameters impact the battery life of my sensors?
To remove these questions, @DigiH and I have integrated an innovative function - Adaptive scanning

Adaptive scanning will decide automatically following your devices if you need to use passive/active/continuous scanning.

For example, a door or a PIR sensor will require continuous scanning, so if detected, the gateway will reduce its time between scans to the minimum. Or your devices may also require active scanning to retrieve data. The gateway will trigger active scans at regular intervals in this case.
Behind the scenes, a big work on device categorization and analysis has been done in Theengs Decoder to enable this feature.

Why are we doing this?
Increase your sensors’ battery life, decrease network traffic, and reduce gateway power consumption.

See below in Home Assistant how the interval is automatically adapted after the detection of a PIR sensor nearby.

OpenMQTTGateway-adaptive-scan

This new feature is activated by default, you can deactivate it, and the gateway will go directly into continuous active scanning.
Consequently, the esp32ble-dev-cont environment has been merged into esp32ble-dev, and the “Active scan” command has been removed. You can remove the topic from your broker to delete it from the controller.

Theengs Plug

Also, this release brings support for the second RGB Led of the Theengs Plug alongside the capability to reset at the start. I encourage Theengs Plug users to update following this guide.

New boards

New BLE devices

Devices Model Measurements
Polar H10 Chest strap activity heart rate

Features

Docs

Miscellaneous

New Contributors

Full Changelog: v1.3.0…v1.4.0

What do I have to change to have devices show up in mqtt, the only thing showing up is the esp32 with OMG installed.

yea, I think your device must be listed here
https://docs.openmqttgateway.com/prerequisites/devices.html#for-ble-devices

Your Govee is not on the list. My inkbird works fine, but nanoleaf does not show up anywhere

1 Like

What’s Changed

Introducing the latest update for OpenMQTTGateway! With over 75 changes done in just 40 days, this release is packed with exciting new features and improvements. One of the most noteworthy updates is the automatic creation and support of device trackers for presence detection, including popular devices like NUT, Tile, Mi Band, Amazfit, and RuuviTag.
Plus, the support for direct Over the Air updates from the controller means that you can easily stay up-to-date with future releases.

That’s not all - we also made some significant changes to the SSD1306, allowing you to control it directly from the controller or by MQTT commands and even use it to display BLE sensor data. And, with the new logo acting as a screen saver, you can reduce screen burn-in while still enjoying all the information shown.
Also, the RTL_433 library has been updated to provide more sensitivity and support new devices. To avoid creating unnecessary entities, the auto-discovery control is available from the controller and will now work as a pairing mode. It will be automatically deactivated after 30 minutes after its activation.

Finally, the Theengs plug can now retain its state in case of power outages or restart.

Theengs Plug

  • Create in use binary sensor for RN8209 Current sensor by @NorthernMan54 in #1474
  • [ONOFF/RN8209] ESP32 Attempt to recover previous actuator state when power has been lost by @1technophile in #1494

New devices or new data published

New boards

New features

Miscellaneous

Docs

New Contributors

Full Changelog: v1.4.0…v1.5.0

2 Likes

What’s Changed

Significant features in this release include a webUI to control your gateway and directly see the sensor’s data, access logs, and change the basic configuration without a controller!

OpenMQTTGateway-webUI

Go to your gateway IP and type admin/OTAPASSWORD. The password can be changed from the Wifi Manager portal.
Thanks, @NorthernMan54, for this add and to Tasmota as they inspired this feature and the code.
Note that the WebUI is unavailable with the Theengs plug in this version.

Also, now we can detect the appliance cycle start and end by leveraging the accelerometers of BLE beacons. The beacon needs to be configured to stop advertising when there is no movement, and the gateway will automatically publish a message to the broker to say that the beacon is offline. This is great for washing machines, dryers, or dishwashers’ end-of-cycle announcements and notifications.

Theengs Plug

  • The Theengs Plug will now detect changes of current superior to 0.1A and publishes a message to the broker to speed up the detection when a connected device is powered ON. This is useful to trigger actions when the plugged device starts.
  • We also added a task watchdog to restart the plug if the energy monitoring and overcurrent detection task is stuck
  • A FailSafe Mode also enables loading the wifi manager portal with a minimal setup.

New devices

New features

Miscellaneous

Documentation

New Contributors

Full Changelog: https://github.com/1technophile/OpenMQTTGateway/compare/v1.5.0...v1.6.0enMQTTGateway/compare/v1.5.0...v1.6.0

3 Likes

what is the default OTA password?
Thanks,
Papa Lanc

PS: HomeAssistant saw the upgrade and one click does it :slight_smile:

1 Like

The defaults login/password for the webUI are admin/OTAPASSWORD

Great!

Okay, I got in
So configure logging…Where do you see the logs?

If you go to the main menu and click “Console”

Thank you for this software! I have two of the Liligo 433 boards with displays setup for solid coverage of my house and backyard.

I had hoped turning off both gateway’s “Auto Discovery” switches would stop the gateways from sharing every phantom device with the MQTT server. However I seem to gather dozens of new Accurite devices every week. I also get fewer phantom devices named “Ambientweather”, “Megacode remote”, and “Secplus” (and probably others I’m forgetting at the moment.

The devices never report any updated data, so they aren’t even useful as bonus sensors. Is there a way that I’m missing to disable discovery of new devices, until I get a new device that I want to discover?

Hello Brian,

Thanks for the feedback, you could try the dev version, it will save the auto discovery state if you switch it off:
https://docs.openmqttgateway.com/dev/

1 Like

I am now running version 79a859 on both devices and turned the Auto discovery switch in Home Assistant off. I also deleted the unwanted devices from Home Assistant and we will see how it goes.

… 20 minutes later.

Watching the MQTT values hitting my Mosquito server I see both devices stored
{"discovery":false,"save":true} to the commands/MQTTtoSYS/config topic. And after watching for a bit I can see topics for Megacode-Remote, Interlogix-Security, and BurnhardBBQ devices in Mosquitto. So far none of them have appeared in Home Assistant.

I will leave both windows open overnight and see what is there in the morning.

… The next morning.

NOTHING! I am so happy with the results! Thank you.

FYI, here are screenshots of the devices discovered in the last 12 hours. (Tool: mqttui a simple “TextUI” command line app.)

1 Like

OpenMQTTGateway v1.7.0

What’s Changed

1 - New product We released the Theengs Bridge, an ESP32 based BLE gateway with an external antenna and an Ethernet RJ45 port. If you want to extend the range of your BLE network, the Theengs Bridge will help you reach further sensors than traditional embedded antennas. We used this opportunity to improve the support of Ethernet boards. You can onboard them through the WiFi portal and use Ethernet with WiFi as a backup network. With this evolution, there is no need to put your hands on a development environment or a configuration file!

image

Support our work by purchasing from our store !

2 - More RF devices supported OOTB Our users requested to decode RTL_433 FSK ( FSK is a radio frequency modulation) without building the environment. We now have Lilygo and Heltec environments supporting FSK (beta) from the web upload. And cherry on the cake, you can change the frequency directly from the WebUI. But that’s not all. Users with a CC1101 will be pleased to see that they can change the frequency of their devices and the library they use from the WebUI!

image

3 - More BLE devices supported Over 90 BLE devices are now supported by OpenMQTTGateway and Theengs; look at this impressive devices list!

4 - DIY :hammer_and_wrench: One of my favorite radio communication is LoRa. We added the capability to change the frequency, numerous parameters from the WebUI, and a new ESP32 temperature sender example #1742 . A great way to play with the protocol and build your nodes.

image

5 - Stability :weight_lifting_man:BLE is not forgotten with a new, more stable controller. We also added a central queueing mechanism.

6 - User experience We simplified password management; now, you will have only one password for the WebUI, OTA, and WiFi portal connection. This password is defined during WiFi portal onboarding and is compulsory. If you upgrade from a previous version, the default password for the WebUI, the onboarding, and OTA will be OTAPASSWORD.
I invite you strongly to change it in the WebUI (Configure Gateway).
Also, at the first connection, the WiFi portal no longer needs a password (bye-bye :wave: “your_password”).

7 - Integration Finally, @DigiH improved the discovery experience by tuning the Home Assistant MQTT discovery integration.

Theengs Plug

You can now change the brightness of the Theengs Plug LED with a slider. Suppose you use the plug in your bedroom; for example, you can program the LED to be OFF at night.
The BLE gateway can be deactivated if you want to use it solely as a smart plug.

New BLE devices

Devices Model Measurements
April Brother N07 temperature/humidity/battery/packet ID
BM6 Battery Monitor BM6 battery
GOVEE H5100 temperature/humidity/battery
GOVEE H5104 temperature/humidity/battery
GOVEE H5179 temperature/humidity/battery
INKBIRD IBS-TH12S temperature/humidity/battery
NUT NUTALE tracker
Oral B Toothbrush state, mode, sector, pressure, time
Lippert BottleCheck temperature/level/sync status/voltage/battery/reading quality/acceleration x/y-axis
ShellyBlu Button1 button press type/battery/packet ID
ShellyBlu Door/Window contact/rotation/battery/packet ID
ShellyBlu Motion motion, illuminance, battery, packet ID
ThermoPro TP357s temperature/humidity
  • Support for PVVX encryption
  • Add mac extraction from data
  • Add new devices as presence trackers

Board support

New features

Breaking changes

Miscellaneous

Documentation

Will be removed in the next version

  • SimplePublishing MQTT API
  • Support for Arduino UNO, NANO, MEGA
  • Support of Arduino IDE as a development environment

New Contributors

Full Changelog: v1.6.0…v1.7.0

3 Likes