Commit Graph
966 Commits
Author SHA1 Message Date
Florian ef41546c94 ESP8266: Fix partial erase of connection settings (#1150)
* Fix partial erase of connection settings

#1149

* Update WM version and add disconnect
2022-01-27 15:47:55 -06:00
Florian a9342f743f Change unique id structure for HASS discovery (#1147)
Now:
"uniq_id":"882D777014C-pres"
before it was:
"uniq_id":"882D7770014C-CLEARGRASSTRHKPA-pres"
This will impact BLE and gateways entities
2022-01-27 15:47:29 -06:00
Northern Man 5c8fd626ec Version update for rtl_433_ESP (#1152)
Just some minor code cleanup

* Rework OOK Receiver sample and rename directory to OOK_Receiver
* Cleaned up diagnostic logging
* Added logging of device decoder return codes ( DEMOD_DEBUG & RTL_DEBUG=4 )
* Fixed some compiler warnings
2022-01-27 05:43:57 -06:00
Florian 5a3d912682 Differentiate WM version (#1148)
to avoid a bug that show only the SSID and the password field on the ESP8266 uC
2022-01-25 20:18:49 -06:00
h2zero f8b4b3ca21 Add "mac_type" parameter to BLE connection commands. (#1146)
This allows for connecting to devices that do not use the MAC address type 0.
This also adds the logging of the "mac_type" so it is visible to users trying to connect to broadcasting devices.

Additionally this will allow for future connectable devices using a MAC address type other than 0 to be automatically connected to
when support is added for them, similar to LYWSD03MMC etc..
2022-01-25 06:19:50 -06:00
h2zero e838d3cee0 Remove std::string as the model id and use decoder enum. (#1143)
* Remove std::string as the model id and use decoder enum.

* Update decoder version

* Check model id is in decoder range when launching discovery.

* Add BLEconnect enum MIN/MAX
2022-01-24 20:09:15 -06:00
h2zero 91ab8dcdf1 Fix some incorrect timeouts when taking semaphores. (#1145) 2022-01-24 05:50:14 -06:00
h2zero 5dac1a7035 Add immediate parameter to BLE connection commands. (#1137)
* Add immediate parameter to BLE connection commands.

When sending a command to read/write a characteristic on a BLE server this adds a new parameter to cause the action to be
performed immediately. This will stop the scan in progress to perform the actions queued.

Example use:
```
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{
  "ble_write_address":"AA:BB:CC:DD:EE:FF",
  "ble_write_service":"cba20d00-224d-11e6-9fb8-0002a5d5c51b",
  "ble_write_char":"cba20002-224d-11e6-9fb8-0002a5d5c51b",
  "ble_write_value":"TEST",
  "value_type":"STRING",
  "ttl":4,
  "immediate":true }'
```

Stop BLE processing when immeditate command sent.

* Use a shorter connection timeout.

* Update docs.

* Remove MQTT spam for connection retrys

* Prevent crashing when the normal connection process occurs at the same time as an immediate action.

* Use a semaphore to protect BLE device vector.
2022-01-23 19:47:17 -06:00
Florian 8d793a8b50 Add board configuration descrption (#1142) 2022-01-22 09:46:19 -06:00
h2zero 8b40b68081 Use write with response non-response write is not available. (#1136)
If the BLE characteristic does not have write without response available this will default to using write with response.
2022-01-18 16:52:03 -06:00
Florian 749c1592b4 Add M5Tough board (#1135) 2022-01-17 19:22:26 -06:00
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