Commit Graph
7 Commits
Author SHA1 Message Date
Florian 133e9cd33a Mqtt discovery for ha (#323)
* MQTT discovery factoring

* add DHT discovery

* BME topic macro change

* add sensors to ha discovery

* correct a comment typo #327

* let the possibility at buildtime to don't publish service data

* reduce string usage

* change MQTT ONOFF actuator to ON OFF commands instead of true false

* add ZactuatorONOFF discovery

* add simple publishing for GPIO input

* Add RF switch and gateway discovery
2018-12-16 17:05:30 +01:00
Florian d8dba15a81 Publish refactoring (#298)
* factoring of the publishing function
* integration of json publishing to MQTT
* receiving and transcode json messages from mqtt
* replace the TRACE runtime condition by a buildtime one so as to decrease program size
* remove retainFlag parameter not necessary for the moment
* Increase the scope of tests for arduino mega and esp32
* Update arduinojson library to 5.13.3
* add macros to choose between simple or json publishing or both
* differentiate build test for ATmega2560
* correct wrong sprintf definition
* change IDE version for continuous integration
* let default warning level in arduino ide
* correct pins for ESP32
* reorganize user_config
2018-11-05 22:02:27 +01:00
Florian c0fca71619 remove string in trace call
so as to decrease sketch size
2018-05-16 21:56:29 +02:00
Chris Broekema ea1711b7f0 Better sensors (#154)
* globally expose repeat functionality as advanced function

* implement repeated sends for Arduino based boards

* use String class instead of C-style arrays to benefit from dynamic allocation and avoid buffer overflows. Try to improve stability of BME280.

* replace sprintf with String class to avoid buffer overruns by dynamic allocation

* fix caps on variable

* re-add TSL2561 code that was accidentally removed
2018-01-22 21:35:28 +01:00
Florian 7c6e0ccf61 Esp32 compatibility (#145)
* esp32 init

* RF gateway ok with ESP32

* correct IR gateway compilation errors and test RF2 ok

* divide config per board type

* update test file according user_config

* differentiate variable type following IR libraries aka platforms

* implement BLE beacons detection with ESP32

* Implement multitasking on BLE gateway

* Library add and change core assignement

* change core assignement for BLE

* add mi flora value readings with ESP32

* adding some traces and removing unecessary comment

* correct compilation error due to pin assignement

* correct temperature float value and wrong mac adress rssi publishing

* add esp32 to CI

* correct esp32 ide retrieving

* correcting paths

* CI: correct architecture
* libraries update (irremote) and overwrite ble library files
2018-01-01 18:50:45 +01:00
1technophile 93b1405b3e increase space for wifi stack
#112
2017-11-24 23:11:44 +01:00
Florian c915ddfa48 ADC pin reading (#106)
* ADC pin reading

#95

* arduino and always flag correction

* optimize sram use and remove adc sensor option per default

* integrate a threshold
2017-09-28 22:43:12 +02:00