Commit Graph
105 Commits
Author SHA1 Message Date
Florian 81c02c850e Mqtt discovery (#320)
* add mqtt discovery (compatibile with home assistant) with omg status binary sensor & bme280 sensor

* added mqtt discovery to Test_config.h for ESP32 (ESP8266 & other boards was not tested)

* include support for ESP8266 & arduino mega

* fix getting MAC for esp8266

* esp8266 fix

* make mqtt discovery functions functions more generic, readable and easy to use & extend

* make mqtt discovery functions functions more generic, readable and easy to use & extend PART 2

* remove the macro for each attribute and supposing that if there is a bme280 we expose all
2018-11-28 21:25:27 +01:00
Florian 7493d64d05 Update contributor list 2018-11-16 22:16:39 +01:00
Florian 469bb48d52 correct sonoff rf bridge issue not communicating with RF module
#310
2018-11-14 07:27:57 +01:00
Florian ae3bbb7321 correct double variable declaration and use arduino json implicit cast 2018-11-09 22:40:53 +01:00
animavitis a74eb76931 fix ESP32 ble (#304)
* remove redundant code for home presence

* hopefully fix ESP32 BLE hangs

* basic support for duplicate detection when JSON publishing is active
2018-11-09 22:19:02 +01:00
Florian 0e97e8615f remove unecessary variable and PilighttoMQTT call 2018-11-05 22:20:34 +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
McGr3g0r c2e55956e9 multi gpio input module (#278)
* GPIOKeyCode module added
2018-10-29 20:08:00 +01:00
Balazs Keresztury a4f571e77e Introduced WifiManager_ssid variable and documented user_config.h (#289)
* Commented user_config.h to clarify usage of WifiManager

* Introduced WifiManager_ssid variable

* Added changes to Test_config.h too
2018-10-25 22:26:44 +02:00
Balazs Keresztury d761f1d13a Increased size of mqtt_pass to char[30] (#288)
* Increased size of mqtt_pass to char[30]

* modified test_config.h too
2018-10-23 20:28:09 +02:00
Florian c1e13c5d24 Merge pull request #242 from steadramon/master
ESPilight support
2018-10-14 07:40:43 +02:00
Florian 69e0428084 correct impossibility to read value with HM10
#281 and make the code more flexible (deduct an offset from a key value instead of fixed offset)
2018-10-13 21:44:23 +02:00
1technophile 0a4255f58c replace the TRACE runtime condition by a buildtime one so as to decrease program size 2018-09-22 12:55:14 +02:00
Florian f594612dde Comments improvment (#275)
* Comments improvment
2018-09-22 12:44:58 +02:00
Florian 6e3a52cbf3 increase the list of boards that have more memory available for buffer and max MQTT_MAX_PACKET_SIZE (#274) 2018-09-22 12:34:58 +02:00
steadramon 0e743a0e33 Merge branch 'master' into master 2018-09-21 17:56:30 +01:00
Florian 5d4c788e20 Arduino: Automatic set advanced network config
when first value of dns or gateway is filled
#268
2018-09-13 22:11:54 +02:00
Florian cd3a2a0499 adaptative MQTT MAX PACKET SIZE
change mqtt max packet size depending on the board and display the value on serial monitor
2018-09-13 22:10:18 +02:00
QuagmireMan 0f118c2020 GPIOInput Third Time is a Charm! (#258)
* Added 2 files via upload

* Update OpenMQTTGateway.ino

* Update Test_config.h
2018-08-23 21:07:29 +02:00
Florian 93c2c6eb56 convert ip to string
https://community.openmqttgateway.com/t/really-minor-improvement/92
2018-08-19 20:12:13 +02:00
Paul b047f5a505 ESPilight support
Support for ESPilight - only recieve at the moment
2018-07-28 20:48:44 +01:00
Florian 1dd68ab078 Missing call for RF315
call for emitting RF from MQTT was not done before this commit
2018-06-26 22:45:33 +02:00
Florian 474e7ab70c When wifi is lost OMG is going to AP mode (#220)
* When wifi is lost OMG is going to AP mode

Avoid that except when OMG has never been connected to MQTT
2018-06-26 20:37:37 +02:00
Florian 0f6020edfe correct potential crash of ESP when calling trc function
#211
2018-06-07 20:21:41 +02:00
Florian 76859e54fe add cleanFS into user config and correct missing rf315 subject subscribe 2018-06-07 20:20:11 +02:00
Florian b568e7137c add 315mhz RF gateway (#209)
based on RF gateway add the same implementation for 315mhz to facilitate the integration for whom who wants to use 433 and 315
2018-05-30 21:49:46 +02:00
Florian 4ef82289e1 Publish gateway state (#207)
* add ssid, rssi and memory publishing to mqtt

for ESP boards 

* add activated modules and uptime
2018-05-24 23:01:31 +02:00
Florian c0fca71619 remove string in trace call
so as to decrease sketch size
2018-05-16 21:56:29 +02:00
Florian 79666d4713 minor correction on trace
replace serial.print by default trace system of OMG
2018-04-29 21:23:45 +02:00
Florian 513d71c544 A6 A7 gateway (GSM GPRS) (#195)
* init 2G gateway with SMS sending and receiving

* A6lib add

* add 2Ggateway call from setup and loop

* add schematic and image
2018-04-21 19:22:36 +02:00
Florian d28a1f40dd add missing include 2018-04-11 21:15:12 +02:00
Florian ea987ca945 wifi reconnection workaround on esp32
#173 , currently wifi autoreconnection on ESP32 doesn't work reliably. To bypass this issue I added a reconnection after a failure_number
2018-04-11 20:03:31 +02:00
Florian 02970519b6 simplify module inclusion in config
#166
config files are now inluded in openmqttgateway.ino and doesn't need to be uncommented or commented in user_config.h
2018-04-11 19:37:11 +02:00
Florian bdac0e1713 add actuator
Possibility to command a pin HIGH/LOW by MQTT #192
2018-04-10 22:18:35 +02:00
Florian c68714a434 correct compiler warnings
#189
2018-04-04 22:51:47 +02:00
Florian f515f9c03a per default deactivate multicore for BLE on ESP32
#173
2018-03-19 21:16:47 +01:00
1technophile d41957fd26 condition memory test to ESP boards and add define to the test config
#173
2018-02-18 19:00:41 +01:00
1technophile 6ec2773b20 add auto reconnect on wifi for esp32 and memory trace
#173
2018-02-18 17:33:58 +01:00
Florian 3b33aa7841 Add wifi manager portal (#161)
* Add Wifi manager web portal for ESP8266

#15
#83

* represent web page if MQTT failures at start

* add arduinojson library on CI and repo

* add parameter in test config for CI and correct ifdef

* add wifi manager library

* add possibility to manual setup esp8266 wifi credential

* add mqtt user and password into wifimanager

* Add MinimumWifiSignalQuality parameter

Following @ctripodi suggestion to remove AP with low signal quality
2018-01-27 12:10:00 +01: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
1technophile 3613d011c6 correct bad ifdef definition 2018-01-19 00:22:17 +01:00
1technophile db4b436e19 correct CI and differentiate MDNS for ESP8266 2018-01-18 23:56:13 +01:00
1technophile f0648f481f correct MQTT connection issue with arduino boards 2018-01-18 23:14:10 +01:00
Florian ebf82fbb38 Add MDNS for ESP8266 (#153)
With ESP32 MDNS causes BLE to don't work properly
2018-01-06 09:42:27 +01:00
1technophile 4d5ae46e31 add contributors 2018-01-04 21:27:07 +01:00
1technophile ee46de9ca9 Adding some traces for SRFB debugging 2018-01-02 22:26:37 +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
8666 15cea6b222 Add support for presenting status with 3 LEDs (#147)
* Add suport for presenting status with 3 LEDs

* Add support for presenting status with 3 LEDs

* Update Test_config.h

* Update User_config.h

Better names for LED variables

* Change names for LED variables
2017-12-31 14:31:13 +01:00
1technophile 87364e2897 correct end char termination 2017-12-31 11:26:39 +01:00
Chris Broekema d038ae078b Add support for TSL2561 based light intensity measurement (#150)
* Add support for TSL2561 based light intensity measurement

* replace Serial prints with trc, add TSL2561 code to test config

* add Adafruit TSL2561 lib to Travis config

* avoid multiple definitions and fix missing string constructor in trace
2017-12-30 00:38:19 +01:00