Most stable would be an arduino + hm10, but it will not be the fastest to detect beacons.
Regarding the pi on a general manner i don’t think they are stable, mainly due to the use of sd card.
I think currently the esp32 is a good compromise.
Here is the board that I use :
my use cases doesnt requires fast presence detections. Maybe you can ask here some users feedbacks.
Using 0.9.4 -beta I’m unable to see discovered mi flora using ha mqtt discovery. It’s my first usage of OMG, still wondering if it’s broken or I’m doing something wrong?
It was the case before but I didn’t find it logical , My thought was to differentiate entities according the physical devices separation. But maybe this is not the good approach in HA?
BLE devices identification, now the device id needs to be identified in upper case and with : between numbers pairs when setting a white or black list by MQTT for example
Hi @1technophile,
I configured my ESP32 (DOIT ESP32 DEVKIT V1) by uploading the bootloader (file .bin) and the “main.ino” file via arduinoIDE.
In the “User_config.h” file I uncommented the line “#define ZgatewayBT” BT “// ESP8266, ESP32” to use my ESP32 as a gateway BLE for NUTs.
The process was successful and I can see the RSSI of the NUT in the MQTT broker.
Having to use the NUT for home presence, how can I enable the payload that sees the status of the NUT in home and not_home (or on and off) to integrate it into Home Assistant?
These are the values I currently see in MQTT:
This one brings a lot of features and improvements.
In particular the support of RTL_433 library to ESP32 thanks to @NorthernMan54. This is a huge addition to the community as this library enables to support a lot of new protocols. More than 75 433Mhz protocols supported with an ESP32 + a CC1101!
Here is an example with a weather station:
Also, @csiki2 improved the BLE gateway by adding a queue mechanism, bringing more stability to the gateway, and improving the number of BLE packets transmitted. Thanks to this, the gateway can now be configured for the continuous scan (TimeBtwRead:0, Scan_duration:1000) and catch easily BLE PIR and door/window sensors events.
Regarding the BLE gateway, sensor devices are now created automatically in Home Assistant so as to gather their entities. You can add directly these devices from configuration->devices into your Lovelace UI. Thanks, @titilambert, and @francisp.
But that’s not all, let’s take a deeper look at all the new devices, boards, and features!
HASS Discovery - Implement multi gateways discovery, created devices by autodiscovery are not anymore gateway dependent and can now retrieve data from all the gateways that are in range. The data will be transmitted to the same Home Assistant device.
The 0.9.7 brings a lot of features and improvements to BLE and TLS functions.
The support of a generic BLE connection to devices, you can now trigger a READ/WRITE to a BLE device through your ESP32 with MQTT. The gateway will initiate a connection to the device and acts on the service and characteristic given. For a value reading or writing. This opens a lot of integration possibilities, among others the control of actuators, valves, light, relays…
It could also be a good way to test a value retrieval with a BLE connection before asking for a native integration into the gateway.
Efforts have been made around the security connection functions, the TLS connection can now be configured within the configuration web page by adding the server root certificate (copy&paste) and checking a box.
You can alternatively use self-signed certificates and even several sets of them, if you want to handle several MQTT servers. With this comes also the ability to change the MQTT server by MQTT, with automatic return to the previous configuration if not working.
So as to make the update of the gateway you are now able to trigger it through MQTT, if the version is different than the current one and if the password is OK, the gateway will download and install the linked firmware.
Deprecate - functions that will be removed or modified on the next release:
The default gateway name for ESP will be generated automatically from the MAC address per default, OpenMQTTGateway in the AP name and the topic will be replaced:
AP Name: OMG_112233445566
Topic: home/112233445566/BTtoMQTT
Setting the Gateway_name will not be needed anymore unless you want to do it explicitely.
SimplePublishing and simpleReceiving methods will be removed see why here
Among new devices and boards this release brings some exciting features like the capability to connect and control a BLE device like a switchbot, here is a sample command for the SWITCHBOT S1:
OMG has been supporting for a long time reading of BLE broadcasters, we can also read data through a BLE connection but being able to act on a BLE device is something new. Opening a lot of possibilities and use cases like controlling BLE actuators, lights, valves, plugs…
Feel free to test and share your snippets of OMG command for the others!
Do you like BBQ? So get ready for the sunny months and set up your meat cooking monitoring thanks to 3 Inkbird BBQ sensors supported.
You wanted to analyze your HASS entities data on a long-term basis and you didn’t set up a separate DB to store those, you now have the support of long-term statistics into HASS directly with the auto-discovery.
You are a professional looking for an ESP32 firmware that can integrate to AWS and send sensor data, OMG now supports this type of integration.
But that’s not all, here is the exhaustive list of improvements!
Filter discovery messages against HASS classes list by @1technophile in #1127
Fix IR protocol name not correctly displayed on esp8266 by @1technophile in #1129
fix wifi manager portal missing parameters on esp8266 by @1technophile in #1132
Increase MQTT Packet size to enable longer certificates to pass by @1technophile in #1134
ESP8266: Fix partial erase of connection settings by @1technophile in #1150
Fix some incorrect timeouts when taking semaphores. by @h2zero in #1145
BREAKING:
[BREAKING] Change unique id structure for HASS discovery by @1technophile in #1147
You will see duplicate entities if you use HASS autodiscovery, explanation here
[BREAKING] Differentiate WM version by @1technophile in #1148
If you are using your own PlatformIO environment you will need to add the link to the suitable wifimanager library directly into your environment library list:
Hello I have the version of OpenMQTTGateway v0.9.10 before I had a version 0.98 and I was using inkbird 2x as well if it saw it as 4x, today I put the latest version the 0.9.10 and I find that instead of seeing it 2x or 4x I am IBEACON Gneric as in the photo, but does not see the correct name like “inkbird2xs_temp1” why ??? I had read that it was detected automatically
Could you connect to the mqtt broker of your home assistant with mqtt explorer and give me some screenshots of the BTtoMQTT topic please. Especially of the topic with the MAC address of your device.