Commit Graph
704 Commits
Author SHA1 Message Date
Florian 497d4c647d [DOC] Binary upload improvement (#728)
fit with new version of ESP download tool
2020-08-09 10:56:40 -05:00
Florian 519eb73dee Documentation update (#723)
-add JQJCY01YM
-add protocol add guidelines
-minor changes
2020-08-06 18:42:34 -05:00
Florian da63fd3606 JQJCY01YM BLE formaldehyde, temperature, humidity and battery sensor integration (#722)
* Add JQJCY01YM Formaldcehyde detector

The device publish also the temperature, humidity and battery

* Reduce ServicedataMinLength

so as to read battery data of this device and others
2020-08-05 19:46:50 -05:00
Jon 0cd2464bf1 BT MAC addr ':' fix (#721) 2020-08-05 10:17:05 -05:00
JonandJonathan Wells 15e7f5ab1a Prevent storing duplicate RF/IT signals (#717)
* Check if signal is duplicate

* Fix storing duplicate RF/IR Codes

* Lint formatting

Co-authored-by: Jonathan Wells <jonathan-wells@oist.jp>
2020-08-04 12:18:21 -05:00
Florian 8d79bebab8 [breaking] Refactor the BLE devices identification (#720)
* [breaking] Refactor the BLE devices identification

generalize the use of the mac address with : for the lists, white, black and internal identification
Move structures from config_BT.h to ZgatewayBT.ino
update doc

* Move minRssi to INO and optimizations

change Minrssi name to match other variable convention
Optimize the add of : to mac address
Reduce the use of abs()

Note: I cannot move BLEinterval to the ZgatewayBT.ino due to its use on main.ino
2020-08-04 12:03:22 -05:00
Florian d4457f817a Enable BT use for Arduino Mega (#718)
* Enable BT use for Arduino boards

by adding a ArduinoSTL library

* Update doc
2020-08-04 11:40:16 -05:00
Florian 4f84e08219 Identify IRremote library commit (#719)
and avoid pointing to the last revision
2020-08-03 14:30:50 -05:00
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
Florian 60d173ff51 Correct value entered into temperature conversion (#713)
from C to F
The division by 10 must be done before the conversion.
2020-07-27 07:57:55 -05:00
Florian c6966aa0d9 Remove Test_config.h file (#712)
* Remove Test_config.h file
It was used for Arduino IDE CI, as we are now using PIO this file is no longer needed
And remove test folder.
2020-07-27 06:56:34 -05:00
Jon 61f7843e40 [Breaking Change] Change HCSR501 MQTT key to 'presence' (#710)
* Change HCSR501 MQTT key to 'presence'
2020-07-26 08:14:06 -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
Florian 1ae4903af1 Add Avatto/Bakeey IR boards definition (#706)
* Add Avatto/BAKEEY IR boards definition

Tested with S06
-Emitting IR OK
-Receiving IR OK
-TRIGGER GPIO OK
-led info, brief but OK
2020-07-24 18:30:34 -05:00
JonandJonathan Michael Wells 4f1b49d135 Standardize MQTTDiscovery Temp Keys [deprecate tem key] (#703)
* Detect when sensor isn't available or read fails

* Add temperature conversion macros

* Add 'tempc' & 'tempf' keys to published values

* Unique Values for HA Discovery

* Remove degree symbol from temp sensors

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
2020-07-24 10:10:44 -05:00
Leon Kiefer b7a4591518 updated prepare deploy script to exclude some envs (#707) 2020-07-24 08:45:29 -05:00
JonandJonathan Michael Wells 40a69037e5 PIR Notify LED (#702)
* Add PIR LED mirroring

* Lint formating

* Changed var name & added example define

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
2020-07-19 06:34:13 -05:00
JonandJonathan Michael Wells 40152d6a02 Rf receive only (#701)
* Disable RF transmit

* Added definition example (commented out)

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
2020-07-19 06:29:49 -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
JonandJonathan Michael Wells b66d72ac99 Ahtx0 detections (#700)
* Detect when sensor isn't available or read fails

* Matching code guidelines

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
2020-07-16 15:42:25 -05:00
Florian 5772a35425 Add M5Atom board (#697)
based on pico32
BT, IR sending available
TODO RGB LED support
2020-07-10 12:02:58 -05:00
Leon Kiefer 04b95945b8 set the host name as server of the PubSubClient (#696)
don't do a manual DNS lookup
2020-07-09 19:36:04 -05:00
JonandJonathan Michael Wells 486fd63813 Ahtx0 detections (#695)
* Detect when sensor isn't available or read fails

* Matching code guidelines

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
2020-07-09 12:35:10 -05:00
Florian 6aa2a3c1c3 Platfomio libraries definition update (#694)
Change sha commit separation key for PIO
complete the name of htu21 library,
PIO Add github full path to the libraries def
and add rfm69spi library
and add rfm69 low power
2020-07-08 10:42:08 -05:00
Jon 0e257a58c1 Add AHTx0 Sensor (AHT10 and AHT20) (#687)
* Add AHT Sensor
2020-07-04 09:40:06 -05:00
Florian a3ab39b04e Initial support of INKBIRD IBS-TH1 (#644) 2020-07-02 19:03:20 -05:00
Florian cf2eaa9c6c [DOC] Add support methods and contributors (#646)
* [DOC] Add support methods and contributors link
2020-07-01 09:24:53 -05:00
allcontributors[bot] c490c026d9 docs: add HannesDi as a contributor (#686)
* docs: update CONTRIBUTORS.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-01 07:16:37 -05:00
allcontributors[bot]andFlorian 242fdeb9a9 docs: add Alomon31 as a contributor and initiate contributors system (#648)
* docs: update README.md [skip ci]

* docs: create .all-contributorsrc [skip ci]

* Update .all-contributorsrc

* Update CONTRIBUTORS.md

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2020-07-01 07:06:57 -05:00
Florian 5e19a004d7 Minor doc adjustements for low power mode 2020-07-01 06:03:25 -05:00
Florian 2fdaf8463c Add Andreas Spiess video for Xiaomi Mi Scale to ESP32 use case 2020-07-01 05:55:10 -05:00
Florian 71f1f0c1ec Update badges 2020-06-24 10:18:44 -05:00
Leon Kiefer 6cc4ca4ed5 fixed wrong string type after refactoring #546 (#643) 2020-06-23 16:39:18 -05:00
Florian 12a5033ca3 IR signal forwarding by MQTT
differentiate command subject so as to enable the repeat on another gateway
add doc info regarding raw forwarding
2020-06-22 07:04:00 -05:00
Florian 924943277a Troubleshooting doc - add chapter regarding guest network 2020-06-21 18:41:32 -05:00
Florian 7482b34fa2 BLE gateway HM10 Correct token offset for service data 2020-06-21 14:39:17 -05:00
Florian 647df124d5 WifiProtocol - force when change only
force special wifi protocol when > 0
2020-06-21 14:06:48 -05:00
Florian 2d5633b113 Update RCSwitch version
so as to avoid core dump when using RCSwitch on ESP32 and having wifi disconnection #620
2020-06-21 11:55:14 -05:00
Florian 278942d82d IR gateway add log message 2020-06-20 17:08:48 -05:00
Florian 022643381f BT Low power: remove duplicate wifi stop 2020-06-19 16:17:04 -05:00
Florian 6a5ef0707a ONOFF default pin value when simpleReceiving
#551
2020-06-19 14:53:32 -05:00
Florian 3bee160b48 IRRemote ESP8266 Lib update and add new protocols (#641) 2020-06-19 13:11:15 -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
Florian eb5fff7fba IR protocols identification correction
and add carriage return to traces
#630
2020-06-18 16:06:02 -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 2bb8feffed add support link
and remove hits counter
2020-06-17 13:37:13 -05:00
Florian 713727cf98 Correct endless loop when first wifi connection missed with wifi manual setup (#636)
and add parenthesis for better understanding of the comparisons
correct also a non pertinent ;
2020-06-16 13:28:34 -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 ae342f4a32 Remove auto erase function (#632)
* Remove auto erase function
* add docs
2020-06-14 06:57:44 -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