Commit Graph
494 Commits
Author SHA1 Message Date
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
Northern Man acc0d91ca8 [WebUI] Added Basic Authentication (#1618)
* [WebUI] Added Basic Authentication

* Make the security option a MACRO to avoid typos in future updates
2023-04-27 16:49:09 -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
Tamas DAJKA e3e700449b [RF] Added Pilight RAW packet return support (#1604)
* Added Pilight RAW packet return support - can be enabled in User_config.h
2023-04-25 17:13:01 -05:00
Northern Man 5927259db6 [BT] Fixes for DT24 Triggering restart during discovery (#1614) 2023-04-24 07:47:02 -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 04d7a205d1 Update to version to RTL_433_ESP version 0.2.1 (#1612)
* Update to version 0.2.1

* Lint
2023-04-19 10:58:33 -05:00
Northern Man 7d80508fef [WebUI] Stack memory tuning (#1610)
Reduce WebUI Stack by 800 Bytes during firmware upgrade
2023-04-19 10:57:58 -05:00
DigiH de07e46494 Config Save typo fix (#1611) 2023-04-17 18:01:50 +02:00
DigiH c7b6be385c [WebUI] WebUI design fixes and changes (#1607)
* [WebUI] WebUI design fixes, harmonisation and changes

* Variation 1

* Extend minimum width
2023-04-15 16:53:18 -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
mrickma 4f3bb432e5 [INDICATORS] Neopixel 2leds (#1596)
* Add Adafruit NeoPixel library #defines

* Currently FastLED causes rapid reboots on ESP32C3 boards when OMG signals.
  Onboard RGB LEDs can be adressed more reliably with the NeoPixel library.
  Define RGB_INDICATORS=2 to use this addition.
* rebase fix: adapt to "Bump ESP32" changes in development

* Add build environments for the Espressiv ESP32-C3-DevKitC-02 board

* esp32c3-dev-c2-ble and esp32c3-dev-c2-ble-no-serial environments both
  use the Adafruit NeoPixel library for the onboard RGB LED as FastLED
  causes rapid reboots.

* Only occasional reboots of this board occure when serial output is not
  read. The -no-serial version further improves stability.

* Add a build environment for the Espressiv ESP32-C3-DevKitC-02 board

* The esp32c3-dev-c2-ble offers a reasonable compromise between logging
  and stability of OMG on this board.
2023-04-10 10:44:04 -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
DigiH 4fa74e31ba [WebUI] Small WebUI design changes (#1594)
• Display view with fixed height and light text on dark background and content centred
• Non-breaking spaces used for MAC part in heading
2023-04-06 19:51:40 -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
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
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
DigiH 08279baf65 [SSD1306] prefs start-up optimisation (#1579)
Avoid
[ 137][E][Preferences.cpp:483] getString(): nvs_get_str len fail: SSD1306Config NOT_FOUND
error during start-up when no save preferences have been found
2023-03-27 19:14:59 -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 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 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
DigiH 85d6494d62 [BT] "track" tag removal (#1562)
"track" tag removal when pubAdvData is false
2023-03-22 13:01:49 -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
Northern Man d2470288e5 [BT] InUse updates for DT24 (#1553) 2023-03-20 07:38:55 -05:00
Northern Man 7c4c90d777 [RTL_433] Update to rtl_433_ESP v0.1.8 (#1552) 2023-03-20 07:37:04 -05:00
Northern Man 4e93722098 [SSD1306] Fix reboot loop with latest ESP32 platform (#1551) 2023-03-20 07:35:14 -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
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
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 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
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
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 97750611f8 Fix for #1458: crash on ASCII and HEX data (#1526) 2023-03-12 15:52:24 -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