Commit Graph
621 Commits
Author SHA1 Message Date
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
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
Florian c524f04d1f Replace fixed allocation of json buffer (#520)
* Replace fixed allocation of json buffer

by a dynamic one, and simplify trace function of json objects

* differentiate the change depending on board memory size

to make it works with UNO
2020-01-02 22:30:20 +01:00
Florian bde80f408a replace patreon by github sponsor 2020-01-02 19:55:58 +01:00
Florian de808dfb68 [CI] Correct wrong json msg buffer size on bin (#519)
#518

* [CI] with pio we are now able to use directly user_config.h, align test_config.h
2020-01-02 12:52:18 +01:00
jrockstad 86f3286ed1 Update home_assistant.md (#515)
add manual integration example for mi jia
2019-12-23 14:56:57 +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
1technophile 25375bb37c unnecessary pub functions removing
and use OMG method instead of low level ones
2019-12-15 09:32:15 +01:00
1technophile 1eebf138c2 add version tag to documentation 2019-12-14 20:48:39 +01:00
Florian ae33ea7458 publish discovery once at each MQTT connection with retain flag set true (#507)
* publish discovery once at each MQTT connection with retain flag set to true

#448
2019-12-14 19:17:09 +01:00
1technophile 3948a14db9 Add warning to inform about risk of changing BLE scan duration for ESP32
#508
2019-12-14 18:49:24 +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
1technophile 7f9d8d18da Apply VSC auto format to the code and indent macros for readability 2019-12-14 17:14:36 +01:00
1technophile f7ec81ffaa remove string usage for topic comparison 2019-12-14 11:10:12 +01:00
1technophile 7f16d00a55 Change topics concatenation method
Correct regression introduced by #503
Nevertheless this method needs to be optimized to avoid the use of string.
2019-12-13 23:25:09 +01:00
Florian c0ddf77c9f Add VegTrug (Mi Flora like) sensor (#500)
https://community.home-assistant.io/t/anyone-used-a-plant-sensor-other-than-xaiomi/150868/2
2019-12-08 14:10:37 +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 7384455fb9 Improve Wifi automatic reconnect for ESP32 (#504)
* do not launch a ble scan if mqtt client is disconnected

* add wifi.begin when disconnected

https://github.com/espressif/arduino-esp32/issues/2501
2019-12-07 13:45:10 +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
Florian a05fd01505 remove default path when cliking on sidebar menus (#502)
change link to sources

add credits and some shape for readme

add cleargrass with air pressure and mi band

add PWA

add plugins

Add new boards

improve doc with boars and ble devices
2019-12-04 21:18:32 +01:00
Florian 235413a3cd add m5stick board (#499)
Add both board to automatic build with:

BLE (both)
Trigger pin for parameters reset (both)
IR for m5stick
Button reading for m5stack
Add also Trigger pin for parameters reset on m5stick-c
2019-11-26 22:22:17 +01:00
Florian 2db4da014d Add of cleargrass temperature, humidity and air pressure sensor (#494)
* cleargrass temperature, humidity and air pressure sensor add
* new method of data retrieving for standard cleargrass (enable more frequent data reading)
2019-11-17 21:25:54 +01:00
Florian 6f73160d14 implement minimum rssi filtering (#482) 2019-11-12 20:48:23 +01:00
1technophile 34d31600ee Correct vuepress config error and add code auto deployment 2019-11-08 22:44:48 +01:00
1technophile e14c70cace prepare v0.9.3beta 2019-11-08 22:12:35 +01:00
Florian f13c110794 update esp32 and esp8266 platforms (#490) 2019-11-08 22:07:08 +01:00
Florian bb8ba4ba60 update (#489)
add fastled doc

add links to bootloaders and boot app0

Arduino IDE upload instructions add

add community
2019-11-08 22:03:52 +01:00