Commit Graph
100 Commits
Author SHA1 Message Date
Florian 54b0eaeebf [DOCS] Add Theengs bridge (#1807) 2023-11-15 14:46:10 -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 cf285fba15 [INDICATOR] Dimmable RGB (#1801) 2023-11-14 07:34:55 -06:00
Florian cf21aed90c [BOARD] Add Theengs Bridge (#1799) 2023-11-13 17:14:58 -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 5a36034a2f [BT] - Bump decoder to v1.6.2 (#1797)
* [BT] Bump decoder to v1.6.2

* Replace separators / by commas for consistency with Theengs
2023-11-12 13:00:28 -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 811bc1f608 [WM] Check input fields content before saving (#1795)
Avoid entering nonvalid data into the input fields by checking their content, also hiding passwords, and making the relevant fields compulsory
2023-11-09 20:22:14 -06:00
Florian 673a895d44 [WEBUI] Do not display gateway password if using WifiManualSetup (#1793) 2023-11-08 11:15:14 -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
Florian ca9ef664ab [SYS] Reduce default WiFi timeout when changing it (#1789)
To avoid the WDT to trigger before the end of the connect result
2023-11-02 11:24:16 -05:00
Florian ca51136d26 [SYS] Remove WebUI passwords display and sending to client (#1788) 2023-11-02 11:23:46 -05:00
Florian 99de6ef4a6 [SYS] Password management improvements (#1787)
* Use one single password for Access point, OTA and WebUI access
* Enable to change the password during WM onboarding, with the WebUI, and MQTT command
* Remove the default password during the first configuration to connect to the AP
* When using the last 8 digits of the MAC as the password, it can now be changed
* Remove gateway password sending to client
2023-11-02 09:10:20 -05:00
Florian 5e01f40829 [BOARD] Differentiate Pilight from multi receiver environment (#1785) 2023-10-28 14:28:38 -05:00
Florian ad5d9bc53b [BOARD] Use LED and button (#1784) 2023-10-28 14:11:23 -05:00
Florian dfa94588d6 [CI] Need to wait for the v4 of the gh action for deploying to support both of these options (#1775) 2023-10-15 17:41:32 -05:00
Florian cbec4292de [CI] Keep existing gh-pages file when doing dev deployments (#1774) 2023-10-14 09:30:09 -05:00
Florian 8c06c66338 [CI] Publish doc gh-page branch with only the latest commit (#1773) 2023-10-13 15:14:50 -05:00
Florian c6394b241b [SYS] Add automaticaly / at the end of root topic if not present (#1772)
To avoid concatenation with the gateway name and a non working auto discovery
2023-10-12 15:37:35 -05:00
Florian c4a84651d4 [CI] update stale trigger to 90d (#1768) 2023-10-05 19:53:14 -05:00
Florian dd5e565788 [SYS] Configuration portal for Ethernet board and HA link to config (#1761)
* [SYS] Configuration portal for Ethernet board

Enable Wifi Manager as a configuration portal for Ethernet boards, also leverage the Wifi Access point as a fallback connectivity method

Add link to the WebUI from HA and reduce key length

* Remove unnecessary environment

Now that one environment cans support wifi and ethernet, merge the 2
2023-10-03 07:33:47 -05:00
Florian 3470882da0 [DISC] Add BT scan duration parameter auto discovery (#1762)
* [DISC] Add BT scan duration parameter auto discovery

* Add doc
2023-09-30 07:26:57 -05:00
Florian 246423a8a8 [LORA] Improvements, change frequency, webUI, Oled support, add boards (#1742)
* [LORA] Capability to change LORA frequency and Add OLED

Merge of the 2 environments for TTGO V1

* Merge messages keys with upper level json

* Id as a sub topic

* Add display and state measures

* Add frequency configuration through WebUI

* Add parameters

* Add auto discovery

* Add node example for ttgo lora32 v1

* Add environments and fix scope

* Support for sync word as a byte

* Fix TX Power setting

* Add LoRa gateway description

* Add onlyknown filter
2023-09-27 11:12:55 -05:00
Florian 8a124c8841 [SYS] Increase mqtt username, base topic, otapassword and mqtt password max length (#1757)
fix #1746
2023-09-24 10:10:06 -05:00
Florian f974f24411 [BOARD] Add M5Stack AtomS3U (#1740) 2023-09-21 20:53:44 -05:00
Florian 46616d9fa8 [SYS] Increase default portal timeout to 4 minutes (#1751) 2023-09-21 16:10:59 -05:00
Florian 0daabe126e [DOCS] Add RF gateway explanation (#1748)
* [DOCS] Add RF gateway explanation

* Add info about receiving and transmitting capabilities
2023-09-20 19:02:22 -05:00
Florian bfca747d4b [SYS] Add alpn (#1745) 2023-09-14 18:11:46 -05:00
Florian 8de824b6fa [DOCS) Readme improvements (#1743)
* [DOCS) Readme improvements
2023-09-14 11:47:24 -05:00
Florian 84e6f46206 [SYS] Breaking remove version publication (#1737)
Redundant with the publication into SYStoMQTT and also inconsistent with the main publication format used by the project (json)
2023-08-31 12:53:43 -05:00
Florian 61d6a8b879 [DOCS] Create stale workflow (#1739) 2023-08-30 17:48:18 -05:00
Florian d1e92137dd [OTA] Fix http timeout (#1736)
Time should be in milli seconds not in seconds
2023-08-28 16:54:16 -05: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 7a2bb04a1b [DOCS] Theengs Plug highlight and SEO improvements (#1730)
* [DOCS] Theengs Plug highlight

* Add alt content for images and description
2023-08-11 13:04:52 -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 375ce91ece [SYS] Add global task watchdog timer (#1724) 2023-08-03 06:48:25 -05:00
Florian e673788da5 [OTA] Fix macro check to avoid having the regular new update check (#1723) 2023-08-02 08:45:41 -05:00
Florian a6c0a3b1d4 [SYS] Add save option to discovery and ohdiscovery key and remove discovery for Arduino boards (#1696)
Enabling to keep discovery off if required

Remove Mqtt discovery for Arduino UNO and ATMEGA
2023-07-30 17:34:58 -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
Florian 7b3b14e254 [IR] Increase app flash size by using min_spiffs.csv (#1697)
fix #1690
avoid ESP32 not starting with IR environment
2023-06-23 09:02:18 -05:00
Florian 4d8ba2a680 [SYS] Better handling of certs and OTA checks (#1695)
Add a macro to enable removal of update checks
Separate certificates from user_config.h
Consider latest version as the default
Do not use a cert if the url is not
Simplify AWS macro scope
2023-06-22 13:03:22 -05:00
Florian 03105651aa [CI] Add new boards into web upload release production and dev (#1685) 2023-06-14 12:48:33 -05:00
Florian e27e055bf8 [DOCS] Update devices from new decoder version (#1675) 2023-06-10 15:01:17 -05:00
Florian 0dbb0f1bdf [RN8209] Adjust task watchdog timeout (#1674) 2023-06-10 14:42:35 -05:00
Florian f31ed28df7 [SYS] Add failsafe mode (#1673)
A press at start during more than 30s after a previous reset will start the board in failsafe mode
2023-06-09 15:37:26 -05:00
Florian b6df2006bf [BT] Bump decoder to v1.5.0 (#1672) 2023-06-08 19:52:48 -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 53f267799a [CM] Add ps1 script ignore (#1666) 2023-06-06 14:22:17 -05:00
Florian 15416e99b1 [DOCS] Add JSONPath prerequisite (#1663) 2023-05-31 11:48:30 -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
Florian 4a28f491f5 [RN8209] Add task WDT (#1657)
Add WDT and reduce update as we now have a change based pub mechanism
Base the change detection on current rather than power and simplify it
Round the result to 2 digits after comma
Add docs
2023-05-30 08:14:23 -05:00
Florian 4b7b47c30c [SYS] Catch preferences operation returns (#1646)
in the logs
2023-05-20 15:18:10 -05:00
Florian aa63571537 [DOCS] Improve actuator documentation (#1645) 2023-05-19 10:51:12 -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
FlorianandNorthern Man 474b8a87ab [DOCS] Add webUI warning (#1637)
* [DOCS] Add webUI warning

* Update webui.md

---------

Co-authored-by: Northern Man <19808920+NorthernMan54@users.noreply.github.com>
2023-05-08 17:49:02 -05:00
Florian 705432b026 [LPM] Check preference key exist (#1634)
And don't go through this check if low power mode is deactivated
2023-05-05 12:00:24 -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 b03e18260f [RN8209] Fix publishing repeat (#1631) 2023-05-02 14:10:29 -05:00
Florian 25991bfbb4 [RN8209] Publish on change detect and heap usage optim (#1630)
Publish the RN8209 depending on a threshold added to a frequency
Also merge the 2 tasks into one to save heap
2023-05-02 10:31:58 -05:00
Florian ad4e4b55c7 [IND] Fix red led display (#1629)
Fix critical indicator not working on development branch
2023-05-01 16:27:51 -05:00
Florian 9f71a50109 [SYS] Change eraseAndRestart scope (#1627) 2023-04-29 18:23:23 -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 db32df90b8 [WebUI] Use common methods for restart and erase (#1624) 2023-04-28 16:03:03 -05:00
Florian 587797a7b3 [RN8209] Fix processlock usage (#1623)
* [RN8209] Fix processlock usage

Update processlock usage to the while, instead of the higher level condition that is never checked after the task is launched
2023-04-28 16:02: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
Florian 4b8dfbea42 [DISCOVERY] Improve method checks (#1620)
Check if char array is not null before reading their first char.
2023-04-27 20:19:45 -05:00
Florian 57651334dc [DOCS] - Add ElectroMaker video (#1617)
* [DOCS] - Add ElectroMaker video
2023-04-24 07:40:41 -05:00
Florian 80f3ac219e [SYS] Shorten gateway names (#1601)
To avoid being outside of AP name max length
2023-04-10 12:34:19 -05:00
Florian 38af4b86ca [DOCS] RF update (#1602)
Add srx882s and improve overall
remove FS1000A and XD RF
2023-04-09 18:46:01 -05:00
Florian 5b2075dd5c [SSL] Update MQTT cert size (#1600)
To accommodate larger certificates
2023-04-09 18:22:59 -05:00
Florian ac0215b5be [OTA] Fix BLE memory release when not using "latest" version (#1599) 2023-04-08 10:27:55 -05: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
Florian 5cd13e0d0d [OTA] Add version_tag automatic replacement to workflow (#1578) 2023-03-26 17:19:16 -05:00
Florian b806ea9354 [DOCS] Fix tip note for switchbot (#1577) 2023-03-26 10:29:23 -05:00
Florian 404b224871 [DOCS] Update presence detection docs (#1575) 2023-03-24 19:54:21 -05:00
Florian 95896e0a04 [BT] Bump decoder version (#1574) 2023-03-24 10:36:25 -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 d1e9e8bf9b [RN8209] Fix in use switch value (#1572) 2023-03-23 18:25:13 -05:00
Florian 11faf9a948 [SSD1306] Give some time for the flash to start (#1571)
Before reading the preferences, the goal is to avoid getting stuck during preferences reading operations
2023-03-23 14:11:19 -05:00
Florian 22ea25c986 [RF] Filter interlogix discovery (#1570)
Currently, many entities are created with this device, but it seems more like a noise than real devices as they only present an RSSI and battery property.  So filtering changes while we search for library optimization.
2023-03-23 13:12:28 -05:00
Florian 699de44895 [BT] Decoder dev branch (#1565) 2023-03-23 11:29:39 -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
Florian 86744b283b [SYS] Bump ESP32 platform to v6.1.0 and ESP8266 to v4.1.0 (#1547)
* Bump ESP32 platform to v6.1.0 and ESP8266 to v4.1.0

* Fix ESP32 not connecting to Ethernet

And remove check updates as it is now done every hour

* Do not define LED pins if not explicitly stated

* OLED need to be reset for Heltec Lora 32 V2

* Fix issue with SSD1306 saving
2023-03-23 11:24:49 -05:00
Florian 537d4849e5 [NTP] Only check NTP when user requires timestamp (#1569) 2023-03-23 10:44:05 -05:00
Florian 8d1488e4c1 [OTA] Fix invalid json (#1568) 2023-03-23 10:43:30 -05:00
Florian b7b3bbb91a [OTA] Change topic for last update status (#1561)
To avoid conflict with the SYStoMQTT information
2023-03-21 15:36:15 -05:00
Florian e1fef642cd [BM2] Fix discovery relying on MODEL_ID (#1560)
To don't take into account the iBeacons messages change the condition to is not defined
2023-03-21 13:07:09 -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
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
Florian c12f51ee0e [OTA] Remove version_tag from title (#1546)
To avoid redundancy in the display
2023-03-17 16:10:51 -05:00
Florian d530841b0e [DOCS] Add required version for single command OTA (#1542) 2023-03-16 11:23:23 -05:00
Florian 3f92e14ba6 [HA Discovery] Auto Off timer (#1541)
* [HA Discovery] Auto Off timer

Auto deactivate discovery after 30min from the last activation, goal is to avoid unwanted entities created
2023-03-16 10:43:18 -05:00