Commit Graph
205 Commits
Author SHA1 Message Date
Florian 9caccbd14c [OTA] Stop the BLE scan when doing OTA (#1731)
Rather than waiting for its end. This will improve the success rate of OTA especially when the scan duration is high
2023-08-11 21:12:46 -05:00
Florian 79a8591b83 [BT] Fix RMAC filter (#1728) 2023-08-07 16:34:53 -05:00
Florian 1f2f8dc1d6 [BT] Avoid duplicates messages (#1727) 2023-08-07 09:38:04 -05:00
Florian fac602e457 [BT] Restarting the tasks is not enough in case of BLE stack stuck (#1725)
So restart the ESP instead
2023-08-03 06:49:33 -05:00
Florian 4ff05d5ac4 Bump decoder to 1.5.5 (#1699)
Filter the new attribute mac to avoid creating discovery sensor for it
2023-06-27 08:03:46 -05:00
Florian 5ff086a296 [BT] Fix BLE MQTT command trigger a reset (#1698)
Problem introduced with the bump of ESP32 platform from 3.5.0 to 6.1.0
2023-06-26 05:13:41 -05:00
Dave b5bc0f5dfc [SYS] Add timestamp for messages (#1677)
* add timestamp for RTL_433 messages

- add timestamp when puglishing
- add "GMT" as timezone for timestamp

* move timestamp publishing to main.ino
2023-06-15 15:17:41 -05:00
Florian 02d3b11a89 [BT] Avoid decoded duplicates (#1670) 2023-06-08 08:41:06 -05:00
Florian d3a53cef93 [BT] Enable the publication of non decoded servicedata when several are advertised (#1667)
Before the service data were overiden by the last one, with this modification several mqtt messages will be published, one per service data
2023-06-06 19:54:23 -05:00
Florian 6e23ca029b [DISC] Add runtime configuration for OpenHAB (#1658)
* [DISC] Add runtime configuration for OpenHAB

Add an MQTT configurable system key "ohdiscovery" for OpenHAB auto discovery

* Docs and environments update
2023-05-31 11:35:35 -05:00
DigiH 88fc5643e8 [BT] Force Active Scan when same interval as as Passive Scan (#1654) 2023-05-24 13:20:09 -05:00
Florian 4b7b47c30c [SYS] Catch preferences operation returns (#1646)
in the logs
2023-05-20 15:18:10 -05:00
Florian e640c8342a [CFG] End preferences when key not found (#1640) 2023-05-11 12:53:36 -05:00
Florian b1667190d5 [BLE] Add moving beacon detection (#1636) 2023-05-11 07:42:52 -05:00
Florian 28f9fbff60 [BLE] When BLE watchdog is triggered, only deinit and reinit BLE (#1635)
* [BLE] Watchdog restart BLE only

* Add minFreeHeap and blecorestacktrace indicators
2023-05-11 07:42:20 -05:00
Florian 9bbe909661 [SYS] Optimize memory usage (#1632)
Add MQTT BLEtask stack follow up and reduce allocated stack
Other memory usage optimizations
2023-05-02 15:22:57 -05:00
Florian 39b36b4456 [BT] More aggressive memory release when stopping process (#1626)
To enable smoother OTA
2023-04-29 08:04:38 -05:00
Florian 177fb97715 [SYS] Refactor ESPrestart (#1625) 2023-04-28 17:06:23 -05:00
Florian 79615516ef [BT] BLE Scan watchdog relying on scan count rather than msgs processed (#1622)
* [BT] BLE Scan watchdog relying on scan count rather than msgs processed

* Condition the scan increment following the scan result
2023-04-28 15:14:01 -05:00
Northern Man 5927259db6 [BT] Fixes for DT24 Triggering restart during discovery (#1614) 2023-04-24 07:47:02 -05:00
DigiH de07e46494 Config Save typo fix (#1611) 2023-04-17 18:01:50 +02:00
Florian 6e8b463213 BT Watchdog Timer (#1590)
Implement a BLE scan watchdog to bypass the problem related to the BLE scan hang scan_evt timout
2023-04-06 15:08:40 -05:00
DigiH e560bd7904 [SYS] Avoid nvs errors (#1588)
Avoid nvs errors when trying to load or erase non-existent nvs preferences.
2023-04-05 14:18:59 -05:00
Northern Man 9b6133ff03 WebUI - First Release (#1586)
* WebUI - First Release

* Lint / Build Issues

* Add WebUI as a default module

* Fix ESP8266 builds
2023-04-05 14:17:08 -05:00
Florian 338fc43825 [OTA] Free memory by deleting BT tasks when launching OTA (#1573)
* [OTA] Free memory by deleting BT taskswhen launching OTA

and restart if fail
Also factorize restart function for ESP
2023-03-24 10:12:08 -05:00
Florian 46273763ed [HA Discovery] Fix trackers being auto discovered with all their properties (#1567)
* [HA Discovery] Fix trackers being auto discovered with all their properties

* Fix HA warning

Template varaible warning when rssi key is absent
2023-03-23 11:25:22 -05:00
DigiH 85d6494d62 [BT] "track" tag removal (#1562)
"track" tag removal when pubAdvData is false
2023-03-22 13:01:49 -05:00
Florian 80e00883fb [HA Discovery] Fix RMAC discovery of unwanted devices (#1557) 2023-03-20 14:36:47 -05:00
Florian 9299ee7970 [BT] Fix discovery of device tracker Tile that adv name only (#1556) 2023-03-20 13:01:03 -05:00
Northern Man d2470288e5 [BT] InUse updates for DT24 (#1553) 2023-03-20 07:38:55 -05:00
Florian 85650a6204 [BT] Device tracker presence detection (#1548)
Add device tracker detection and automatic creation following HA discovery convention
So as to trigger the away state, add an offline status to the identified BLE trackers
2023-03-20 07:31:00 -05:00
ilgrank c8510f2605 [SYS] Add utc & unix timestamp options to SYStoMQTT and Sensor messages (#1533)
Add optional timestamps to the SYStoMQTT and modules messages
Also, the sync with the NTP time server now occurs every hour (can be defined with TimeBetweenCheckingSYS in UserConfig.h)
2023-03-17 10:49:27 -05:00
Florianandh2zero 33ea56bf12 [BT] copy advertised device to avoid concurrent data access. (#1537)
Co-authored-by: h2zero <powellperalata@gmail.com>
2023-03-16 08:00:47 -05:00
Florian 390302a6fa [HA Discovery] Filter on type rather than model_id (#1535)
For maintainability
Add Ibeacon in the filtering as they are not identified with RMAC type
2023-03-15 14:28:12 -05:00
DigiH c7547044fe Scan_Duration as MQTT command (#1516)
Scan_Duration as runtime MQTT command 'scanduration'
2023-03-10 15:12:08 -06:00
DigiH 95b749833c [BT] Known Random MAC address filtering (#1514)
* [BT] Random MAC address filtering

Random MAC address filter with runtime boolean setting
randommacs

* APPLE_CONT added to discovery and data process
2023-03-09 09:35:16 -06:00
Florian 8f47a80303 [BT Discovery] Improve BM2 discovery (#1510)
to filter advertisement coming from iBeacon packets that contains volt
as the voltage is not properly advertised throught the iBeacon packet and render a wrong voltage
2023-03-07 19:35:57 -06:00
Florian 9c73896999 [BT Discovery] Deactivate/Activate sliders dynamicaly depending on auto adaptive state (#1502)
To avoid having unnecessaries commands in the interface
2023-03-06 14:20:08 -06:00
DigiH 1b5215de42 [SSD1306] Partial MAC address in BLE title (#1498)
* partial MAC in title

• Last three octets of MAC address in title to differentiate devices with the same model name.
• fixed memory leak
• process optimisation

* lcd to oled

lcd to oled renaming
2023-03-03 14:53:07 -06:00
Florian f35baa9da0 [BT] Add BM2 voltage (#1495)
* [BT] Add BM2 voltage

Voltage retrieval through a BLE connection, frequency of the BLE connection is defined by `intervalcnct`

* Add doc

Credits to https://github.com/KrystianD/bm2-battery-monitor
2023-03-02 11:02:03 -06:00
Florian 1cdf6558a9 [ONOFF] ESP32 Attempt to recover previous actuator state when power has been lost and overcurrent detection change (#1494)
And set the trigger of overCurrent to 2 consecutive measures
2023-03-01 17:44:07 -06:00
Florian fa636bae0f [BT] Adaptive scan sequence change (#1493)
When reactivating adaptive scan, restore default
2023-03-01 17:09:18 -06:00
DigiH c77a16867d [SSD1306] BLE devices display - Take 2 (#1492)
* BLE Display - THB, THBX, PLANT, AIR, BATT, BODY

* SCALE

* BBQ

* Filter MS-CDP, GAEN and IBEACON

* Mopeka & Smart Dry

* ACEL

ACEL sensor, as most also have temp and hum, but no acceleration info display included so far.

* Only display when properties are present

Only display when properties are present, to avoid model only display for devices which require active scanning at a larger interval, e.g. Mi Band and similar.

* LilyGo-BLE environment

* BLE display relocated

BLE display relocated to have pubadvdata "type" in message, required for the different type display functions.
2023-03-01 15:09:45 -06:00
Mark Smith ecd23b9680 Allow for both BT and RTL_433 Gateways at the same time. (#1491)
* Allow for both BT and RTL_433 Gateways at the same time.

* Fix linting error.
2023-03-01 14:09:51 -06:00
Northern Man e5ef78b010 Corrected device_class for DT24 Bluetooth Voltmeter (#1459)
Found during Power Meter testing that the DT24 voltage and current discovery values were being created as power and not voltage and current.
2023-02-15 15:27:58 -06:00
Florian 091d8a4fa7 [BT] Fix for saving interval and intervalacts separately from the save keyword (#1462)
The interval and intervalacts were overwritten at startup when adaptive scan was deactivated
2023-02-15 15:27:29 -06:00
Florian 115fdf80aa [BT] Improve conditions of adaptive scanning (#1450)
To avoid setting several times the BLEinterval for one sensor
2023-02-10 17:54:56 -06:00
Florian 5bcf214d68 [LPM] Add capability to deactivate the function at build time (#1449)
To enable boards with the constant power supply to don't build this function.
Change the default behavior for the mode not to be built by default.
Only the boards with batteries are keeping it
2023-02-10 17:07:28 -06:00
Florian 7c0fafd48e [BT] Continuous active scanning when adaptive scanning is false (#1448)
Set `interval` and `intervalacts` to the minimum when adaptive scanning is deactivated. When the user encounters a situation on which a device is not detected due to adaptive scanning, we set the gateway to continuous active to maximize the chance to detect the device.
2023-02-10 17:05:52 -06:00
Florian 1b0778dc0a [LPM] - Update state (#1445)
When issuing a low power mode change update the state to the controller
2023-02-09 16:18:39 -06:00