Commit Graph
104 Commits
Author SHA1 Message Date
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
Charles 14fedfdf53 Added TTGO-T-Beam board + option to send ADC values in volt (#863)
* Added Voltage measure option
* Added TTGO Beam with Battery voltage measure
2021-02-06 12:47:52 -06:00
Northern Man 09eab93593 Update to SmartRC-CC1101-Driver-Lib@^2.5.4 and removal of workaround from #847 (#851)
Tks to @LSatan workaround no longer needed
https://github.com/LSatan/SmartRC-CC1101-Driver-Lib/issues/65
2021-01-26 16:29:37 -06:00
Northern Man 25ea909c08 Support for changing CC1101 Receive and Transmit Frequency (#847)
* Support for changing CC1101 Receive and Transmit Frequency

* Docs

* Resolve feedback

* Update Somfy module to use Global receiveMhz

ELECHOUSE_cc1101.SpiStrobe(CC1101_SIDLE); // Idle receiver prior to
setting a new frequency
2021-01-22 05:53:39 -06:00
白月秋见心 d84f64b23f Feature/add shtc3 (#843)
* Add SHTC3

* remove adc config
2021-01-05 19:17:39 -06:00
Brahma FearandDave Myers 85dc3cea6f sonoff rfbridge direct hack - first commit (#837)
* sonoff rfbridge direct hack environment add

Co-authored-by: Dave Myers <dmyers@standrews-de.org>
2020-12-23 20:12:11 -06:00
Leon Kiefer a7575b2c3a added ZactuatorSomfy (#816)
* added ZactuatorSomfy
* added Somfy RTS docs
2020-12-13 12:46:10 -06:00
Florian 6ae09d8bb6 Add board M5Stickc Plus (#828) 2020-12-06 12:06:50 -06:00
Florian 417eb99d40 uncomment last added board (#825) 2020-12-04 07:12:37 -06:00
Florian 67b624c1fa Add ESP32 Lolin32 Lite board definition (#822) 2020-12-03 07:47:47 -06:00
Florian e7cecf64d2 Update espilight library version - DG-R8H support (#789)
in particular to integrate DG-R8H support
2020-10-27 14:20:37 -05:00
DieKatzchen 3df16d2d52 Basic RS232 Communication (#780)
* Added ZGateway RS232
2020-10-19 13:48:58 -05:00
Florian ae3253315f Update esp8266 platform
to 2.6.2
2020-09-04 13:17:50 -05:00
Florian 72aa577999 OLIMEX ESP32 Replace led definition 2020-09-03 17:25:00 -05:00
Florian 74b516118d Add default include_dir to platformio section (#757)
#748
point to main as we are not using default include folder
2020-09-03 17:02:35 -05:00
Florian 5810420d93 Add ESP32 Olimex ethernet gateway (#747)
-Add ethernet board
-Add wifi board
-Add ethernet management for ESP32
2020-09-02 14:16:48 -05:00