Commit Graph
119 Commits
Author SHA1 Message Date
h2zeroandFlorian 0a8458f156 Update decoder version. (#1151)
* Update decoder version.

* Add new devices and sort list

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2022-01-27 15:48:29 -06:00
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
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 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
Florian 749c1592b4 Add M5Tough board (#1135) 2022-01-17 19:22:26 -06:00
Florian 42916f1028 Bump Theengs Decoder (#1131) 2022-01-15 18:28:26 -06:00
Florian d34559cb5b Bump Theengs Decoder (#1124)
Fix #1123
2022-01-10 16:40:32 -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 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 2d6f7c07cb Bump NimBLE Arduino (#1107) 2021-12-13 17:29:56 -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
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
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
Florian 10f0d4cff4 Theengs decoder integration (#1092)
* Use Theengs Decoder for BLE device decoding
2021-10-31 16:51:05 -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 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 66a76abaf2 Add advised duration and time between reading (#1069) 2021-08-28 16:51:03 -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
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
DigiH 3fd075b750 Disable MQTTsetMQTT and MQTT_HTTPS_FW_UPDATE to allow OTA for Avatto (#1046)
* Disable MQTTsetMQTT and MQTT_HTTPS_FW_UPDATE to allow OTA for Avatto Bakery IR

Trying to update my Avattos with the currently released 0.9.8 I found that OTA wasn't possible any longer as the build was now to large

0.9.8
Checking size .pio/build/avatto-bakeey-ir/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  42.4% (used 34772 bytes from 81920 bytes)
Flash: [======    ]  55.2% (used 528716 bytes from 958448 bytes)

this goes back to 0.9.7, where WiFi, MQTT and firmware update was introduced over MQTT commands

0.9.7
Checking size .pio/build/avatto-bakeey-ir/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  42.4% (used 34772 bytes from 81920 bytes)
Flash: [======    ]  55.2% (used 528716 bytes from 958448 bytes)

Going back to building 0.9.6 I was able to OTA update again with the much smaller build

0.9.6
Checking size .pio/build/avatto-bakeey-ir/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  39.7% (used 32512 bytes from 81920 bytes)
Flash: [====      ]  41.4% (used 396804 bytes from 958448 bytes)

Building 0.9.8 with the flags brings the build back to OTAable size

0.9.8 with
	'-UMQTTsetMQTT'
	'-UMQTT_HTTPS_FW_UPDATE'
Checking size .pio/build/avatto-bakeey-ir/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  39.9% (used 32684 bytes from 81920 bytes)
Flash: [====      ]  42.3% (used 405024 bytes from 958448 bytes)

Similar to the flag setting in [env:rfbridge]

I'm not even sure if MQTT_HTTPS_FW_UPDATE would even work on the Avatto, with the limited flash memory. 

Should we also add

board_build.ldscript = eagle.flash.1m64.ld

as a default, as it's required for OTA updates on the Avattos as discussed in https://github.com/1technophile/OpenMQTTGateway/issues/763#issuecomment-698864712 ?

* Doc addition for restricted MQTT options

Doc addition for https://github.com/1technophile/OpenMQTTGateway/pull/1046 and https://github.com/1technophile/OpenMQTTGateway/pull/986
2021-08-02 15:51:13 -05:00
Florian e56b4336c2 Add MQTT OTA per default for ESP boards (#1027) 2021-07-17 18:48:27 -05:00
FlorianandDave ebe17c8899 Setmqtt setting optional (#1021)
* Define MQTTsetMQTT for configuring MQTT over MQTT

* Enable MQTTsetMQTT per default on all ESP except RFBridge

Co-authored-by: Dave <d.kneisz@gmail.com>
2021-07-14 17:25:09 -05:00
Florian c44ab5aeb9 Update the LED_SEND and LED_RECEIVE macro to fit LED_SEND_RECEIVE (#1020) 2021-07-14 07:37:03 -05:00
h2zero 83b8d88c0f Minimize BLE resources. (#1015)
Adds macros to reduce the flash/RAM use of the BLE library.
2021-07-10 15:13:48 -05:00
h2zero 45a0184320 Add triggering of actuator on/off state by button press.
This will enable using button on the gateway to switch any controlled attached actuators/relays when pressed.

Adds the following macros:
- ACTUATOR_ON; 0 or 1, set to the output level of the gpio pin to turn the actuator on.
- ACTUATOR_ONOFF_DEFAULT; ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset.
- ACTUATOR_BUTTON_TRIGGER_LEVEL; 0 or 1, set to the sensing level which to detect a button press to change the actuator state.
2021-07-09 21:52:40 -05:00
Northern ManandNorthern Man bdaf097c04 Resolve incorrect wiring instructions (#984)
As identified in this forum post (
https://community.openmqttgateway.com/t/rtl-433-esp32-bme280-but-what-ra
dio/1563) , the default builds have incorrect connections for the
RTL_433 module.  This fixes the default build configuration and
crispness the documentation.

Co-authored-by: Northern Man <sgracey@Heisenberg.local>
2021-06-11 20:33:10 -04:00
h2zero 31efcb32ee Remove Secure Connection macro and add the config to wifimanager. (#961)
This adds the ability to specify if the MQTT broker connection is secure via a checkbox on the config page of WiFiManager.
Also added to the WiFiManager config page is a text box to enter the brokers TLS certificate.

In the case of using manual configuration a new macro is created MQTT_SECURE_DEFAULT.
When defined as true a secure connection will be requested and the certificate defined in user_config.h will be used.
2021-06-02 21:10:38 -06:00
Northern ManandNorthern Man 33fa1ca759 Minor RTL_433 Tuning (#960)
* Update to SmartRC-CC1101-Driver-Lib@^2.5.4 and removal of workaround from #847

Tks to @LSatan workaround no longer needed
https://github.com/LSatan/SmartRC-CC1101-Driver-Lib/issues/65

* Default to value as subject for rtl_433 and receiver switching

* Default to not publishing unparsed signals

* Fix for missing String for uint64_t

* Fix is only required when value a subject is defined and not PiLight

Co-authored-by: Northern Man <sgracey@Heisenberg.local>
2021-05-28 21:09:32 -05:00
Leon Kiefer 18c8524ae0 added somfy repeat option (#957)
update somfy dependency to fix bug with multiple somfy remotes
2021-05-24 15:09:18 -05:00
h2zero 295d39bc27 Trigger firmware update via MQTT (ESP Only). (#953)
If enabled in user_config.h this will trigger the OMG to update it's firmware from the link
provided in the MQTT message.

Example message:
{\"version\":\"test\",\"password\":\"OMGPASSWORD\",\"url\":\"https://github.com/1technophile/OpenMQTTGateway/releases/download/v0.9.6/esp32dev-ble-cont-firmware.bin\"}

If the firmware version in the message is not the same as the current OMG version the device will self update using the link in the url of the message.
2021-05-23 16:38:52 -05:00
Northern Man 5ccd10abb3 Update to latest version of RC-SWITCH (#950) 2021-05-16 09:28:42 -05:00
Northern ManandNorthern Man f69906861d Active Receiver Switching (#936)
* PR #934

* Active Receiver Switching

Switching of the active receiver module is available between the RF,
RF2, RTL_433 and Pilight Gateway modules, allowing for changing of
signal decoders without redploying the openMQTTGateway package.
Sending a JSON message to the command topic of the desired receiver
will change the active receiver module.

Other minor adjustments/improvements

1 - Improved startup serial logging that includes
- OpenMQTTGateway Version
- OpenMQTTGateway Modules

2 - Trace logging of full Gateway module command topic
 - Enabled in RF, RF2, PiLight and RTL_433

3 - Updated RTL_433 Documentation to only include enabled ASK/OOK
device decoders

4 - Trace logging of MQTT Callback topic

* Regression testing

* Adding valueAsASubject support to rtl_433_ESP
- model and id keys are appended to message topic

* Increased memory size for receiver switching in blocking build all

Co-authored-by: Northern Man <sgracey@Heisenberg.local>
2021-05-10 19:36:25 -05:00
Martin KorbelandMartin Korbel 23cd2a3104 GridFree SUN-2000G (#926)
* Support for GridFree Sun-2000G inverter

* Bump version of GFSunInverter

Co-authored-by: Martin Korbel <korbel@blackserver.cz>
2021-04-23 20:40:09 -05:00
Northern ManandNorthern Man 55dd571c49 Clean up of redundant compiler definitions (#913)
CC1101_FREQUENCY
ONBOARD_LED
RF_RECEIVER_GPIO

Co-authored-by: Northern Man <sgracey@Heisenberg.local>
2021-04-01 17:16:14 -05:00
Florian f01b7184a0 Resolve issue with wifi reconnection on M5Stack boards (#907)
And update libraries
2021-03-27 09:26:15 -05:00
Florian b9151bb6ac BLE low power mode and settings optimization (#902)
* BLE low power mode and settings optimization
-low power mode settings example
-take into account parameters following #891
-add esp32dev-ble-cont for door/window sensor listening

* Disable WDT during scan

* update esp32 arduino framework
2021-03-25 18:53:47 -05:00
Northern ManandNorthern Man 401cc39123 Updated version of rtl_433_ESP, resolve random stack overflow (#900)
Co-authored-by: Northern Man <sgracey@Heisenberg.local>
2021-03-16 19:27:15 -05:00
Florian 0f7ac4bcce Update rcswitch library (#893) 2021-03-11 17:17:04 -06:00
Florian ac9e8347ed irremote esp8266 bump to 2.7.15 (#892)
* irremote esp8266 bump to 2.7.15

* lint format
2021-03-11 15:53:28 -06:00
Northern ManandNorthernMan54 57bc108da4 Initial pull request for rtl_433 support (#886)
* Initial pull request for rtl_433 support

Co-authored-by: NorthernMan54 <sgracey@Bart.local>
2021-03-11 12:43:05 -06:00
Florian be5a93a91a Update platforms and ble lib (#881)
* Update platforms and ble lib
* esp32 3.0.0 and not 3.1.0 due to build error on ttgo t beam

https://github.com/platformio/platform-espressif32/issues/502
2021-03-03 15:52:40 -06:00
Florian fe8ca44770 Add ESP32 Adafruit Feather board definition (#853)
* Add ESP32 Adafruit Feather board definition in platformio
2021-02-21 16:20:27 -06:00
Charles 1758746050 Added Heltec ESP32 Lora board (#865) 2021-02-11 05:54:30 -06:00