Commit Graph
38 Commits
Author SHA1 Message Date
Leon Kiefer b5527d2e7b added support for secure TLS connections (#699)
* added support for secure TLS connections
on ESP32 and ESP8266 close #101

* added TLS test builds

* added documentation for TLS
fixed some some issues in the documentation

* added documentation for error code=54
2020-08-02 11:29:28 -05:00
JonandJonathan Wells f9787312a3 Fix ESPWifiManualSetup / Move MQTT variables (#704)
* Move MQTT configs to main.ino

Co-authored-by: Jonathan Wells <jonathan-wells@oist.jp>
2020-07-24 18:34:54 -05:00
FlorianandLeon Kiefer 6e9b170c00 [RF] handle 64 bits values (except for UNO) (#698)
* handle 64 bits values, except for UNO
Arduino UNO is not enough powerfull to handle properly uint64_t in terms of memory so differenciate the variable type depending on the board type
With this configuration ATMega will not be able to receive with simpleReceiving 64 bits values. Of course Json will work with 64 bits values for this board.
* Simplify jsondata.success() condition
* Renamings and optimize deduplication functions
* replace 2 dimensions array by a structure so as to handle the time with an uint32_t  when using an ESP (instead of a uint64_t)
* change storeValue and isAduplicate function names
* point to the rcswitch revision with the new 40 bits protocol

Co-authored-by: Leon Kiefer <leon.k97@gmx.de>
2020-07-18 17:14:19 -05:00
Florian 9bba730e84 Add a lock mechanism to improve the OTA chances of success with ESP32 and BLE (#634)
* Add a lock mechanism to improve the OTA chances of success
change TimeBeforeMQTTconnect to InitialMQTTConnectionTimeout
move delay(BLEinterval); after the scan so  the first scan will always be done at start now
remove non relevant delay
add stopProcessing and startProcessing functions
2020-06-19 12:44:53 -05:00
Jens Balvig 1e599415fc Automatically set mqtt buffer size (#637)
* Automatically set mqtt buffer size

Current versions of pubsubclient allows the buffer size to be set
dynamically: https://github.com/knolleary/pubsubclient/pull/282

We can take advantage of this to avoid having to modify one of the
dependencies and instead automatically up the buffer size when a
powerful board is detected.
2020-06-18 05:36:40 -05:00
Florian afa3010033 Per default don't use TRIGGER_GPIO (#633)
and move SLEEP_BUTTON definition to config_M5 as it is only used for the moment with M5 stack and stickc boards
2020-06-14 07:53:00 -05:00
Florian c9e6de1a1c Replace pin by gpio (#631)
* replace _PIN by _GPIO

* add mention about the goal of -all binaries

* [breaking] change json key from "pin" to "gpio" for actuatorONOFF
2020-06-13 20:04:36 -05:00
Florian c9de14e51a correct config files
remove list of protocols from config_RF and retrieve the correct key for the version building in CI
2020-06-13 15:58:52 -05:00
Leon Kiefer 10a9d00aaf Added clang-format (#623)
* added .clang-format
* added names to travis jobs
removed deprecated travis option
* check github action
* added .gitignore
2020-06-09 16:09:23 -05:00
Florian a82bbe684a Optimizations when using low power mode (#608) 2020-05-07 17:28:27 -05:00
JonathanandJonathan Wells cf641851af Added HTU21 Sensor (#588)
* Added HTU21 Sensor Support

Co-authored-by: Jonathan Wells <jonathan-wells@oist.jp>
2020-04-29 08:22:17 -05:00
Florian f2b2975b88 prepare v0.9.4beta 2020-04-27 13:54:49 -05:00
Florian 30147140bd Add M5 boards compatibility and low power mode (#586) 2020-04-26 19:56:10 -05:00
orrpan ac743ed350 CC1101 433.92MHz support for pilight, rf and rf2 (#585)
* adds CC1101 (433mhz) support esp32 and esp8266
2020-04-23 14:23:47 -05:00
Florian 26501b2176 Recover ESP8266 build and ESPWifiManualSetup
#563  Move protocol change method outside of wifimanager scope
and correct build error for ESP8266
2020-04-08 15:14:14 -05:00
Florian bd72075349 refactor connection mng on ESP32 and ESP8266 (#575)
enable after ATTEMPTS_BEFORE_BG
and  ATTEMPTS_BEFORE_BG to try another Wifi protocol
 #563
2020-03-28 20:46:30 -05:00
Leon Kiefer 6fa40cb56d removed duplicated valueAsASubject option (#569) 2020-03-17 08:07:37 -05:00
Florian f3c9d6dd90 Lean on Arduino log library instead of custom logging methods (#546)
* Lean on Arduino log library instead of custom logging methods
2020-02-09 16:01:52 +01:00
Lars Wessels a99d5fb670 added support for DS1820 1-wire temperature sensor(s) (#538) 2020-01-23 12:11:29 -06:00
Martin Korbel 4115f2a723 Add support for weather stations (#532)
* Add support for weather stations
* Add configuration for ESP8266
2020-01-20 21:04:58 +01:00
Florian 4e14029d65 byte ip should not be defined for all boards
if yes the DHCP on ESPs will not be used
2020-01-09 21:15:38 +01:00
Florian c83b952fdc memory optim for UNO (#521)
reduce gateway name
reduce parameters size
correct issue when using advanced config network
comment simple receiving per default (it is set in platformio.ini when necessary)
2020-01-03 20:53:06 +01:00
Florian db8df1ddf6 Hass discovery improvments (#512)
Rename set commands to config
correct json buffer size and gateway name
replace state to cmd
replace set by config
add restart and erase command
add unicity to gateway command switches
BLE devices shouldn't be child of the gateway
make the BTtoMQTT topic consistent with other definitions
2019-12-20 23:01:56 +01:00
1technophile e4d96b2bfd Enable to set led into platformio.ini file 2019-12-15 13:50:29 +01:00
Florian e44717bac7 add wifi advanced setup into user_config.h (#506)
* add wifi advanced setup into user_config.h

#496

* add advanced network config for wifi
2019-12-14 18:18:30 +01:00
Florian 17809b9d78 [CI] recover tag name from TRAVIS instead of having it hardcoded (#505) 2019-12-07 15:00:40 +01:00
Florian 4b1f09b06b Wifi managers improvements (#503)
* Add parameters to wifi manager: gateway name and base topic
Enable to restart the ESP and erase the parameters by MQTT
2019-12-07 10:18:42 +01:00
1technophile e14c70cace prepare v0.9.3beta 2019-11-08 22:12:35 +01:00
1technophile 1c147e3289 set the name of the wifi AP to the gateway name 2019-11-02 12:57:27 +01:00
Florian 3a4ccdcc9f Update ESP IR library & IR gateway improvments (#480)
* update irremoteesp8266

* add new protocols, simplify API and publish protocol name

-added the following protocols:
  #define IR_LEGOPF
  #define IR_MITSUBISHI_HEAVY_88
  #define IR_MITSUBISHI_HEAVY_152
  #define IR_DAIKIN216
  #define IR_SHARP_AC
  #define IR_GOODWEATHER
  #define IR_INAX
  #define IR_DAIKIN160
  #define IR_NEOCLIMA
  #define IR_DAIKIN176
  #define IR_DAIKIN128
  #define IR_AMCOR
  #define IR_DAIKIN152
  #define IR_MITSUBISHI136
  #define IR_MITSUBISHI112
  #define IR_HITACHI_AC424
-changed the send API, now you can use the protocol name directly exemple NEC instead of IR_NEC
-publish the protocol name to MQTT added to the number
-replace long by long long

* missing repeat definitions

and set default repeat value to 0

* move protocol name retrieving outside arduino scope

* put all protocols with capital letters

* modify doc

* add long long activation for arduino json on test_config file
2019-11-02 12:49:05 +01:00
Florian d196f387ae Improve wifi connection management (#471)
-avoid issues with WIFI automatic reconnection on ESP32
-avoid reset of ESP32 when wifi is disconnected
-enable to erase the wifi/mqtt settings if; the mqtt broker wasn't connected once or if the TRIGGER_PIN is pushed for a long time >10s
2019-10-19 21:59:46 +02:00
mpember 30ff181a57 Add support for HC-SR04 sensor (#453)
Adds support for HC-SR04 Ultrasonic distance snsor.
2019-09-10 20:38:04 +02:00
1technophile c04e44c753 Prepare v0.9.2 2019-08-04 17:20:31 +02:00
BigDiandLeon Kiefer 0a9e8eaf35 Add basic FASTLED function initated by Joen (#433)
* merge FastLED part of Joen

Co-Authored-By: Leon Kiefer <leon.k97@gmx.de>
2019-08-02 10:20:58 +02:00
1technophile e20339857e format FS if begin() fail, to avoid setting lost when FS is not mounted
add of timeout parameter
2019-07-29 08:12:07 +02:00
1technophile 131a731730 Uncomment default gateways to enable to set them per env in platformio.ini 2019-07-25 11:22:28 +02:00
1technophile c1242f7c91 Enable to change Gateway name in platformio ini file
by setting the build_flag
  '-DGateway_Name="OpenMQTTGateway_ESP32"'

for example
2019-07-25 06:50:11 +02:00
Florian 8471585d3d Platformio integration (#424)
* adaptation of structure to platformio

* also remove zgatewayRF315 (not usefull)

* replace boolean by bool

#155
2019-07-18 22:45:45 +02:00