Commit Graph
222 Commits
Author SHA1 Message Date
DigiH 5f1463e6ab [BT] prmac to RMAC discovery fix (#1849)
prmac to RMAC discovery fix so as not to create discoveries for these as well as not publishing them
2024-01-05 14:58:28 +01:00
DigiH f2d3239350 [BT] Bump Theengs Decoder to 1.6.7 & prmac conversion to RMAC (#1844)
• Bump Theengs Decoder to 1.6.7
• Conversion of prmac decoders to RMAC, for RMAC filtering of random MAC devices, until and if OpenMQTTGateway gets Identity MAC/IRK functionality.
•HA discovery lock class added
2023-12-22 13:18:14 +01:00
Florian 6a4b38a0cb [BT] Fix scan continue even disconnected from network (#1829)
and cause an undesired restart
2023-12-07 16:59:06 -06:00
DigiH 4c633da151 [BT] Bump Theengs Decoder to 1.6.4 & NUTALE added as presence tracker (#1818)
• Bump Theengs Decoder to 1.6.4
• NUTALE added as presence tracker
• Small doc changes
2023-12-06 10:56:47 -06:00
Florian 5a07020144 [SYS][BREAKING] Optim json size (#1823) 2023-12-05 08:05:19 -06:00
Florian 7f9f042f7c [BT] Add gateway deactivation/activation command (#1821) 2023-12-04 12:20:10 -06:00
Florian eb5b8fa291 [SYS/BT] Semaphores and new BT Controller (#1819)
Add semaphore to the enqueue calls to avoid concurrency issues
Add new BT controller to avoid scan evt timeout bug
2023-12-01 07:15:07 -06:00
Florian 87b26c867f [BT] Bump Theengs Decoder to 1.6.3 (#1811) 2023-11-20 15:56:27 -06:00
Florian 83137f6ac9 [SYS] Publish the reboot reason with retain flag (#1802)
So as to have the information stored on the MQTT broker
Also remove stopProcessing, not necessary as we follow by a restart
2023-11-14 08:53:50 -06:00
Florian e576b26b8c [BT] Fix HA discovery for motion and door sensor (#1798)
* [BT] Fix HA discovery for motion sensor

* Add status binary sensor and text sensor
2023-11-13 17:14:21 -06:00
Florian aca0850cd8 [SYS] Improve central queue stability (#1796)
* [SYS] Improve central queue stability

Improve central queue stability and add metrics

* Change partition for esp32dev-pilight-somfy-cc1101

to avoid program size too big error message with esp32dev-pilight-somfy-cc1101

* Only check for gateway updates at the start

to avoid consuming extra memory during operations
Publish the information about the available release with the retain flag
2023-11-12 12:59:45 -06:00
Florian 029409c0c3 [SYS] Implement a central queue (#1767)
to avoid concurrency issues when modules or/and gateways want to publish data
2023-11-08 07:26:21 -06:00
DigiH 7c48129f37 [BT] BM2 adjustment to only require model_id (#1777)
BM2 adjustment to only require model_id and not broadcast names any longer with adjusted BM2 decoder
2023-11-02 08:53:14 -05:00
DigiH 45bd18b03c [BT] BM2 Tracker addition and Discovery adjustment (#1765)
* BM2 as Tracker additions

* BM2 discovery update
2023-10-12 15:29:20 -05:00
DigiH d9f363c55a [BT] Mi Scales adjustment (#1769) 2023-10-06 11:25:09 +02:00
Zhiqiang Wang 00b2ec93cb [DISC] make mi scale weighing_mode and unit enum (#1766)
* make mi scale weighing_mode and unit enum

* lint
2023-10-05 19:55:07 -05:00
DigiH 592dcd3be6 BM2 name extension (#1750) (#1754)
BM2 name extension for connection
2023-09-22 18:23:33 +02:00
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