Commit Graph

1085 Commits

Author SHA1 Message Date
h2zero
b9e6c4faba Workaround unsecure AP bug on restart. (#1343) v1.1.1 2022-12-04 18:21:12 -06:00
Florian
4bbdeadb53 Update RN8209 sensors names (#1342)
to NRG to be more generic

Co-authored-by: Florian <1technophile@users.noreply.github.com>
v1.1.0
2022-12-01 11:13:41 -06:00
Florian
20946f489a [DOCS] Add password tip (#1341)
* [DOCS] Add password tip

* Add mention of the Android popup

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2022-12-01 11:12:57 -06:00
DigiH
07b2a051ec Typo and clarification (#1340) 2022-11-30 20:13:45 -06:00
Florian
5a42b02ad8 Enable to configure the OTA password from the Wifi Manager portal (#1339)
So as to enable the user to change the default one when setting up the gateway
2022-11-30 14:51:37 -06:00
Florian
dee3ef4de5 Improve reset mechanism when MQTT is not connected (#1338)
This enables to wait less for the reset to trigger
2022-11-30 14:27:27 -06:00
Florian
8ee1c4e524 RN8209 energy sensor support with watt, voltage and current. (#1337)
Co-authored-by: h2zero <powellperalta@gmail.com>
2022-11-29 18:41:47 -06:00
Florian
145896516d Enable to set Manufacturer and Model (#1336)
from macros
2022-11-29 10:48:00 -06:00
Florian
8714141630 Remove the devices that have Random Mac from the internal memory (#1335)
So as to avoid to have a growing memory consumption, indeed each time these devices change their MAC it will create a new entry into the list. This increase continuously the memory consumption of the list. And as these devices can't be discovered and doesn't have interest to be white or black listed we don't store them
2022-11-28 20:29:07 -06:00
Florian
c58e765253 Enable to keep actuator on off state in case of restart (#1334)
and publish status as a json when triggering actuator on off through a button
2022-11-28 20:28:40 -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
3e9fbb21ff Move the button check at start of the program (#1330)
So as to enable to trigger the wm portal before the setup of all the modules
2022-11-28 20:04:48 -06:00
Florian
74a8698117 Bump Theengs Decoder to v0.9.7 (#1332) 2022-11-28 17:53:58 -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
Radim
4afb4a972f Adc bugfix (#1328) 2022-11-28 11:35:11 -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
David Furey
a41a529820 Update link to ESP boardmanager docs (#1325)
Looks like project has switched from markdown to reStructuredText
2022-11-20 16:05:47 -05: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
Florian
f5ce12a641 Add rgb gpio powering pin (#1321)
* Add RGB GPIO powering pin

When the RGB Led is powered by an uC pin, enable to power it up from the led setup

* Comments improvements
2022-11-16 14:15:00 -06:00
Florian
33e162111a Add RGB Led management for errors, infos, and send receive events (#1320)
* Add RGB Led management for errors, infos, and send receive events

Add RGB led management for indicators, integrate it for M5 Atom and ESP32 C3 and S3 dev board
Update Fastled version to 3.5.0.

The default behavior is with regular LED, to use RGB Led the macro RGB_INDICATORS needs to be define, along with the FASTLED_IND_TYPE, FASTLED_IND_DATA_GPIO and FASTLED_IND_NUM_LEDS
Note that some RGB led need to have a different color scheme, so in this case it can be entered along with the data PIN definition: -DFASTLED_IND_DATA_GPIO=27,GRB

* Add FastLed library to the environments
2022-11-16 12:58:22 -06:00
Florian
0099a579d2 Update VuePress (#1319) 2022-11-13 16:52:19 -06:00
dependabot[bot]
f32a9e77a5 Bump minimatch from 3.0.4 to 3.1.2 (#1318)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-13 12:41:36 -06:00
h2zero
9d7086558b Update Arduino core and BLE/WiFiManager libs. (#1310)
* Update Arduino core and BLE/WiFiManager libs.

* Add esp32-s3 and esp32-c3 environments.

* Update build script to use matrix.

* Update release build.

* Fix WiFiManager crash

* Use espressif32 version 3.5.0 for standard ESP32.

* Resolves BLE scan_evt timeout issue with latest version (5.2.0).

* ESP32C3 and ESP32S3 Env's use espressif32 version 5.2.0.

* Update LED pins for C3/S3 environments.
2022-11-13 12:35:18 -06:00
Sami Salonen
3d589ffa90 Handle OTA actively when MQTT is not connected (#1307)
* Handle OTA actively when MQTT is not connected

Resolves #1292

* Fix compilation for targets not having OTA

* ArduinoOTA.handle() only with non-ESP targets

* OTA check before reboot: fix condition and add more comments


Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-11-13 09:34:20 -06:00
Florian
62553dc2dd Add link to shop (#1317)
and remove the link to Board to avoid overloading the top bar
2022-11-11 13:38:20 -06:00
Radim
d392964b90 ADC improvement & fix (#1314)
* fix when ADC_DIVIDER is defined
NEW multiple readings option

* publish at least every 1min

* define minimum pub adc interval
2022-11-10 06:21:05 -06:00
Northern Man
e8cb115602 Update to rtl_433_ESP v0.1.4 (#1316)
Minor tuning of rtl_433_ESP signal reception for CC1101 and sx127x
2022-11-10 06:19:59 -06:00
Florian
fa88862081 Update RF module wiring (#1315)
to suggest 3.3V wiring instead of Vin, as Vin may not be always connected to the USB port on the development boards, also remove ESP8266 BT images (not supported anymore), also add mention to Heltec SX127X boards
2022-11-10 06:19:30 -06:00
crasu
7c8b85f9f4 fix rf gateway f strings (#1313)
Signed-off-by: Christian Krämer <christian.kraemer@tngtech.com>
2022-11-07 10:30:51 -06:00
crasu
567c2053c0 check spi connectivity for c1101 (#1287)
Signed-off-by: Christian Krämer <christian.kraemer@tngtech.com>
2022-11-03 07:45:08 -05:00
Radim
7d10502b8d fix pub of res field (#1311) 2022-11-03 07:40:51 -05:00
Florian
b2a757f28b [DOCS] Add RadioLib mention (#1304) 2022-10-26 06:16:02 -05:00
Florian
1f93fe3976 [DOCS] Remove git license (#1303) 2022-10-25 11:59:17 -05:00
Northern Man
fd8c3a79ae Updated docs for the Heltec ESP32 Board (#1301) v1.0.0 2022-10-23 19:34:59 -05:00
Florian
7837369993 Add Heltec board into the default env (#1300)
and list it in the web uploader
2022-10-23 16:10:59 -05:00
Florian
7f228647f0 Bump Theengs Decoder to v095 (#1298)
* Bump Theengs Decoder to v095

* IBT-4XC inclusion by @DigiH in #208
* ThermoPro TP359 by @DigiH in #210
* IBS-TH1 external probe differentiation by @DigiH in #211
* CGG1 firmware extension by @DigiH in #218
* Otio/BeeWi BSDOO by @DigiH in #214
2022-10-23 15:55:23 -05:00
Florian
c612169ba8 Fix discovery duplicates for BT devices (#1297)
Fix isdisc = true identification, introduced by 25b8123ff6
2022-10-23 13:37:20 -05:00
Northern Man
19d58e01e0 Defensive code for Heltec Display (#1296)
Added to Heltec board display code logic to reduce corruption of messages on the display

Two piece of defensive code were added

- Only display messages to the display when operating on Core 1 ( Default Arduino ESP32 CONFIG_ARDUINO_RUNNING_CORE )

- Only display one character/string at a time

In the event of failure, default to Serial output.

PS SSD1306 driver similar issues

https://github.com/ThingPulse/esp8266-oled-ssd1306/issues/326
https://github.com/ThingPulse/esp8266-oled-ssd1306/issues/352
2022-10-23 13:36:59 -05:00
Sami Salonen
941b1e109f Re-publish BTtoMQTT Theengs discovery topics on MQTT re-connect (#1290)
* Re-publish BTtoMQTT Theengs discovery topics on MQTT re-connect

- Improved version of #1274, this should re-publish more
- Handle return value of (MQTT) client.loop() to detect connection loss
  faster

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-10-23 10:57:39 -05:00
Northern Man
8bc65d62dc Update of rtl_433_ESP to version 0.1.3 - Support for SX127X transceiver module (#1291)
The main features of the upgrade to 0.1.3 of rtl_433_ESP are

1 - Change Transceiver Library to RadioLib

2 - Add support for SX127X transceiver module ( I used the 433 Mhz version of this Heltec module for development ).

3 - Added automatic calibration of the RSSI Signal detection Threshold

4 - Removed dependency on loop for start and end of signal detection, and moved to a ESP32 Task

5 - Moved received signal decoding to a ESP32 Task

6 - Identified Blueline PowerCost Monitor decoder as source of significant memory overhead and disabled.

7 - Multi Receiver support has been validated with RF, RF2 and PiLight
2022-10-20 11:14:45 -05:00
Northern Man
c570eead82 Delete main.ino.cpp (#1289) 2022-10-18 12:33:33 -05:00
Northern Man
c45181ef7e Heltec SSD1306 Display Support (#1283)
My environment

[env:heltec-display]   ; Heltec ESP32 Board with SSD1306 display
platform = ${com.esp32_platform}
board = heltec_wifi_lora_32_V2
build_type = debug
monitor_filters = esp32_exception_decoder
board_build.partitions = min_spiffs.csv
extra_scripts = pre:scripts/omg_firmware_version.py
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.wifimanager32}
  ${libraries.heltec}
;  ${libraries.m5stickcp}

build_flags =
  ${com-esp.build_flags}
  ${test_env.build_flags}
; *** OpenMQTTGateway Config ***
  '-UZmqttDiscovery'          ; disables MQTT Discovery
  '-DvalueAsATopic=true'
  '-DLOG_LEVEL=LOG_LEVEL_TRACE'
; *** OpenMQTTGateway Modules ***
  '-DZboardHELTEC="HELTEC"'
; *** Heltec Board Options ***
  '-DDEBUG_OLEDDISPLAY(...)=Serial.printf( __VA_ARGS__ )'
  '-DLOG_TO_LCD=true'         ; Enable log to LCD
  '-DLED_ERROR=2'
  '-DONBOARD_LED=25'          ; Onboard LED is GPIO 25 on the Heltec Board

monitor_port = /dev/cu.SLAB_USBtoUART
monitor_speed = 921600
upload_port = /dev/cu.SLAB_USBtoUART
upload_speed = 921600

1 - Set default LCD log level to WARNING
2 - Implemented a macro based displayPrint function that will be usable across different displays

- Added logo display when idle
- Fixed log-lcd mqtt function
- Enable OLED Display on Heltec Boards
2022-10-13 21:17:25 -05:00
Florian
b0fc25bfe0 [DOCS] Remove HM10 (#1284) 2022-10-11 19:43:15 -05:00
Florian
bf38bb52f6 Remove HM10 support (#1282)
Removing HM10 support as announced in the forum
2022-10-10 20:34:12 -05:00
Florian
bbaabcc20d Fix missing lowpowermode attribute (#1281)
LowPowerMode is not used outside of the BT gateway, removing it from discoveyr fixes #1267
2022-10-10 18:30:46 -05:00
Florian
aea3ac2577 Bump decoder to v0.9.0 (#1280)
* Bump decoder to v0.9.0

* Add parameters update
2022-10-10 13:54:19 -05:00
spinpwr
0ff3e98d91 Adding unique device names to HA dicovery (#1270)
* Adding unique device names to HA dicovery

Multiple devices of the same model got the same name in Home Assistant,
making the device list less informative when there are many of e.g. the
same sensor.
To over come this changed the function publishing discovery messages to
add the second half of the device mac address to the device name so it
becomes unique.

Issue: #1269
2022-10-10 13:10:33 -05:00
DigiH
8c7c1146f8 adding-protocols BLE clarification (#1279) 2022-10-10 15:22:02 +02:00
Florian
cd91f6d66b Revert DHT library version (#1276)
due to Failed to read from DHT sensor error
2022-10-05 17:05:09 -05:00