Commit Graph
955 Commits
Author SHA1 Message Date
Northern Man 9546f43cd6 Behaviour when MQTT and/or Wifi is not available (#1126)
* Behaviour when MQTT and/or Wifi is not available

I was looking into why all my OpenMQTTGateway devices were not responding after a recent power failure and am speculating that the ESP32 was able to restart faster than my Wifi and MQTT Server was able to restart and resume operations.  And was thinking that a generic ESP.restart may be a reasonable approach with repeated Wifi and/or MQTT connection failures.

As mentioned here https://community.openmqttgateway.com/t/behaviour-when-mqtt-and-or-wifi-is-not-available/1747

Added new variable maxRetryWatchDog, which is the maximum number of mqtt or wifi connection attempts before restarting gateway device.
2022-01-17 16:16:43 -06:00
Florian 149aa40802 Increase MQTT Packet size to enable longer certificates to pass (#1134)
* Increase MQTT Packet size to enable longer certificates to pass

through mqtt for OTA

* Enable to define the mqtt packet size with an external macro
2022-01-17 07:05:02 -06:00
Florian 42916f1028 Bump Theengs Decoder (#1131) 2022-01-15 18:28:26 -06:00
Florian 76b2f0a0e1 fix wifi manager portal missing parameters on esp8266 (#1132)
* fix wifi manager portal missing parameters on esp8266

on esp8266 with ZgatewayBT
Reducing the scope of the parameters on wifi manager for esp8266 to enable to enter properly the configuration
2022-01-15 18:28:11 -06:00
dependabot[bot] 9a4db88cb2 Bump follow-redirects from 1.14.4 to 1.14.7 (#1130)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-15 02:36:35 -06:00
Florian 665078f5f5 Fix ir protocol name not correctly displayed on esp8266 (#1129) 2022-01-14 17:46:19 -06:00
Florian 71d5622a52 Filter discovery messages against HASS classes list (#1127)
* Filter the discovery message content against HASS list of classes
2022-01-11 20:24:09 -06:00
Florian e6003c877c Correct readme link typo (#1128) 2022-01-11 19:16:41 -06:00
Florian d34559cb5b Bump Theengs Decoder (#1124)
Fix #1123
2022-01-10 16:40:32 -06:00
Benoit Courty 892cbc35f5 Fix DS18B20 not working properly (#1121)
* Fix Switch Celcius and Fahrenheit

* Fix overflow issue
2022-01-02 18:15:43 -06:00
Benoit Courty 5c3eccbb18 Adding low_pulse (#1120)
* Adding low_pulse
2022-01-01 19:47:23 -06:00
Northern Man cf0f53507d Library Update - rtl_433_ESP and smartrc-cc1101-driver-lib (#1122)
Includes the following updates to rtl_433_ESP:

1 - Workaround for cc1101 module going deaf after 24 hours, issue #16.
- By default the workaround is enabled, define NO_DEAF_WORKAROUND to remove the workaround

2 - Improved process for updating from rtl_433 for GitHub, almost totally automated.
- FYI - Their is a shell script in the tools subdirectory which does most of the heavy lifting required

3 - Updated device decoders to latest release of rtl_433
- They are now in align with rtl_433 release 21.12

4 - Updated r_api.c to prioritize ook demodulators - feature from rtl_433

5 - Created contrib directory for other device decoders to be merged into code base as part of the rtl_433 update process

6 - Bump library version to 0.0.3

7 - Tuned signal receiver logic and now throw away the first received byte. On testing this appears to dramatically reduce the number of unparsed signals.

8 - Fixed README feedback from @DigiH and updated the wording for 'PUBLISH_UNPARSED'. Also removed serial logging of unparsed messages unless 'PUBLISH_UNPARSED' is set

9 - Fixed gitignore so that the clone of rtl_433 is no longer part of the repository.

10 - Added new DEFINITION to enable rtl_433 verbose mode for a single device decoder. RTL_VERBOSE=##
2021-12-23 17:37:27 -06:00
Florian 66ce0d5a41 Generalize the use of JSON_MSG_BUFFER (#1114)
* Generalize the use of JSON_MSG_BUFFER

instead of calculated buffer
2021-12-20 19:37:06 -06:00
Thomas Kern afd7a96537 only restore an active receiver if it is available (#1115)
* only restore an active receiver if it is available
2021-12-20 19:36:13 -06:00
Florian b4ae66e3fd Bump rcswitch (#1117)
#1108
2021-12-20 19:34:40 -06:00
Florian ce66cf0b81 Bump theengs decoder to v0.1.4 (#1113)
* Bump theengs decoder to v0.1.4

* Add new devices to doc
Govee H5102
Inkbird IBT-6XS
2021-12-15 19:49:14 -06:00
Florian 00709675bc Correct log display for std::string (#1111) 2021-12-13 18:50:40 -06:00
Florian 2d6f7c07cb Bump NimBLE Arduino (#1107) 2021-12-13 17:29:56 -06:00
h2zero 8e6ebe87c9 Use a queue and separate task to process BLE devices. (#1110)
This avoids excess processing in the BLE advertised device callback and prevents overflowing the BLE host stack.
2021-12-13 17:29:44 -06:00
h2zero d590c34c03 Fix memory leak introduced in #1092 (#1109) 2021-12-12 09:41:25 -06:00
Florian 7dc49165a0 Discovery with theengs decoder (#1106)
* Discovery with theengs decoder

* Add devices to doc

* Correct missing suffix for DT24
2021-12-11 11:54:08 -06:00
Stephen Littman 7c5538be65 Doc spelling typo (#1104)
Fixed typo
2021-12-04 13:48:15 -06:00
Florian dcbce352be AWS IOT compatibility
implement compatibility with Amazon Web Services IOT through an MQTT connection with certificates. (#1099)
2021-11-07 07:44:50 -06:00
Alessandro Staniscia 4b53a30af4 Review of data structure (#1096) 2021-11-06 16:00:20 -05:00
Florian 26b3be0e6a Add board definition for 915mhz (#1098)
Before having a captive portal for config settings like requested in #1056 let's begin by a board definition for 915mhz
2021-11-06 05:27:52 -05:00
Alessandro Staniscia bdda5df839 rationalisation of logs and removal of duplicate codes (it should fix also #931) (#1093)
* Rationalisation of logs and removal of duplicate codes
2021-11-02 16:46:01 -05:00
Florian 10f0d4cff4 Theengs decoder integration (#1092)
* Use Theengs Decoder for BLE device decoding
2021-10-31 16:51:05 -05:00
Thomas KernandKern, Thomas c5f7a3a55e Save currently active receiver and restore on reboot (#1091)
* save active receiver and restore on reboot

Co-authored-by: Kern, Thomas <thomas@kernwelt.de>
2021-10-29 16:53:05 -05:00
Alessandro Staniscia e9ce921717 Add support for discovery device trigger (#1090)
* Add announce of DeviceTrigger +  Update doc
2021-10-24 08:30:36 -05:00
Chris van Marle f84a878400 Configurable amount of RF2 repeats (#990)
* Make number of RF2 repeats configurable

* Reduce number of repeats

Number of repeats in NewRemoteTransmitter is by default 16, which takes
quite some time to send.

It actually runs 2^R repeats, where R is the configured amount.

https://github.com/1technophile/NewRemoteSwitch/blob/86f1c8486c80919ef70e86504e8a9580c34b4fab/NewRemoteTransmitter.cpp#L20
2021-10-20 06:08:58 -05:00
Alessandro Staniscia e14a78e9c0 Support Home Assistant Long-term Statistics #1087 (#1088) 2021-10-14 18:46:13 -05:00
Florian 9a8606bd29 Fix self signed certificate function (#1084)
when using mqttset
and add the macro into a test environment
2021-10-05 17:58:01 -05:00
Florian dbedcf065d Add mqtt_secure connection condition for logging (#1082)
* Add mqtt_secure connection condition

when logging SSL error status
2021-09-21 17:43:18 -05:00
MountComb 36f4f89fbb fix BT not connected issue when using whitelist (#1080) 2021-09-19 09:40:41 -05:00
Florian 77bc286fd4 Bump vuepress to 1.8.2 (#1079) 2021-09-17 18:04:33 -05:00
Florian 35e8d6c196 Remove download count and replace it with hit badge on upload pages (#1077)
as the binary download from the release page doesn't show all the download sources
2021-09-14 17:42:03 -05:00
Florian 827357fb2d Update arduinojson link (#1078)
to avoid PackageException
2021-09-14 17:32:49 -05:00
h2zero ed4949f769 Update to use ArduinoJson 6+ (#1071) 2021-09-01 19:18:19 -05:00
Dave 149712b573 add script to compress firmware before ota upload (#1065)
* add script to compress firmware before ota upload

* add examples for OTA flashing/updating Sonoff RF Bridge

- use compress script to save space uploading firmware
- use "board_build.ldscript = eagle.flash.1m64.ld" to free some additional space for OTA flashing.
2021-08-29 06:27:23 -05:00
Florian f126a51608 Bump DHT libraries (#1058) 2021-08-28 20:21:56 -05:00
Florian 01301a1485 Change BLE TPMS count to match associated number (#1070)
Currently this count start at 0 whereas it should start at 1
2021-08-28 20:21:20 -05:00
Florian 66a76abaf2 Add advised duration and time between reading (#1069) 2021-08-28 16:51:03 -05:00
wst-tdb c5f2c1ca6f [DOCS] Correct pin assignment (#1068) 2021-08-24 05:13:50 -05:00
Florian 0ede075843 Add esp32-wt32-eth01 ethernet board (#1064)
* Add esp32-wt32-eth01 ethernet board
2021-08-17 18:48:11 -05:00
Northern Man 94a7792863 Support for BME280 Temperature Correction (#1062)
* Support for BME280 Temperature Correction

The Spark Fun BME 280 library has support for Temperature correction, and this pull request implements the ability to apply a correction via a compiler directive ( BME280Correction ).
2021-08-16 19:35:02 -05:00
dependabot[bot] eaa7bc94b2 Bump url-parse from 1.5.1 to 1.5.3 (#1061)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-14 05:00:31 -05:00
dependabot[bot] 1c74381623 Bump path-parse from 1.0.6 to 1.0.7 (#1059)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 20:20:38 -05:00
Florian 9ceb623770 Bump Nimble Arduino version (#1057) 2021-08-11 19:22:43 -05:00
Florian 61c1e20c0a Update boards platforms (#1054)
* Update boards platforms

* Keep ESP8266 platform to 2.6.3
waiting for https://github.com/puuu/ESPiLight/issues/62 to be corrected
2021-08-10 05:25:58 -05:00
h2zeroandFlorian ca616939b8 Add ability to change MQTT topic and or gateway name by MQTT command. (#1053)
* Add ability to change MQTT topic and or gateway name by MQTT command.

This adds new commands to allow changing the MQTT topic and or gateway name from a command.
The new topic/name will be saved in flash memory and used on subsequent reboots.
Either/both parameters can be sent or combined with other commands.

Example use:
```
mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoSYS/config" -m
'{
  "mqtt_topic": "topic/",
  "gateway_name: "name"
}'
```

* Update example with /

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2021-08-05 05:50:16 -05:00