Commit Graph
85 Commits
Author SHA1 Message Date
Florian 93c2c6eb56 convert ip to string
https://community.openmqttgateway.com/t/really-minor-improvement/92
2018-08-19 20:12:13 +02: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
1technophile 9e7d92075a correct version and OMG name assignment 2017-12-02 11:36:44 +01:00
1technophile 66182ac1be publish version when online and subjects constitution improvment 2017-12-02 11:23:43 +01:00
Florian af5e4e8ec9 Zgateway srfb (#143)
* compatibility with sonoff rf bridge

#81

* update extract_char call
2017-11-24 23:00:21 +01:00
Florian 340dcb0ac4 add ina226 sensor (#123)
* add ina226 sensor

#116

* add sensor into the CI
2017-11-03 07:15:13 +01:00
Florian 9185bb51c3 Update OpenMQTTGateway.ino 2017-10-09 20:58:00 +02:00
Florian 3cfb6aba0e update contributors 2017-10-08 20:51:21 +02:00
1technophile e1b2dd5156 correct topic subscribing when using only RF or IR 2017-10-06 12:00:15 +02:00
ChiefZ d9e2e1d482 Show ip and mac after connect (#125)
When not using advanced network config, the ip is optained via DHCP, so display it after the connection is established. Output was 0.0.0.0 in this case before.
Also adding display of the mac for mac address filter config in the wifi-ap.
2017-10-01 10:13:37 +02:00
Florian ae408f62fd Add HC SR501 PIR sensor support (#107) 2017-09-28 22:46:13 +02: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
1technophile 9ebbe99412 resolve conflicts 2017-09-23 16:31:21 +02:00
Lars Englund 0d1e7bbe75 Makes RF2 sending and receiving work for ESP8266 with added support for group bit and dimming (#113)
* Made rf2 sending and receiving work

With code from https://github.com/1technophile/OpenMQTTGateway/pull/109
plus some other fixes.

* Added support for group bit

Added support for sending and receiving group bit

* Group bit and MQTT retransmitting

Added support for sending and receiving group bit.
Made the gateway transmit the new state of a RF2 switch to the MQTT state topic when it receives a MQTT command to control that switch.

* Removed hard coded RF2 code length

* Added support for dimming to RF2

Verified to work with Nexa WMR-250 dimmer.

* Minor cleanup
2017-09-21 23:32:02 +02:00
1technophile 0025d60e9c Differentiate serial begin if arduino 2017-09-17 22:12:16 +02:00
1technophile 3c5daf49e4 new wiring modifications 2017-09-17 21:32:13 +02:00
Florian 441ab1c0b7 User config division (#97)
* some minor correction after coadcy checks

* Put serial communication speed as a parameter in user_config.h

* complete gateway file

receiving ok
sending ko
#32

* add rfm69 to CI

* change receiver key and minor improvments

#32

now ok on receiving and sending with RFM69

* add schema and tested pinout for RFM69/RF/IR wiring

#32

* RFM69 library add

* Implement newremoteswitchlibrary for KlikAanKlikUit / ClickOnClickOff protocol

#3

* add dependency for CI and link to the library

* compilation error for arduino correction

* Sketch size decrease

* remove nano from CI

* Divide user_config into one file per gateway/sensor for lisibility
2017-09-01 00:41:29 +02:00
Florian f8ede4aa94 Zgateway rf2 (#94)
* some minor correction after coadcy checks

* Put serial communication speed as a parameter in user_config.h

* complete gateway file

receiving ok
sending ko
#32

* add rfm69 to CI

* change receiver key and minor improvments

#32

now ok on receiving and sending with RFM69

* add schema and tested pinout for RFM69/RF/IR wiring

#32

* RFM69 library add

* Implement newremoteswitchlibrary for KlikAanKlikUit / ClickOnClickOff protocol

#3

* add dependency for CI and link to the library

* compilation error for arduino correction

* Sketch size decrease

* remove nano from CI
2017-09-01 00:35:26 +02:00
Florian ba51e340d2 Zgateway rfm69 (#88)
* some minor correction after coadcy checks

* Put serial communication speed as a parameter in user_config.h

* complete gateway file

receiving ok
sending ko
#32

* add rfm69 to CI

* change receiver key and minor improvments

#32

now ok on receiving and sending with RFM69

* add schema and tested pinout for RFM69/RF/IR wiring

#32

* RFM69 library add
2017-09-01 00:31:49 +02:00
Florian 56057690a5 Pr/61 add I2C sensors BME280 and BH1750 (#64)
* changed user config

* added lightsensor module

* changed Pin Adresses

* Added I2C Lightsensor

Added the I2C Lightsensor and Switchted most Pins

* removed some debug to serial

removed some debug stuff was send to serial console

* Merge with Master

* Too much things for arduino uno

per default remove sensors for it

* Adding I2C Module function

Opens the Door on OpenMQTTGateway for "i2c Bus Modules/Sensors"

* Fixing BH1750 detection

Fixing the detection for a missing BH1750 Module

* Add libraries and define sensors depending on wiring type #63
2017-06-14 23:42:11 +02:00
Georgi Yanev 484da9ff50 Comment out the advanced config (#60)
Indeed should be commented per default thanks
2017-06-09 22:19:28 +02:00
Patrick Wilhelm 89e1d6fbd8 related to #52 (#59)
* Added OTA-Support for ESP8266

#52 thanks!
2017-06-09 22:02:05 +02:00