github 1technophile/OpenMQTTGateway v0.9.7
OpenMQTTGateway v0.9.7

latest releases: v1.7.0, v1.6.0, v1.5.1...
2 years ago

Release time!

This one 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.

Example MQTT message format:

mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{
  "ble_write_address":"AA:BB:CC:DD:EE:FF", 
  "ble_write_service":"cba20d00-224d-11e6-9fb8-0002a5d5c51b",
  "ble_write_char":"cba20002-224d-11e6-9fb8-0002a5d5c51b", 
  "ble_write_value":"TEST",
  "value_type":"STRING",
  "ttl":4 }'
  • 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.

mosquitto_pub -t "home/<gateway_name>/commands/firmware_update" -m
'{
  "version": "test",
  "password": "OTAPASSWORD",
  "url": "https://github.com/1technophile/OpenMQTTGateway/releases/download/v0.9.6/esp32-m5stack-ble-firmware.bin"
}'

But that's not all, let's take a deeper look at all the new devices and features!

New devices:

New features:

  • Set OTA name as Gateway_Short_Name + MAC if using mac as gateway name thanks to @h2zero
  • Add Wifi and mqtt broker configuration over MQTT commands. thanks to @h2zero
  • Ble read/write characteristics over MQTT. thanks to @h2zero
  • Add a macro to use the MAC address as the gateway name. thanks to @h2zero
  • Add triggering of actuator on/off state by button press. thanks to @h2zero
  • Implement error LED and status codes. thanks to @h2zero
  • Add switching between MQTT brokers with self signed client certificates. thanks to @h2zero
  • Make configuring WiFi and MQTT over MQTT optional thanks to @dkneisz
  • Replace github OTA update over MQTT with settings in user_config. thanks to @h2zero
  • Remove Secure Connection macro and add the config to wifimanager. thanks to @h2zero
  • Added somfy repeat option thanks to @Legion2
  • Trigger firmware update via MQTT. (ESP Only) thanks to @h2zero
  • Update to latest version of RC-SWITCH thanks to @NorthernMan54
  • Add val_tpl on HA discovery configuration - fix issue #939 thanks to @Odyno
  • Active Receiver Switching thanks to @NorthernMan54
  • GridFree SUN-2000G thanks to @BlackSmith

Under the hood:

  • fix: add code for miscale_v2 lbs thanks to @rayslinky
  • Minimize BLE resources. thanks to @h2zero
  • Set WifiManager debug level. thanks to @h2zero
  • Cleanup compiler warning. thanks to @h2zero
  • Erase stored settings in NVS when triggered. thanks to @h2zero
  • Bugfix: switching brokers with self signed certs. thanks to @h2zero
  • Use native FreeRTOS semaphore functions. thanks to @h2zero
  • Use correct SDA+SCL pins thanks to @qistoph
  • Fix null client when using MDNS. thanks to @h2zero
  • LYWSD03MMC relevant data from connection get replaced by broadcast data thanks to @fhb
  • BLE connection handling update. thanks to @h2zero
  • Fix BME280 thanks to @spacemanspiff2007
  • Minor RTL_433 Tuning thanks to @NorthernMan54
  • Fixed WiFiMulti when secure connection is enabled thanks to @Legion2
  • Remove reinitializing the BLE stack on each scan. thanks to @h2zero
  • Remove unsubscribe and disconnect calls in BLEconnect. thanks to @h2zero
  • Cleanup compiler warnings in strict environment. thanks to @h2zero
  • Enable the BME280 options to be settable using PlatformIO build flags, add and organize documentation thanks to @melyux
  • Usability Improvements for esp32 platform thanks to @NorthernMan54
  • Correct build error if discovery deactivated thanks to @1technophile
  • Compilation error: 'CLEARGRASSCGH1Discovery' was not declared in this scope thanks to @combatistor
  • Compiler warning when build with PIO, redefine of struct_size in main.ino thanks to @AlmightyFrog

Breaking:

  • Per default remove MQTT discovery of RF switch with RF gateway thanks to @1technophile
  • LED_SEND and LED_RECEIVE macro has been replaced by LED_SEND_RECEIVE

Docs:

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

Don't miss a new OpenMQTTGateway release

NewReleases is sending notifications on new releases.