OpenMQTTGateway v1.6.0 released

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.

Finally, OpenHAB users can now use any build with autodiscovery. The specificities of OpenHAB HA convention processing can be set at runtime with an MQTT command

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

Hello
With new firmware and wifi config can`t connect to xxxxxx.duckdns.org mqtt server address, won’t save my mqtt server adress that i insert wifi config

}[100687][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: No WebUI config to load
N: OpenMQTTGateway URL: http://192.168.1.79/
N: ZwebUI setup done
[102193][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: BT config not found
N: BLE scans interval: 55555
N: BLE connects interval: 3600000
N: BLE scan duration: 10000
N: Publishing only BLE sensors: false
N: Publishing random MAC devices: false
N: Adaptive BLE scan: true
N: Active BLE scan interval: 55555
N: minrssi: -100
N: Low Power Mode: -1
N: Presence Away Timer: 120000
N: Moving Timer: 60000
N: OpenMQTTGateway modules: ["WebUI","BT"]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection...
W: failure_number_mqtt: 1
W: failed, rc=5
W: MQTT connection...
W: MQTT client disconnected no BLE scan
W: failure_number_mqtt: 2
W: failed, rc=5
W: MQTT connection...
W: failure_number_mqtt: 3
W: failed, rc=5
W: MQTT connection...
W: failure_number_mqtt: 4
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4
N: 
************* WELCOME TO OpenMQTTGateway **************
N: OpenMQTTGateway Version: v1.6.0
{
  "mqtt_server": "xxxi.duckdns.org",
  "mqtt_port": "1883",
  "mqtt_user": "ma",
  "mqtt_pass": "ma",
  "mqtt_topic": "home/",
  "gateway_name": "OMG_ESP32_BLE2",
  "mqtt_broker_secure": false,
  "mqtt_broker_cert": "",
  "mqtt_ss_index": 0,
  "ota_server_cert": "",
  "ota_pass": "OTAPASSWORD"
}*wm:[2] Added Parameter: server
*wm:[2] Added Parameter: port
*wm:[2] Added Parameter: user
*wm:[2] Added Parameter: pass
*wm:[2] Added Parameter: secure
*wm:[2] Added Parameter: cert
*wm:[2] Added Parameter: name
*wm:[2] Added Parameter: topic
*wm:[2] Added Parameter: ota
N: Attempting Wifi connection with saved AP: 0
[  1361][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: No WebUI config to load
N: OpenMQTTGateway URL: http://192.168.1.79/
N: ZwebUI setup done
[  2868][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: BT config not found
N: BLE scans interval: 55555
N: BLE connects interval: 3600000
N: BLE scan duration: 10000
N: Publishing only BLE sensors: false
N: Publishing random MAC devices: false
N: Adaptive BLE scan: true
N: Active BLE scan interval: 55555
N: minrssi: -100
N: Low Power Mode: -1
N: Presence Away Timer: 120000
N: Moving Timer: 60000
N: OpenMQTTGateway modules: ["WebUI","BT"]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection...
W: failure_number_mqtt: 1
W: failed, rc=5
W: MQTT connection...
W: failure_number_mqtt: 2
W: failed, rc=5
W: MQTT client disconnected no BLE scan
W: MQTT connection...
W: failure_number_mqtt: 3
W: failed, rc=5
W: MQTT connection...
W: failure_number_mqtt: 4
W: failed, rc=5
W: MQTT connection...
W: failure_number_mqtt: 5
W: failed, rc=5
W: MQTT connection...
W: failure_number_mqtt: 6
W: failed, rc=5

If it appears here, this means that it is saved.

Did you try to go to the WebUI to set it there:
OpenMQTTGateway URL: http://192.168.1.79/

1 Like