Commit Graph

82 Commits

Author SHA1 Message Date
DieKatzchen
3df16d2d52 Basic RS232 Communication (#780)
* Added ZGateway RS232
2020-10-19 13:48:58 -05:00
Jon
1780458683 Add ability to inverse notify PIR LED (#765) 2020-09-22 13:04:29 -05:00
Florian
4b265384b2 DOCS improvements 2020-09-17 13:43:05 -05:00
Michał Rybicki
caad5dde1a Add iNode Energy Meter support (#755) 2020-09-03 16:09:34 -05:00
Florian
0600b89190 Add LYWSD03MMC from ATC (#754)
https://github.com/atc1441/ATC_MiThermometer

long instead of double
and cast when used
2020-09-03 06:18:11 -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
Oli Wright
ef39e14497 Add new actuator : PWM controller (#737)
* Initial generalization from a PWM LED controller, to a PWM controller.
Allow the config file to set the name of each channel and the number of channels.
Fade time is now per-channel, so MQTT messages can genuinely set an individual channel, and specify the fade time for that channel.
The default gamma is configurable in the config.
2020-09-02 11:17:36 -05:00
Florian
7b9944d1ca Refactor LED management (#745)
-replace low power led by led info
-enable to change the led ON value
-go upper case for the led macros

Also transform BLE connect warning to notice in log
Add Sonoff RF Bridge LED
2020-08-27 16:24:23 -05:00
Florian
5e2d86e963 Add publish only BLE sensors function (#741)
don't publish the non identified BLE devices when requested (at build or by MQTT setting)
2020-08-26 17:24:23 -05:00
Florian
605da549b9 Docs improvements (#742)
and link to https://compatible.openmqttgateway.com
instead off spreadsheet
2020-08-25 05:42:53 -05:00
Florian
d6d42bfce5 BLE sensors data through a connect, LYWSD03MMC and MHO-C401 add (#736)
* Add LYWSD03MMC and MHO-C401 device
and an associated BLE connect mechanism as these devices advertise only encrypted data
-free manufacturer data
-update library

* Implement scans number before connect
-Add the possibility to do a connect every X scan
-Rename variables for consistency
-Some refactoring for improved code reading
2020-08-18 12:28:45 -05:00
Florian
a53f8b4339 [DOC] Move default wifi password name (#731) 2020-08-14 08:13:28 -05:00
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
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
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
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
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
Jon
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
Jon
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
Jon
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
Florian
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
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
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
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
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
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
Leon Kiefer
95a3f8e0b6 replace travis with GitHub Actions close #626 (#629)
added GitHub Actions to documentation
2020-06-12 18:44:34 -05:00
Florian
661ef9c55e Refactor BLE gateways (#617)
* Refactor BLE gateways:
-merge HM10 and ESP32 code
-publish sensor values with the other BLE device parameters to avoid MQTT multiple publication
-make uniform the case of mac adress id between HM10 and ESP32
-add the possibility to remove service data publishing either when sensors is recognised or not
-correct manufacturing data display
-merge process cleargrass methods
-check service data validity before processing
2020-06-05 08:09:49 -05:00
Florian
ac4f6b74c2 Add note for persisten white and black list
#622
2020-06-04 20:27:00 -05:00
Jon
4bc8621910 Ds1820 HADiscovery (#621)
* DS18b20 HADiscovery
* Allow Multiple DS18b20 Sensors
* Optimize Bus Scan
* Update Docs

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
2020-06-04 17:16:40 -05:00
Florian
cf425b0a34 MQTTtoIR hex handling optim (#619)
replace datastring with hex string handling, enable the direct use of an MQTT received hex signal w/o syntax change
correct a bug on protocol identification when the protocol is a derivative of another one and share a common name piece
2020-06-01 08:59:39 -05:00
Florian
f6fa1e52da Hm10 details (#614)
* Add infos and change HM10 speed to a macro
* remove unnecessaries macros
2020-05-12 20:27:05 -05:00
Florian
489ce99659 Implement OpenHAB autodiscovery (#612) 2020-05-12 15:05:37 -05:00
Florian
a82bbe684a Optimizations when using low power mode (#608) 2020-05-07 17:28:27 -05:00
Jonathan
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
b4e65aef6f Arduino IDE library packaging modification
#579
Update doc to reflect necessary manual changes
Implement a part of these changes to automatic script
2020-04-27 12:35:42 -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
d49402aede [CI] Update travis CI url
.org to .com
2020-04-08 15:32:38 -05:00
Florian
6f2ee97fde [DOCS] add BLE devices models 2020-02-12 22:36:08 +01:00
Florian
d4280ffde3 [IR] long long value and hex not taken into account
Nox we can process long long values and hex key when doing MQTTtoIR.
Also remove simpleReceiving as it only enable to use NEC or Raw
2020-01-11 15:45:50 +01:00