Commit Graph

133 Commits

Author SHA1 Message Date
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
DigiH
5421f0e995 [DOCS] typo fixes (#1816) 2023-11-26 13:07:18 -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
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
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
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
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
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
46616d9fa8 [SYS] Increase default portal timeout to 4 minutes (#1751) 2023-09-21 16:10:59 -05:00
Florian
bfca747d4b [SYS] Add alpn (#1745) 2023-09-14 18:11:46 -05:00
Vitaliy D
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
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
Florian
ad4e4b55c7 [IND] Fix red led display (#1629)
Fix critical indicator not working on development branch
2023-05-01 16:27:51 -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
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
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
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
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
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
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 Pan
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
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
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
Florian
6dbcd0d888 [LED RGB] Enable ON OFF Led power display depending on actuator status (#1451)
Switch ON the power LED to green when the Actuator is ON and switch it OFF when the Actuator is OFF
2023-02-10 18:49:18 -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
159d362f2a [TRIGGER] Enable reset at start when InputGPIO is used (#1447)
TimeToResetAtStart defines the start period
2023-02-10 17:04:58 -06:00
Florian
e53c48dd96 [ONOFF] - Improve Led display (#1430)
Improve Led display when limits are reached
2023-01-27 14:35:39 -06:00
Florian
76b5e9269f Fix internal temperature reading on ESP32 (#1391)
The previous macro used SENS_SAR_MEAS_WAIT2_REG to identify if we have the reading capability was not working, so replacing it by a fresh one NO_INT_TEMP_READING, defined as a negation due to the fact that most of the ESP32 supports internal temperature reading.
2023-01-12 18:05:40 -06:00
Florian
4678783db5 Enable connection with encryption without certificate validation (#1386)
* Enable connection with encryption without certificate validation
* Add the cert validation for AWS env
2023-01-12 10:35:42 -06:00
Northern Man
9d6f7a0764 ssd1306 display of module messages (#1383)
* ssd1306 display of module messages

Supported Modules Include
- rtl_433
- bme280

* Switch to use convertTemp_CtoF
2023-01-11 20:31:12 -06:00
Northern Man
2e0d1708c3 Update to rtl_433_ESP 0.1.5 and support for LILYGO® LoRa32 V2.1_1.6.1 433 Mhz (#1371)
* Update to rtl_433_ESP 0.1.5

Includes support for LILYGO® LoRa32 V2.1_1.6.1 433 Mhz

* Fix lint issue

* Fix build and lint issues

* Add lilygo-rtl_433 to build.yml
2022-12-26 13:48:08 -06:00
Charles
edb8d1a591 Added Thingpulse ESP32 gateways (#1369)
* added thingspulse gateways

* added thingspulse gateways, RGB  LED for tinypico

* Added some LED and Birghtness options

* Requested Changes

* fixed format
2022-12-16 21:38:13 -06:00
DigiH
07b2a051ec Typo and clarification (#1340) 2022-11-30 20:13:45 -06:00
Florian
66588149a8 Change Error color to orange on RGB (#1333)
And enable its display when entering the WM portal
2022-11-28 20:28:03 -06:00
Florian
c98511ba36 Set the AP name with the short name plus the 4 first digits of the ESP mac (#1331)
so as to don't disclose the password used for WM.
Also change the wm password from MAc to be the last 8 digits, as these will change more than the first 8 ones.
Also make consistent the ifndef qnd the parsing between WM_PWD_FROM_MAC and USE_MAC_AS_GATEWAY_NAME
2022-11-28 20:06:36 -06:00
Florian
2ada47c3bc Enable to set the WM pwd from the Mac (#1323)
So as to reinforce security for AP configuration access, enable to set the Wifi Manager Password from the 8 first digits of the ESP Mac address
2022-11-28 13:21:03 -06:00
David Furey
ec96b72d96 Support LM75 temperature sensor (#1327)
* First draft of LM75 sensor based on HTU21 sensor

* Initialise I2C on ESP8266

* Add LM75 sensor to test builds

So that it will be tested with the continuous integration
2022-11-28 11:31:46 -06:00
Florian
ec21cbb880 Update default certificate of Github (#1322)
So as to enable updates with a payload without the cert, and add a command example. Also so change the update message to notice level
2022-11-16 15:16:32 -06:00