Commit Graph
100 Commits
Author SHA1 Message Date
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
Florian c0204de40f automate libraries deployment for arduino IDE (#488)
make the use of arduino IDE easier by automating the libraries deposit into github releases
2019-11-08 21:35:28 +01:00
Florian 12bd11bbe1 make ON OFF actuator more flexible (#481)
* make ON OFF actuator more flexible

enable to choose the pin when sending the MQTT command

* add on off environment example
2019-11-04 20:51:29 +01:00
1technophile 81201cf7de Wifimanager must ne declared at global scope to handle wifi disconnection
#461
if not the reconnection is random
2019-11-04 20:45:57 +01:00
1technophile 1c147e3289 set the name of the wifi AP to the gateway name 2019-11-02 12:57:27 +01:00
1technophile b23c261f8b avoid deployment of docs if no tag is set 2019-11-02 12:54:56 +01:00
Florian 3a4ccdcc9f Update ESP IR library & IR gateway improvments (#480)
* update irremoteesp8266

* add new protocols, simplify API and publish protocol name

-added the following protocols:
  #define IR_LEGOPF
  #define IR_MITSUBISHI_HEAVY_88
  #define IR_MITSUBISHI_HEAVY_152
  #define IR_DAIKIN216
  #define IR_SHARP_AC
  #define IR_GOODWEATHER
  #define IR_INAX
  #define IR_DAIKIN160
  #define IR_NEOCLIMA
  #define IR_DAIKIN176
  #define IR_DAIKIN128
  #define IR_AMCOR
  #define IR_DAIKIN152
  #define IR_MITSUBISHI136
  #define IR_MITSUBISHI112
  #define IR_HITACHI_AC424
-changed the send API, now you can use the protocol name directly exemple NEC instead of IR_NEC
-publish the protocol name to MQTT added to the number
-replace long by long long

* missing repeat definitions

and set default repeat value to 0

* move protocol name retrieving outside arduino scope

* put all protocols with capital letters

* modify doc

* add long long activation for arduino json on test_config file
2019-11-02 12:49:05 +01:00
1technophile 82c9b7ce55 add ESP scope to enable Arduino boards build 2019-11-02 11:58:41 +01:00
1technophile 64313db6cb replace defined on ESP by wifi manual setup macro
indeed if we use ESPWifiManualSetup we don't need wifimanager and its reset button
2019-11-02 08:25:02 +01:00
Florian 21773300ec auto deployment (#479) 2019-11-01 20:06:31 +01:00
1technophile 27c36a5908 add sonoff basic definition
add sonoff basic parameters to platformio.ini file
2019-11-01 17:40:43 +01:00
1technophile 337028ea63 add Xiaomi MiLamp Night led on BLE gateway
report detected mouvement through a "presence" set to true (will never be false for info) & a darkness attribute:
{"presence":true,"darkness":46}
the ble interval must be set to 0 if you want to scan permanently for movements
2019-11-01 15:29:05 +01:00
Florian 82c7d0c781 Miband steps (#478)
add mi band steps reading
2019-11-01 10:25:10 +01:00
Florian aa263dc559 Docs vuepress (#476)
Convert docs to vuepress
2019-10-30 22:15:40 +01:00
1technophile 1fa5d48e74 W5100 doesn't detect linkStatus
implement a bypass
2019-10-30 07:07:34 +01:00
Florian d231c5bda1 add m5stick-c board (#473) 2019-10-22 21:07:59 +02:00
Florian 6af57f1db5 add a controller deinit to earn some ble stability (#472)
discussed here
https://community.openmqttgateway.com/t/esp32-doesnt-stay-online/570
2019-10-22 19:22:57 +02:00
1technophile 4d0ed354f7 change espilight version 2019-10-21 19:01:42 +02:00
Florian d196f387ae Improve wifi connection management (#471)
-avoid issues with WIFI automatic reconnection on ESP32
-avoid reset of ESP32 when wifi is disconnected
-enable to erase the wifi/mqtt settings if; the mqtt broker wasn't connected once or if the TRIGGER_PIN is pushed for a long time >10s
2019-10-19 21:59:46 +02:00
1technophile d7deb682e7 add pilight environment example for ESP32 2019-10-18 21:13:24 +02:00
1technophile 5b70dfcfb4 avoid build error on windows environments 2019-10-18 21:08:50 +02:00
1technophile 4342a1521c Remove extra informations to avoid PIO build error
https://community.openmqttgateway.com/t/openmqttgateway-v0-9-2-build-error-on-win-10-x64/627/6
2019-10-12 15:57:39 +02:00
1technophile d2dd613855 Avoid OMG crash when emitter txpower >0
#457
2019-09-20 23:34:45 +02:00
1technophile 513cc4b7ac LORA: Default CRC to true
#445
2019-09-20 23:34:04 +02:00
1technophile 818be244dd ESP32 Avoid overlap between IR_RECEIVER_PIN and RF_RECEIVER_PIN
#443
2019-09-20 23:33:38 +02:00
Florian 1f96635978 Add Ble Xiaomi scale compatibility (#459)
* Add of Xiaomi Miscale v1 & v2

Discussed here:
https://community.openmqttgateway.com/t/ble-scale-support/608/16
2019-09-20 23:28:29 +02:00
1technophile cba3ed7e75 Add new boards examples
#452
2019-09-19 22:49:16 +02:00
Florian 0f1ddcb68a Create FUNDING.yml 2019-09-19 22:29:51 +02:00
1technophile 1ce1fe30dd add informations and a production env example 2019-08-25 20:35:30 +02:00
1technophile 9fc2609bba remove simplePublishing on the non test examples 2019-08-25 20:34:41 +02:00
1technophile ca7d5d4195 Add of SONOFF RFR3 environment
Relay ok
Button press ok
RF reception 433toMQTT ok
To have the RF reception you need to connect D0 of SYN470 to GPIO4 of ESP8285. Instruction to follow. Do not do that if you are not confortable with soldering and don't have an electrical background.
2019-08-08 21:27:34 +02:00
1technophile 8f91441c19 change stale location
to enable stale bot activation
2019-08-06 21:05:09 +02:00
1technophile 7d6c746ede Platformio ini improvments
no need of min spiffs for esp32 env not using ble
add extra configs ini file to enable the creation of a prod_env.ini and tests files if needed
2019-08-06 21:04:44 +02:00
1technophile c04e44c753 Prepare v0.9.2 2019-08-04 17:20:31 +02:00
1technophile 9bf09955b8 refactor platformio ini file
transfer macro definition to platformio ini instead of test_config.h
2019-08-04 10:56:07 +02:00
1technophile e20339857e format FS if begin() fail, to avoid setting lost when FS is not mounted
add of timeout parameter
2019-07-29 08:12:07 +02:00
1technophile 6795475e03 differenciate handling of disconnection between ESP and other boards 2019-07-26 12:34:29 +02:00
1technophile 60bc75f0b6 Correct datastring implementation going to the esp to reset if publishing value and protocol only 2019-07-26 11:50:54 +02:00
1technophile 4b0d3943ce Correct issue with interval being added and not set to the expected value
and add debug infos
2019-07-26 11:13:01 +02:00
1technophile 87c85eabe0 if wifi is lost the ESP was blocked on a "MQTT connection loop"
To avoid that check the status of wifi connection before trying to connect to mqtt
Add of traces
2019-07-26 10:55:17 +02:00
1technophile e0c8d93802 don't remove basic pub functions when no simplepublishing 2019-07-26 10:49:16 +02:00
1technophile b938dd3052 Correct mac adress displaying partialy
due to not enough buffer size
2019-07-25 20:52:59 +02:00
1technophile fd90d26873 Enable trace of IP 2019-07-25 14:52:41 +02:00
1technophile 131a731730 Uncomment default gateways to enable to set them per env in platformio.ini 2019-07-25 11:22:28 +02:00
1technophile ddaf734797 CI: Trace activation depending on platform 2019-07-25 10:55:52 +02:00
1technophile 9184c00b9d Add ip and mac for esp
and ip for arduino
2019-07-25 10:42:51 +02:00
1technophile 1a5d808de9 Code size reduction for UNO 2019-07-25 10:41:21 +02:00
1technophile c1242f7c91 Enable to change Gateway name in platformio ini file
by setting the build_flag
  '-DGateway_Name="OpenMQTTGateway_ESP32"'

for example
2019-07-25 06:50:11 +02:00
Florian d30adc2340 Add page hits 2019-07-23 14:50:44 +02:00
1technophile 74939f63ed correct non pertinent call to BTtoMQTT when using ESP32
BTtoMQTT is handled as a task whit ESP32
2019-07-20 21:04:13 +02:00
Florian 8471585d3d Platformio integration (#424)
* adaptation of structure to platformio

* also remove zgatewayRF315 (not usefull)

* replace boolean by bool

#155
2019-07-18 22:45:45 +02:00
1technophile 811054c904 when using ESPWifiManualSetup a build error appear 2019-07-13 14:36:10 +02:00
Florian 24bcdbc97c Update IRRemote ESP8266 to 2.6.2 and add ESP32 support 2019-07-08 22:21:02 +02:00
Florian 2ee18320be replace the use of calculate buffer by a constant buffer size for json size 2019-06-29 14:46:24 +02:00
Florian 618f8d6087 Enable publishing of BLE data even if there is no service data for BLE device 2019-06-23 08:42:49 +02:00
Florian 9f397504e4 recover BTtoMQTT function with HM10 2019-06-23 08:41:01 +02:00
Florian feb489633b add wifi manager esp32 (#414)
* add wifi manager esp32
2019-06-22 13:43:54 +02:00
Florian 1a0dacaf3f Remove mono core option for ESP32 BLE
this options is no longer used as now the ESP32 is a stable board with multicore option activated
2019-06-21 23:03:37 +02:00
Florian 6996867e53 increase identifier array sizes
#409
2019-06-21 22:34:25 +02:00
Florian bc847684f9 correct LYWSD02 not displayed with HM10
#412
2019-06-21 21:51:31 +02:00
Florian de93fd0da0 Avoid publishing of home presence data for HASS when WL or BL are set 2019-06-21 20:22:11 +02:00
Florian 1ef8fff99e Init white and black list to avoid random values
enable to prevent the gateway for filtering not black listed sernsor (this bug apply only with HASS autodiscovery)
2019-06-15 20:54:53 +02:00
Florian 03eba41084 Integrate cleargrass temp and humidity indoor sensor
ESP32, HM10 and discovery with HASS
2019-06-11 21:44:20 +02:00
Florian 4ba27481b5 add of Xiaomi Mijia BT4.0 clock temperature and humidity sensor (LYWSD02)
and enable multiple services data readings for Mijia standard device. Indeed the new version seems to publish several service data compared to old ones.
Please note that I'have update the library with the work of @fguiet
see: https://github.com/nkolban/ESP32_BLE_Arduino/pull/24
2019-05-30 13:37:23 +02:00
Florian a11e336215 correct RF2 keys
https://community.openmqttgateway.com/t/kaku-acd-1000-and-flamingo-sf-501p-switch-dont-respond-on-omg-rf2-sent-signal/438/7?u=1technophile
2019-05-27 22:46:46 +02:00
Florian 650d0877ab Enable auto reconnection to the broker if connection is lost more than 30s
#378
#398
by reseting the board instead of going to setup function
2019-05-27 22:45:44 +02:00
Florian 159376b819 correct PilighttoMQTT json format
#387
2019-04-30 20:50:16 +02:00
Florian 4b8d28179b Add LORA to functions schema 2019-04-15 22:37:52 +02:00
Florian 43cea28eb3 Update CONTRIBUTING.md (#381) 2019-04-14 18:27:49 +02:00
Florian 0b66ba0b59 Prepare 0.9.1 release 2019-04-14 18:25:55 +02:00
Florian b46b5afeb6 add comment for sonoff pin 2019-04-14 15:56:13 +02:00
Florian 1fb2aaa29a change default input gpio pin 2019-04-14 15:05:41 +02:00
Florian 072fa2cc4d change actuator default assignment 2019-04-14 15:03:04 +02:00
Florian 61a17db456 correct wrong json object name 2019-04-14 15:01:46 +02:00
Florian 255c93dd75 revert thigh and tlow for sonoff rf bridge SRFBtoMQTT
#366
2019-04-14 15:01:28 +02:00
Florian 9926c12f52 correct isue with using a different receiver with RFM69 than the default and ack issue
#376 #375
2019-04-13 12:58:31 +02:00
Florian 9eb632001c add message if wrong pubsubclient library used 2019-04-13 12:56:41 +02:00
Florian 5bc0d4d532 Correct return always false when using HM10 and return number instead of char array for sensors values 2019-04-01 22:30:47 +02:00
Florian 4dafcd3779 correct deduplication issue with SRFB and improve OMG performance
by reducing the receivingMQTT call numbers
https://community.openmqttgateway.com/t/seeing-duplicated-messages/398/7
2019-04-01 22:07:28 +02:00
Florian 54d95158c7 Separate list of contributors for main file reading improvment
add also missing contributors
2019-03-27 20:29:49 +01:00
Florian 0a31a471e1 add comment for sonoff rf bridge IR add 2019-03-27 20:22:49 +01:00
Florian 1206877fd9 Add pilight repeater function
#369
set
#define repeatPilightwMQTT true
into config_RF.h to activate it
2019-03-27 20:22:20 +01:00
Florian e1c9e0fcef correct switch between modes raw versus message + protocol and add raw error codes (#374)
has been discussed here:
https://github.com/puuu/ESPiLight/issues/39
2019-03-19 22:32:08 +01:00
Florian e6191915e3 correct json buffer size optimizations 2019-03-19 21:47:29 +01:00
Florian bbb4dd3065 remove optimistic and retain flag from auto discovery
#361

and add some json buffer size to avoid identifier lost
2019-03-19 21:38:40 +01:00
Florian 60f68d00f4 publish discovery for sensors BLE once per run, add ble white and black list
Avoid publishing auto discovery on a time basis
publish auto discovery only one time per BLE sensor
add BLE white and black list implementation
set black list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"black-list":["012314551615","4C6577889C79","edfrgtyjulik"]}'
set white list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"white-list":["012314551615","4C65A5553C79","edfrgtyjulik"]}'
2019-03-18 23:29:47 +01:00
Florian 7a39bba272 update irremote ESP8266 to 2.5.6 2019-03-16 13:16:54 +01:00
Florian 1abd939125 update pubsubclient release to 2.7 2019-03-15 19:05:36 +01:00
Florian 498bea872e no need of going >67 as the code can handle only unsigned long at this time 2019-03-10 13:35:11 +01:00
Florian 98066b0694 Update README.md 2019-03-10 13:04:19 +01:00
Florian da859cc6ae Some memory optimization for Arduino UNO following this thread:
https://community.openmqttgateway.com/t/arduino-uno-ethernet-shield-reboots-on-receiving-rf-signal-on-v-0-9/346/22
Rework led management to avoid use of global variables
and specify special JSON_MSG_BUFFER for arduino UNO
led can now be used for all the boards

generalize use of F macro
for memory optimization
change jsonbuffer calculation method
reduce pubsubclient max packet size for uno and nano
2019-03-09 17:28:54 +01:00
Florian a34d476f04 add LORA gateway auto discovery 2019-03-04 22:29:39 +01:00
Florian 97e8217380 a first try for mi flora and mi jia auto discovery on hass
#361
2019-03-01 23:50:30 +01:00
Florian 7eb231c41e add LORA gateway parameters
following lora api library def
https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md
2019-02-28 20:12:33 +01:00