Commit Graph

647 Commits

Author SHA1 Message Date
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
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
0afcb61717 Correct spelling mistake 2020-05-23 16:07:37 -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
Jon
f23fcb672a Remove duplicate weatherstation library definition (#604) 2020-05-04 20:04:20 -05:00
Jon
2303d85ae5 HTU21.begin bug fix (#602) 2020-05-03 17:19:33 -05:00
Jonathan
9fc5ba99f5 Allow pins/settings to be defined in INI file (#597)
* Allow pins/settings to be defined in INI file

* Open to make publishing ManufacturerData optional
2020-05-03 08:56:40 -05:00
Alomon31
470790b42e Update ZgatewayWeatherStation.ino (#592)
Line44: typo (paried > paired)
2020-05-01 08:19:23 -05:00
Jonathan
125e7d4f70 Fixing Issues #593 & #591 (#594)
* Add condition to check Low Power Mode

* Added WeatherStation libs platform.ini
2020-05-01 08:18:56 -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
e82f130494 Create CONTRIBUTING.md 2020-04-28 14:12:07 -05:00
Florian
d8032f88b0 Update bug_report.md 2020-04-28 12:46:16 -05:00
Florian
f2b2975b88 prepare v0.9.4beta v0.9.4beta 2020-04-27 13:54:49 -05:00
Florian
c88084519f Correct wrong log value assignment type
#564
replace %s -> %d for LORA pin numbers
2020-04-27 12:48:09 -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
1385ddfa8d Bypass for ESP not reconnecting by WIFI automaticaly the second time (#580)
https://github.com/espressif/arduino-esp32/issues/2501
2020-04-09 09:19:55 -05:00
Florian
d5724bbf1f Correct Arduino boards build errors
Add the necessary macros and move the new OTA function to an appropriate location (for ESP only)
2020-04-08 15:49:09 -05:00
Florian
d49402aede [CI] Update travis CI url
.org to .com
2020-04-08 15:32:38 -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
Leon Kiefer
0d486633ed Fixed Pilight can not send on RX pin (#577) 2020-04-05 14:29:12 -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
Florian
f991b209e5 Add version into SYStoMQTT gateway status
#537
2020-03-22 20:29:21 -05:00
ThomasL
133d4c6467 Fixed invalid device_class values (#572)
Removed device_class values unknown to Home-Assistant. Fixes #570 and fixes #571.
2020-03-21 15:07:46 -05:00
Leon Kiefer
6fa40cb56d removed duplicated valueAsASubject option (#569) 2020-03-17 08:07:37 -05:00
Florian
a2e23ab79b Change GPIO input default pin for ESP
#528

as it is generating conflict with TRIGGER_PIN (used for reseting and erasing the flash)
2020-03-09 14:48:53 -05:00
Peter Becker
033a583f0a remove duplicate code in main\ZgatewayBT.ino (#557)
* merge duplicate code into function setWorBMac

* rename setWorBMac to updateWorB

* add helper getDeviceByMac

* change updateWorB to use helper getDeviceByMac

* change isWhite to use helper getDeviceByMac

* change isBlack to use helper getDeviceByMac

* change isDiscovered to use helper getDeviceByMac

* eliminate duplicate devices walk for isWhite, isBlack and isDiscovered check

* fix a data corruption race between MQTTtoBT and discovery-functions

the ***Discovery functions every time create a new device unless this device is set to white-list before. as a result of this, the devices list contains the same mac multiple times with different flags

* eliminate duplicate devices walk for oneWhite check

because now we have a utility function 'createOrUpdateDevice' we can globally cache this as a single flag

* secure createOrUpdateDevice agains data races on multicore esp32

* fix the concept of the createOrUpdateDevice

c / c++ does not allow NULL as function parameter like modern languages

* use nkolban Semaphore helper class (already included and used from eos1d3/ESP32_BLE librarie)

this makes the semaphore handling more cleaner and readable

* merge duplicate code during createDiscovery into new helper createDiscoveryFromList

* replace excessive use of ZmqttDiscovery precompiler directive in ble advertised callbacks with dummy functions

for a better readability we can remove this because isDiscovered does not do a devices walk anymore

* fix build errors found by travis-ci
2020-03-02 13:54:53 -06:00
Peter Becker
0681d09b41 fix 'LoadProhibited' in dumpdevice (#555)
booleans can not interpreted as null terminated strings
2020-02-20 22:03:12 +01:00
Martin Korbel
8842ea1f4b Bump WeatherStation version (#552) 2020-02-16 11:29:16 +01:00
Florian
6f2ee97fde [DOCS] add BLE devices models 2020-02-12 22:36:08 +01:00
Florian
505b590e88 remove sponsoring ability 2020-02-12 21:58:15 +01:00
Florian
85517e842b [WM] enable automatic erasing of configuration for ESP8266 2020-02-12 21:48:21 +01:00
Florian
31ce9680c9 Add Qingping Cleargrass CGD1 alarm clock (#548)
Alarm clock with BLE temperature and humidity measurement
2020-02-09 16:42:22 +01: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
Florian
824346b19c Add compatible fastled version 2020-02-09 16:01:18 +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
aeb00c4a7a correct build error when using ESPWifiManualSetup
#529
add a test environment so as to verify this functionnality on [CI]
2020-01-14 20:59:01 +01:00
Florian
74908f699a [DOCS] Change welcome picture 2020-01-11 20:23:19 +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
v0.9.3
2020-01-11 15:45:50 +01:00
Florian
1cc12e2ecf improve documentation(#524)
add wifi manager portal screenshots
add M5stick
correct bad link
improve lora doc
2020-01-09 21:42:51 +01:00
Florian
a1cfd57c23 Publish discovery msg at start once
#448
2020-01-09 21:16:15 +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