Commit Graph
220 Commits
Author SHA1 Message Date
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 d1e92137dd [OTA] Fix http timeout (#1736)
Time should be in milli seconds not in seconds
2023-08-28 16:54:16 -05:00
Vitaliy DandDigiH 2aa4368538 [SYS] User friendly manual network configuration (#1715)
* User friendly manual network configuration

* Add manual network config to the docs

* Add manual network config to the test env

Co-authored-by: DigiH <github@digih.net>
2023-08-05 13:41:57 -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
DigiH a210d5462b [WebUI] WebUI command fix (#1705)
• renamed command displaymetric to displayMetric for consistency with reported displayMetric
• added WebUI to receivingMQTT to be able to receive commands
2023-07-02 17:34:12 +02:00
Die Peter Pan 959c3afc6f [SYS] Extend Wifi mode and power change to ESP8266 (#1680)
Extend Wifi mode and power change to ESP8266
 (Fix the spelling of setESPWifiProtocolTxPower)
2023-06-22 14:17:24 -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
Dave 126aa86aec fix wrong time format for UTC timestamp (#1686) 2023-06-16 16:18:43 +02: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 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 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
flo-x 73913a33a2 [TOUCH] Add a sensor for esp32's touch sensing (#1650) 2023-05-24 13:22:10 -05:00
Florian 4b7b47c30c [SYS] Catch preferences operation returns (#1646)
in the logs
2023-05-20 15:18:10 -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 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 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 9f71a50109 [SYS] Change eraseAndRestart scope (#1627) 2023-04-29 18:23:23 -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
Die Peter Pan abeef870c7 [HM-RD] Added leak/water detection sensor with ESP32 deep sleep / sensor wake (#1615)
Added leak/water detection sensor with ESP32 deep sleep / sensor wake
2023-04-25 17:14:49 -05:00
Northern Man 8d5c2c4d58 [WebUI] Final Changes Pre Release (#1613)
Description:
1 - Fix nextDisplayPage/nextWebUIPage sync with SSD1306
2 - Discovery message name is SS1306
3 - Stack size tuning - ARDUINO_LOOP_STACK_SIZE=9600

With this change, in your personal ESP32 platformio environments you need to change ${com-esp.build_flags} to ${com-esp32.build_flags} and ${com-esp.lib_deps} to ${com-esp32.lib_deps}
4 - On information page, fix module display
5 - Set OTA URL to String systemUrl = RELEASE_LINK + latestVersion + "/" + ENV_NAME + "-firmware.bin";
6 - Allow back level espressif32 framework support
2023-04-24 07:46:30 -05:00
Northern Man 479ac5d343 [WebUI] Completion of WiFi and MQTT Configuration (#1603)
* Configure WiFi - 1/2 working

* WiFi and MQTT Configuration

* Refactor MQTTtoSYS

* Firmware Upgrade is Wired
2023-04-12 13:29:03 -05:00
Florian 5b2075dd5c [SSL] Update MQTT cert size (#1600)
To accommodate larger certificates
2023-04-09 18:22:59 -05:00
Die Peter Pan 4e51d9ec45 [LPM] ESP8266 and DS1820 DeepSleep (#1591)
Add support for the ESP8266 deep sleep and required change for DS1820 sensor used in my project.

Allow defining DS1820_RESOLUTION and DS1820_INTERVAL_SEC in ENVIRON without editing config file.

Allow DTimeBetweenReadingmq2 Env. MACRO change without editing source config file.

Added some an example ENVIRONMENTS

Add ESP8266_DEEP_SLEEP_IN_US to nodemcuv2-all-test
2023-04-09 17:03:13 -05:00
Florian ac0215b5be [OTA] Fix BLE memory release when not using "latest" version (#1599) 2023-04-08 10:27:55 -05:00
Northern Man 1c367fd325 [WebUI] Add Configure MQTT and Logging (#1592)
* Configure MQTT and Loggin

* Configure MQTT speed up

* Lint
2023-04-06 19:51:14 -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
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
Northern Man bf004b078b Fixing headers for gateway modules (#1554)
* Fixing red squiggles in VSCode/PlatformIO

* Lint issues
2023-03-28 10:33:16 -05:00
Die Peter Pan 0ece563a52 [MQ2] Gas sensor & tweak DHT config to avoid editing source when PIN is different (#1576)
Add MQ2 Gas sensor & tweak DHT config to avoid editing source when PIN is different
2023-03-26 17:21:05 -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 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 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 b7b3bbb91a [OTA] Change topic for last update status (#1561)
To avoid conflict with the SYStoMQTT information
2023-03-21 15:36:15 -05:00
Die Peter Pan 7bae999435 [TEMT] Added Temt6000 light sensor using a d1 mini (#1550)
Added light sensor TEMPT6000
2023-03-18 09:33:35 -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
Die Peter Panandandre 3b4af96990 [WIFI] Added macros for ESP - WifiGMode and WifiPower to reduce/eliminate Wifi interference on sensors like HC-SR501 (#1531)
* Fix WiFi interference on PIR

* Added to DOCS re: WiFi interference.

* Add sufficx -custom to configs without prod binaries

* Add ESP32 Wifi band and tx power to user_config.h

---------

Co-authored-by: andre <agreylin@gmail.com>
2023-03-16 17:50:14 -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
Florian 9219ff928c [OTA] Improve user feedback and regorganize processing (#1540)
To see OTA progress through MQTT messages or controller
And change the stopProcessing position so as to reduce chance of collision with other processes
2023-03-16 10:01:20 -05:00
Florian 17ce2debce [OTA] Add hourly update routine for update check (#1538)
Update check will be done at start and hourly
2023-03-16 07:59:39 -05:00
ilgrank dbba1bdaf7 [MQTT] Optional message retain flag (#1534)
* Define optional sensor_Retain

...with default : false to preserve current behaviour

* Support optional sensor message retaining
2023-03-15 13:20:08 -05:00
xopr 504463c5c2 [LORA] Added WiPhone LoRa support (#1458)
* Added WiPhone LoRa support

* Centralised raw-hex functions
2023-03-12 12:09:45 -05:00
Florian a9f8f803e5 [HA Discovery] Fix discovery switch (#1509)
extend scope of boards
2023-03-07 14:24:51 -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
DigiH a6e0f6094c Inverted position shifting idle logo (#1484)
* Inverted idle logo

Back on white background start-up logo.
Inverted idle logo with random positioning.

* Idle Logo display default true

DISPLAY_IDLE_LOGO true as burn-in screens saver, especially fo the constant heading and line

* Display Brightness added

* SSD1306toMQTT / MQTTtoSSD1306

Additional "onstate" and "brightness" setting and regular display state reporting

Docs - separate Displays section
2023-03-01 14:36:05 -06:00
Florian 454a062b3b [OTA] Enable 2 clicks OTA update / one simple MQTT command (#1485)
* [OTA] Add automatic OTA updates

This feature will enable to update the gateway with one button or a simple MQTT command.

* [CI] Enable automatic OTA for nightly development builds

And integrate the latest_version file creation into the CI

Enable to specify a particular version
and switch between dev and production builds
2023-02-27 12:54:30 -06:00