From 8ff3ac4809de293e70cb8423b7d1c27aaa46462d Mon Sep 17 00:00:00 2001 From: Dave Myers Date: Mon, 21 Dec 2020 19:21:17 -0500 Subject: [PATCH 1/5] sonoff rfbridge direct hack - first commit --- platformio.ini | 1208 ++++++++++++++++++++++++------------------------ 1 file changed, 598 insertions(+), 610 deletions(-) diff --git a/platformio.ini b/platformio.ini index 819437a2c9..30d1a95a52 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,70 +11,9 @@ [platformio] src_dir = main include_dir = main - -extra_configs = - tests/*_env.ini - *_env.ini - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; ENVIRONMENT CHOICE ; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;Uncomment the env line corresponding to your board and modules required, ; -;you can also adapt the modules by removing the corresponding lines in the env detail ; -; if you go to the build flag section of your env you will see that some User_config.h ; -; parameters can be overwritten here, for example the gateway name. ; -; If you want to avoid the lost of your environments at each update you can put them ; -; into a separate file called prod_env.ini, it will be automatically read by pio ; -; an example (prod_env.ini.example) is available into the same folder as this file. ; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;default_envs = sonoff-basic-rfr3 -;default_envs = sonoff-basic -;default_envs = rfbridge -;default_envs = esp32dev-all-test -;default_envs = esp32dev-rf -;default_envs = esp32dev-pilight -;default_envs = esp32dev-pilight-cc1101 -;default_envs = esp32dev-somfy-cc1101 -;default_envs = esp32dev-pilight-somfy-cc1101 -;default_envs = esp32dev-weatherstation -;default_envs = esp32dev-ir -;default_envs = esp32dev-ble -;default_envs = esp32-lolin32lite-ble -;default_envs = esp32-olimex-gtw-ble-eth -;default_envs = esp32-olimex-gtw-ble-wifi -;default_envs = esp32-m5stick-ble -;default_envs = esp32-m5stack-ble -;default_envs = esp32-m5stick-c-ble -;default_envs = esp32-m5stick-cp-ble -;default_envs = esp32-m5atom -;default_envs = ttgo-lora32-v1 -;default_envs = nodemcuv2-rf -;default_envs = nodemcuv2-rf-cc1101 -;default_envs = nodemcuv2-somfy-cc1101 -;default_envs = rf-wifi-gateway -;default_envs = nodemcuv2-rf2 -;default_envs = nodemcuv2-rf2-cc1101 -;default_envs = nodemcuv2-pilight -;default_envs = nodemcuv2-weatherstation -;default_envs = nodemcuv2-ir -;default_envs = avatto-bakeey-ir -;default_envs = nodemcuv2-ble -;default_envs = nodemcuv2-2g -;default_envs = nodemcuv2-all-test -;default_envs = uno-rf -;default_envs = uno-fastled -;default_envs = atmega-all-test -;default_envs = manual-wifi-test -;default_envs = esp32dev-tls-test -;default_envs = nodemcuv2-tls-test -;default_envs = nodemcuv2-rs232 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; ENVIRONMENTS PARAMETERS ; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;Libraries and parameters shared accross environements ; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +extra_configs = + tests/*_env.ini + *_env.ini [libraries] arduinojson = ArduinoJson@5.13.4 @@ -87,7 +26,7 @@ irremoteesp = IRremoteESP8266@2.7.9 irremote = https://github.com/z3t0/Arduino-IRremote.git#1c08a37 lora = https://github.com/sandeepmistry/arduino-LoRa.git#f4a1d27 esppilight = ESPiLight@0.17.0 -rfWeatherStation = WeatherStationDataRx@0.3.1 +rfweatherstation = WeatherStationDataRx@0.3.1 rfm69 = https://github.com/LowPowerLab/RFM69.git#2e915ea rfm69spi = https://github.com/lowpowerlab/spiflash.git#9c0c2b9 rfm69_low-power = Low-Power@1.6 @@ -112,18 +51,18 @@ m5stickcp = https://github.com/m5stack/M5StickC-Plus.git m5stack = M5Stack@0.3.0 smartrc-cc1101-driver-lib = SmartRC-CC1101-Driver-Lib@2.3.5 stl = https://github.com/mike-matera/ArduinoSTL.git#7411816 -somfy_remote=Somfy_Remote_Lib@0.2.0 +somfy_remote = Somfy_Remote_Lib@0.2.0 [env] framework = arduino -lib_deps = - ${libraries.pubsubclient} - ${libraries.arduinojson} - ${libraries.arduinolog} -build_flags = - -w ; supress all warnings - '-DjsonPublishing=true' - '-DjsonReceiving=true' +lib_deps = + ${libraries.pubsubclient} + ${libraries.arduinojson} + ${libraries.arduinolog} +build_flags = + -w + '-DjsonPublishing=true' + '-DjsonReceiving=true' monitor_speed = 115200 [com] @@ -132,742 +71,791 @@ esp32_platform = espressif32@1.12.2 atmelavr_platform = atmelavr@1.13.0 [com-esp] -lib_deps = - ${env.lib_deps} - ${libraries.wifimanager} -build_flags = - ${env.build_flags} - '-DsimpleReceiving=true' - '-DZmqttDiscovery="HADiscovery"' - '-DTRACE=1' - ;'-DCORE_DEBUG_LEVEL=4' +lib_deps = + ${env.lib_deps} + ${libraries.wifimanager} +build_flags = + ${env.build_flags} + '-DsimpleReceiving=true' + '-DZmqttDiscovery="HADiscovery"' + '-DTRACE=1' [com-arduino] -lib_deps = - ${env.lib_deps} - ${libraries.ethernet} -build_flags = - ${env.build_flags} - '-DsimpleReceiving=true' - '-DZmqttDiscovery="HADiscovery"' - '-DTRACE=1' +lib_deps = + ${env.lib_deps} + ${libraries.ethernet} +build_flags = + ${env.build_flags} + '-DsimpleReceiving=true' + '-DZmqttDiscovery="HADiscovery"' + '-DTRACE=1' [com-arduino-low-memory] -lib_deps = - ${env.lib_deps} - ${libraries.ethernet} -build_flags = - ${env.build_flags} - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; ENVIRONMENTS LIST ; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;List of environments that can be build ; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +lib_deps = + ${env.lib_deps} + ${libraries.ethernet} +build_flags = + ${env.build_flags} [env:rfbridge] platform = ${com.esp8266_platform} board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewaySRFB="SRFB"' - '-DLED_INFO=13' - '-DLED_INFO_ON=0' - '-DGateway_Name="OpenMQTTGateway_SRFB"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewaySRFB="SRFB"' + '-DLED_INFO=13' + '-DLED_INFO_ON=0' + '-DGateway_Name="OpenMQTTGateway_SRFB"' +board_build.flash_mode = dout + +[env:sonoff-rfbridge-direct] +platform = ${com.esp8266_platform} +board = esp8285 +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DRF_RECEIVER_GPIO=4' + '-DRF_EMITTER_GPIO=5' + '-DLED_INFO=13' + '-DLED_INFO_ON=0' + '-DZsensorGPIOInput="GPIOInput"' + '-DINPUT_GPIO=0' + '-DGateway_Name="OpenMQTTGateway_SRFB_Direct"' board_build.flash_mode = dout [env:esp32dev-all-test] platform = ${com.esp32_platform} board = esp32dev board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.irremoteesp} - ${libraries.lora} - ${libraries.rfm69} - ${libraries.rfm69spi} - ${libraries.rc-switch} - ${libraries.newremoteswitch} - ${libraries.bme280} - ${libraries.bmp180} - ${libraries.htu21} - ${libraries.ahtx0} - ${libraries.unifiedsensor} - ${libraries.dht} - ${libraries.tsl2561} - ${libraries.ina226} - ${libraries.fastled} - ${libraries.onewire} - ${libraries.dallastemperature} - ${libraries.rfWeatherStation} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DZgatewayLORA="LORA"' - '-DZgatewayRF2="RF2"' - '-DZgatewayIR="IR"' - '-DZgatewayBT="BT"' - '-DZactuatorONOFF="ONOFF"' - '-DZactuatorFASTLED="FASTLED"' - '-DZactuatorPWM="PWM"' - '-DZsensorINA226="INA226"' - '-DZsensorHCSR501="HCSR501"' - '-DZsensorADC="ADC"' - '-DZsensorBH1750="BH1750"' - '-DZsensorBME280="BME280"' - '-DZsensorHTU21="HTU21"' - '-DZsensorAHTx0="AHTx0"' - '-DZsensorTSL2561="TSL2561"' - '-DZsensorDHT="DHT"' - '-DZsensorDS1820="DS1820"' - '-DZgatewayRFM69="RFM69"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZsensorGPIOKeyCode="GPIOKeyCode"' - '-DZgatewayWeatherStation="WeatherStation"' - '-DsimplePublishing=true' - '-DGateway_Name="OpenMQTTGateway_ESP32_ALL"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.irremoteesp} + ${libraries.lora} + ${libraries.rfm69} + ${libraries.rfm69spi} + ${libraries.rc-switch} + ${libraries.newremoteswitch} + ${libraries.bme280} + ${libraries.bmp180} + ${libraries.htu21} + ${libraries.ahtx0} + ${libraries.unifiedsensor} + ${libraries.dht} + ${libraries.tsl2561} + ${libraries.ina226} + ${libraries.fastled} + ${libraries.onewire} + ${libraries.dallastemperature} + ${libraries.rfWeatherStation} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayLORA="LORA"' + '-DZgatewayRF2="RF2"' + '-DZgatewayIR="IR"' + '-DZgatewayBT="BT"' + '-DZactuatorONOFF="ONOFF"' + '-DZactuatorFASTLED="FASTLED"' + '-DZactuatorPWM="PWM"' + '-DZsensorINA226="INA226"' + '-DZsensorHCSR501="HCSR501"' + '-DZsensorADC="ADC"' + '-DZsensorBH1750="BH1750"' + '-DZsensorBME280="BME280"' + '-DZsensorHTU21="HTU21"' + '-DZsensorAHTx0="AHTx0"' + '-DZsensorTSL2561="TSL2561"' + '-DZsensorDHT="DHT"' + '-DZsensorDS1820="DS1820"' + '-DZgatewayRFM69="RFM69"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZsensorGPIOKeyCode="GPIOKeyCode"' + '-DZgatewayWeatherStation="WeatherStation"' + '-DsimplePublishing=true' + '-DGateway_Name="OpenMQTTGateway_ESP32_ALL"' [env:esp32dev-rf] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_ESP32_RF"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_ESP32_RF"' [env:esp32dev-pilight] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight"' [env:esp32dev-pilight-cc1101] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.smartrc-cc1101-driver-lib} -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.smartrc-cc1101-driver-lib} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-CC1101"' [env:esp32dev-somfy-cc1101] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.somfy_remote} - ${libraries.smartrc-cc1101-driver-lib} -build_flags = - ${com-esp.build_flags} - '-DZactuatorSomfy="Somfy"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Somfy-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.somfy_remote} + ${libraries.smartrc-cc1101-driver-lib} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZactuatorSomfy="Somfy"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Somfy-CC1101"' [env:esp32dev-pilight-somfy-cc1101] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.somfy_remote} - ${libraries.smartrc-cc1101-driver-lib} -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DZactuatorSomfy="Somfy"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-Somfy-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.somfy_remote} + ${libraries.smartrc-cc1101-driver-lib} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DZactuatorSomfy="Somfy"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-Somfy-CC1101"' [env:esp32dev-weatherstation] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.rfWeatherStation} -build_flags = - ${com-esp.build_flags} - '-DZgatewayWeatherStation="WeatherStation"' - '-DGateway_Name="OpenMQTTGateway_ESP32_WeatherStation"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rfWeatherStation} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayWeatherStation="WeatherStation"' + '-DGateway_Name="OpenMQTTGateway_ESP32_WeatherStation"' [env:esp32dev-ir] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.irremoteesp} -build_flags = - ${com-esp.build_flags} - '-DZgatewayIR="IR"' - '-DGateway_Name="OpenMQTTGateway_ESP32_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.irremoteesp} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayIR="IR"' + '-DGateway_Name="OpenMQTTGateway_ESP32_IR"' [env:esp32dev-ble] platform = ${com.esp32_platform} board = esp32dev board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_RECEIVE=2' - '-DLED_RECEIVE_ON=0' - '-DGateway_Name="OpenMQTTGateway_ESP32_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_RECEIVE=2' + '-DLED_RECEIVE_ON=0' + '-DGateway_Name="OpenMQTTGateway_ESP32_BLE"' [env:esp32-lolin32lite-ble] platform = ${com.esp32_platform} board = lolin32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_RECEIVE=22' - '-DLED_RECEIVE_ON=0' - '-DGateway_Name="OpenMQTTGateway_LOLIN32LITE_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_RECEIVE=22' + '-DLED_RECEIVE_ON=0' + '-DGateway_Name="OpenMQTTGateway_LOLIN32LITE_BLE"' [env:esp32-olimex-gtw-ble-eth] platform = ${com.esp32_platform} board = esp32-gateway board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_INFO=33' - '-DLED_INFO_ON=1' - '-DESP32_ETHERNET=true' - '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_INFO=33' + '-DLED_INFO_ON=1' + '-DESP32_ETHERNET=true' + '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWE"' [env:esp32-olimex-gtw-ble-wifi] platform = ${com.esp32_platform} board = esp32-gateway board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_INFO=33' - '-DLED_INFO_ON=1' - '-DTRIGGER_GPIO=34' - '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWW"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_INFO=33' + '-DLED_INFO_ON=1' + '-DTRIGGER_GPIO=34' + '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWW"' [env:esp32-m5stick-ble] platform = ${com.esp32_platform} board = m5stack-core-esp32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.irremoteesp} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DLED_RECEIVE=19' - '-DLED_RECEIVE_ON=1' - '-DTRIGGER_GPIO=35' - '-DIR_EMITTER_GPIO=17' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.irremoteesp} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DLED_RECEIVE=19' + '-DLED_RECEIVE_ON=1' + '-DTRIGGER_GPIO=35' + '-DIR_EMITTER_GPIO=17' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_BLE_IR"' board_upload.speed = 921600 [env:esp32-m5stack-ble] platform = ${com.esp32_platform} board = m5stack-core-esp32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.m5stack} - ${libraries.ble} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZboardM5STACK="M5Stack"' - '-DLED_RECEIVE=15' - '-DTRIGGER_GPIO=37' - '-DSLEEP_BUTTON=38' - '-DINPUT_GPIO=39' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STACK_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.m5stack} + ${libraries.ble} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZboardM5STACK="M5Stack"' + '-DLED_RECEIVE=15' + '-DTRIGGER_GPIO=37' + '-DSLEEP_BUTTON=38' + '-DINPUT_GPIO=39' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STACK_BLE"' board_upload.speed = 921600 [env:esp32-m5stick-c-ble] platform = ${com.esp32_platform} board = m5stick-c board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.m5stickc} - ${libraries.irremoteesp} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZboardM5STICKC="M5StickC"' - '-DACTUATOR_ONOFF_GPIO=10' - '-DINPUT_GPIO=37' - '-DLED_RECEIVE=10' - '-DLED_RECEIVE_ON=0' - '-DSLEEP_BUTTON=39' - '-DTRIGGER_GPIO=39' - '-DIR_EMITTER_INVERTED=true' - '-DIR_EMITTER_GPIO=9' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_C_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.m5stickc} + ${libraries.irremoteesp} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZboardM5STICKC="M5StickC"' + '-DACTUATOR_ONOFF_GPIO=10' + '-DINPUT_GPIO=37' + '-DLED_RECEIVE=10' + '-DLED_RECEIVE_ON=0' + '-DSLEEP_BUTTON=39' + '-DTRIGGER_GPIO=39' + '-DIR_EMITTER_INVERTED=true' + '-DIR_EMITTER_GPIO=9' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_C_BLE_IR"' board_upload.speed = 1500000 [env:esp32-m5stick-cp-ble] platform = ${com.esp32_platform} board = pico32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.m5stickcp} - ${libraries.irremoteesp} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZboardM5STICKCP="M5StickCP"' - '-DACTUATOR_ONOFF_GPIO=10' - '-DINPUT_GPIO=37' - '-DLED_RECEIVE=10' - '-DLED_RECEIVE_ON=0' - '-DSLEEP_BUTTON=39' - '-DTRIGGER_GPIO=39' - '-DIR_EMITTER_INVERTED=true' - '-DIR_EMITTER_GPIO=9' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.m5stickcp} + ${libraries.irremoteesp} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZboardM5STICKCP="M5StickCP"' + '-DACTUATOR_ONOFF_GPIO=10' + '-DINPUT_GPIO=37' + '-DLED_RECEIVE=10' + '-DLED_RECEIVE_ON=0' + '-DSLEEP_BUTTON=39' + '-DTRIGGER_GPIO=39' + '-DIR_EMITTER_INVERTED=true' + '-DIR_EMITTER_GPIO=9' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR"' board_upload.speed = 1500000 [env:esp32-m5atom] platform = ${com.esp32_platform} board = pico32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.irremoteesp} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DTRIGGER_GPIO=39' - '-DSLEEP_BUTTON=39' - '-DIR_EMITTER_GPIO=12' - '-DGateway_Name="OpenMQTTGateway_ESP32_ATOM_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.irremoteesp} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DTRIGGER_GPIO=39' + '-DSLEEP_BUTTON=39' + '-DIR_EMITTER_GPIO=12' + '-DGateway_Name="OpenMQTTGateway_ESP32_ATOM_BLE_IR"' board_upload.speed = 1500000 [env:ttgo-lora32-v1] platform = ${com.esp32_platform} board = ttgo-lora32-v1 -lib_deps = - ${com-esp.lib_deps} - ${libraries.lora} -build_flags = - ${com-esp.build_flags} - '-DZgatewayLORA="LORA"' - '-DGateway_Name="OpenMQTTGateway_ESP32_LORA"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.lora} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayLORA="LORA"' + '-DGateway_Name="OpenMQTTGateway_ESP32_LORA"' [env:nodemcuv2-all-test] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.irremoteesp} - ${libraries.rfm69} - ${libraries.rfm69spi} - ${libraries.rc-switch} - ${libraries.newremoteswitch} - ${libraries.bme280} - ${libraries.bmp180} - ${libraries.htu21} - ${libraries.ahtx0} - ${libraries.unifiedsensor} - ${libraries.dht} - ${libraries.tsl2561} - ${libraries.ina226} - ${libraries.esp8266_mdns} - ${libraries.wire} - ${libraries.fastled} - ${libraries.onewire} - ${libraries.dallastemperature} - ${libraries.rfWeatherStation} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DZgatewayRF2="RF2"' - '-DZgatewayIR="IR"' - '-DZgatewayBT="BT"' - '-DZgatewayPilight="Pilight"' - '-DZactuatorONOFF="ONOFF"' - '-DZactuatorFASTLED="FASTLED"' - ;'-DZactuatorPWM="PWM"' - '-DZsensorINA226="INA226"' - '-DZsensorHCSR501="HCSR501"' - '-DZsensorHCSR04="HCSR04"' - '-DZsensorADC="ADC"' - '-DZsensorBH1750="BH1750"' - '-DZsensorBME280="BME280"' - '-DZsensorHTU21="HTU21"' - '-DZsensorAHTx0="AHTx0"' - '-DZsensorTSL2561="TSL2561"' - '-DZsensorDHT="DHT"' - '-DZsensorDS1820="DS1820"' - '-DZgatewayRFM69="RFM69"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZsensorGPIOKeyCode="GPIOKeyCode"' - '-DZgatewayWeatherStation="WeatherStation"' - '-DsimplePublishing=true' - '-DGateway_Name="OpenMQTTGateway_ESP8266_ALL"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.irremoteesp} + ${libraries.rfm69} + ${libraries.rfm69spi} + ${libraries.rc-switch} + ${libraries.newremoteswitch} + ${libraries.bme280} + ${libraries.bmp180} + ${libraries.htu21} + ${libraries.ahtx0} + ${libraries.unifiedsensor} + ${libraries.dht} + ${libraries.tsl2561} + ${libraries.ina226} + ${libraries.esp8266_mdns} + ${libraries.wire} + ${libraries.fastled} + ${libraries.onewire} + ${libraries.dallastemperature} + ${libraries.rfWeatherStation} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayRF2="RF2"' + '-DZgatewayIR="IR"' + '-DZgatewayBT="BT"' + '-DZgatewayPilight="Pilight"' + '-DZactuatorONOFF="ONOFF"' + '-DZactuatorFASTLED="FASTLED"' + '-DZsensorINA226="INA226"' + '-DZsensorHCSR501="HCSR501"' + '-DZsensorHCSR04="HCSR04"' + '-DZsensorADC="ADC"' + '-DZsensorBH1750="BH1750"' + '-DZsensorBME280="BME280"' + '-DZsensorHTU21="HTU21"' + '-DZsensorAHTx0="AHTx0"' + '-DZsensorTSL2561="TSL2561"' + '-DZsensorDHT="DHT"' + '-DZsensorDS1820="DS1820"' + '-DZgatewayRFM69="RFM69"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZsensorGPIOKeyCode="GPIOKeyCode"' + '-DZgatewayWeatherStation="WeatherStation"' + '-DsimplePublishing=true' + '-DGateway_Name="OpenMQTTGateway_ESP8266_ALL"' board_build.flash_mode = dout - [env:nodemcuv2-2g] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.a6lib} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="2G"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_2G"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.a6lib} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="2G"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_2G"' board_build.flash_mode = dout [env:nodemcuv2-ble] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.wire} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.wire} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_BLE"' board_build.flash_mode = dout [env:nodemcuv2-ir] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.irremoteesp} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayIR="IR"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.irremoteesp} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayIR="IR"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_IR"' board_build.flash_mode = dout [env:nodemcuv2-rs232] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRS232="RS232"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RS232"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRS232="RS232"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RS232"' board_build.flash_mode = dout [env:avatto-bakeey-ir] platform = ${com.esp8266_platform} board = esp01_1m -lib_deps = - ${com-esp.lib_deps} - ${libraries.irremoteesp} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayIR="IR"' - '-DTRIGGER_GPIO=13' - '-DLED_SEND=4' - '-DIR_EMITTER_GPIO=14' - '-DIR_RECEIVER_GPIO=5' - '-DGateway_Name="OpenMQTTGateway_AVATTO_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.irremoteesp} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayIR="IR"' + '-DTRIGGER_GPIO=13' + '-DLED_SEND=4' + '-DIR_EMITTER_GPIO=14' + '-DIR_RECEIVER_GPIO=5' + '-DGateway_Name="OpenMQTTGateway_AVATTO_IR"' board_build.flash_mode = dout [env:nodemcuv2-rf] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF"' board_build.flash_mode = dout [env:nodemcuv2-rf-cc1101] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.smartrc-cc1101-driver-lib} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF-CC1101"' board_build.flash_mode = dout [env:nodemcuv2-somfy-cc1101] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.somfy_remote} - ${libraries.smartrc-cc1101-driver-lib} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZactuatorSomfy="Somfy"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_Somfy-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.somfy_remote} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZactuatorSomfy="Somfy"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_Somfy-CC1101"' board_build.flash_mode = dout [env:manual-wifi-test] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DESPWifiManualSetup=true' - '-DGateway_Name="OpenMQTTGateway_TEST_MANUAL_WIFI"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DESPWifiManualSetup=true' + '-DGateway_Name="OpenMQTTGateway_TEST_MANUAL_WIFI"' board_build.flash_mode = dout [env:esp32dev-tls-test] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} -build_flags = - ${com-esp.build_flags} - '-DSECURE_CONNECTION' - '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' +lib_deps = + ${com-esp.lib_deps} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DSECURE_CONNECTION' + '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' board_build.flash_mode = dout - [env:nodemcuv2-tls-test] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} -build_flags = - ${com-esp.build_flags} - '-DSECURE_CONNECTION' - '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' +lib_deps = + ${com-esp.lib_deps} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DSECURE_CONNECTION' + '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' board_build.flash_mode = dout [env:rf-wifi-gateway] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF_WIFI_GW"' - '-DRF_RECEIVER_GPIO=5' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF_WIFI_GW"' + '-DRF_RECEIVER_GPIO=5' board_build.flash_mode = dout [env:nodemcuv2-rf2] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.newremoteswitch} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF2="RF2"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.newremoteswitch} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF2="RF2"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2"' board_build.flash_mode = dout [env:nodemcuv2-rf2-cc1101] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.newremoteswitch} - ${libraries.smartrc-cc1101-driver-lib} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF2="RF2"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.newremoteswitch} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF2="RF2"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2-CC1101"' board_build.flash_mode = dout [env:nodemcuv2-pilight] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_Pilight"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_Pilight"' board_build.flash_mode = dout [env:nodemcuv2-weatherstation] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rfWeatherStation} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZgatewayWeatherStation="WeatherStationDataRx"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF3"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rfWeatherStation} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZgatewayWeatherStation="WeatherStationDataRx"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF3"' board_build.flash_mode = dout [env:sonoff-basic] platform = ${com.esp8266_platform} board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZactuatorONOFF="ONOFF"' - '-DZsensorGPIOInput="GPIOInput"' - '-DACTUATOR_ONOFF_GPIO=12' - '-DINPUT_GPIO=0' - '-DGateway_Name="OpenMQTTGateway_SONOFF_RELAY"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZactuatorONOFF="ONOFF"' + '-DZsensorGPIOInput="GPIOInput"' + '-DACTUATOR_ONOFF_GPIO=12' + '-DINPUT_GPIO=0' + '-DGateway_Name="OpenMQTTGateway_SONOFF_RELAY"' board_build.flash_mode = dout [env:sonoff-basic-rfr3] platform = ${com.esp8266_platform} board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} -build_flags = - ${com-esp.build_flags} - '-DZactuatorONOFF="ONOFF"' - '-DZsensorGPIOInput="GPIOInput"' - '-DACTUATOR_ONOFF_GPIO=12' - '-DINPUT_GPIO=0' - '-DRF_RECEIVER_GPIO=4' - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_SONOFF_BASIC_RFR3"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-esp.build_flags} + '-DZactuatorONOFF="ONOFF"' + '-DZsensorGPIOInput="GPIOInput"' + '-DACTUATOR_ONOFF_GPIO=12' + '-DINPUT_GPIO=0' + '-DRF_RECEIVER_GPIO=4' + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_SONOFF_BASIC_RFR3"' board_build.flash_mode = dout [env:atmega-all-test] platform = ${com.atmelavr_platform} board = megaatmega2560 -lib_deps = - ${com-arduino.lib_deps} - ${libraries.irremote} - ${libraries.rfm69} - ${libraries.rfm69spi} - ${libraries.rfm69_low-power} - ${libraries.rc-switch} - ${libraries.newremoteswitch} - ${libraries.bme280} - ${libraries.bmp180} - ${libraries.htu21} - ${libraries.ahtx0} - ${libraries.unifiedsensor} - ${libraries.dht} - ${libraries.tsl2561} - ${libraries.a6lib} - ${libraries.ina226} - ${libraries.fastled} - ${libraries.onewire} - ${libraries.dallastemperature} - ${libraries.rfWeatherStation} - ${libraries.stl} -build_flags = - ${com-arduino.build_flags} - '-DZgatewayRF="RF"' - '-DZgatewayRF="RF315"' - '-DZgatewayRF2="RF2"' - '-DZgatewayIR="IR"' - '-DZgatewayBT="BT"' - '-DZactuatorONOFF="ONOFF"' - '-DZactuatorFASTLED="FASTLED"' - '-DZactuatorPWM="PWM"' - '-DZsensorINA226="INA226"' - '-DZsensorHCSR501="HCSR501"' - '-DZsensorADC="ADC"' - '-DZsensorBH1750="BH1750"' - '-DZsensorBME280="BME280"' - '-DZsensorHTU21="HTU21"' - '-DZsensorAHTx0="AHTx0"' - '-DZsensorTSL2561="TSL2561"' - '-DZsensorDHT="DHT"' - '-DZsensorDS1820="DS1820"' - '-DZgatewayRFM69="RFM69"' - '-DZgatewayWeatherStation="WeatherStation"' - '-DZsensorGPIOInput="GPIOInput"' - ;'-DZsensorGPIOKeyCode="GPIOKeyCode"' - '-DZmqttDiscovery="HADiscovery"' - '-DsimplePublishing=true' - '-DGateway_Name="OpenMQTTGateway_ATMEGA_ALL"' +lib_deps = + ${com-arduino.lib_deps} + ${libraries.irremote} + ${libraries.rfm69} + ${libraries.rfm69spi} + ${libraries.rfm69_low-power} + ${libraries.rc-switch} + ${libraries.newremoteswitch} + ${libraries.bme280} + ${libraries.bmp180} + ${libraries.htu21} + ${libraries.ahtx0} + ${libraries.unifiedsensor} + ${libraries.dht} + ${libraries.tsl2561} + ${libraries.a6lib} + ${libraries.ina226} + ${libraries.fastled} + ${libraries.onewire} + ${libraries.dallastemperature} + ${libraries.rfWeatherStation} + ${libraries.stl} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-arduino.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayRF="RF315"' + '-DZgatewayRF2="RF2"' + '-DZgatewayIR="IR"' + '-DZgatewayBT="BT"' + '-DZactuatorONOFF="ONOFF"' + '-DZactuatorFASTLED="FASTLED"' + '-DZactuatorPWM="PWM"' + '-DZsensorINA226="INA226"' + '-DZsensorHCSR501="HCSR501"' + '-DZsensorADC="ADC"' + '-DZsensorBH1750="BH1750"' + '-DZsensorBME280="BME280"' + '-DZsensorHTU21="HTU21"' + '-DZsensorAHTx0="AHTx0"' + '-DZsensorTSL2561="TSL2561"' + '-DZsensorDHT="DHT"' + '-DZsensorDS1820="DS1820"' + '-DZgatewayRFM69="RFM69"' + '-DZgatewayWeatherStation="WeatherStation"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZmqttDiscovery="HADiscovery"' + '-DsimplePublishing=true' + '-DGateway_Name="OpenMQTTGateway_ATMEGA_ALL"' [env:uno-rf] platform = ${com.atmelavr_platform} board = uno -lib_deps = - ${com-arduino.lib_deps} - ${libraries.rc-switch} -build_flags = - ${com-arduino-low-memory.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OMG_1_RF"' +lib_deps = + ${com-arduino.lib_deps} + ${libraries.rc-switch} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-arduino-low-memory.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OMG_1_RF"' [env:uno-fastled] platform = ${com.atmelavr_platform} board = uno -lib_deps = - ${com-arduino.lib_deps} - ${libraries.fastled} -build_flags = - ${com-arduino-low-memory.build_flags} - '-DGateway_Name="OMG_1_FL"' - '-DZactuatorFASTLED="FASTLED"' +lib_deps = + ${com-arduino.lib_deps} + ${libraries.fastled} + puuu/ESPiLight@^0.17.0 +build_flags = + ${com-arduino-low-memory.build_flags} + '-DGateway_Name="OMG_1_FL"' + '-DZactuatorFASTLED="FASTLED"' From a10ddc23d0aa8ee26a23d126e214574a0fa433e1 Mon Sep 17 00:00:00 2001 From: Dave Myers Date: Tue, 22 Dec 2020 09:03:51 -0500 Subject: [PATCH 2/5] Attempting to isolate changes. --- platformio.ini | 1221 +++++++++++++++++++++++++----------------------- 1 file changed, 626 insertions(+), 595 deletions(-) diff --git a/platformio.ini b/platformio.ini index 30d1a95a52..d5fff5037c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,9 +11,70 @@ [platformio] src_dir = main include_dir = main -extra_configs = - tests/*_env.ini - *_env.ini + +extra_configs = + tests/*_env.ini + *_env.ini + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; ENVIRONMENT CHOICE ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;Uncomment the env line corresponding to your board and modules required, ; +;you can also adapt the modules by removing the corresponding lines in the env detail ; +; if you go to the build flag section of your env you will see that some User_config.h ; +; parameters can be overwritten here, for example the gateway name. ; +; If you want to avoid the lost of your environments at each update you can put them ; +; into a separate file called prod_env.ini, it will be automatically read by pio ; +; an example (prod_env.ini.example) is available into the same folder as this file. ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;default_envs = sonoff-basic-rfr3 +;default_envs = sonoff-basic +;default_envs = rfbridge +;default_envs = esp32dev-all-test +;default_envs = esp32dev-rf +;default_envs = esp32dev-pilight +;default_envs = esp32dev-pilight-cc1101 +;default_envs = esp32dev-somfy-cc1101 +;default_envs = esp32dev-pilight-somfy-cc1101 +;default_envs = esp32dev-weatherstation +;default_envs = esp32dev-ir +;default_envs = esp32dev-ble +;default_envs = esp32-lolin32lite-ble +;default_envs = esp32-olimex-gtw-ble-eth +;default_envs = esp32-olimex-gtw-ble-wifi +;default_envs = esp32-m5stick-ble +;default_envs = esp32-m5stack-ble +;default_envs = esp32-m5stick-c-ble +;default_envs = esp32-m5stick-cp-ble +;default_envs = esp32-m5atom +;default_envs = ttgo-lora32-v1 +;default_envs = nodemcuv2-rf +;default_envs = nodemcuv2-rf-cc1101 +;default_envs = nodemcuv2-somfy-cc1101 +;default_envs = rf-wifi-gateway +;default_envs = nodemcuv2-rf2 +;default_envs = nodemcuv2-rf2-cc1101 +;default_envs = nodemcuv2-pilight +;default_envs = nodemcuv2-weatherstation +;default_envs = nodemcuv2-ir +;default_envs = avatto-bakeey-ir +;default_envs = nodemcuv2-ble +;default_envs = nodemcuv2-2g +;default_envs = nodemcuv2-all-test +;default_envs = uno-rf +;default_envs = uno-fastled +;default_envs = atmega-all-test +;default_envs = manual-wifi-test +;default_envs = esp32dev-tls-test +;default_envs = nodemcuv2-tls-test +;default_envs = nodemcuv2-rs232 + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; ENVIRONMENTS PARAMETERS ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;Libraries and parameters shared accross environements ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [libraries] arduinojson = ArduinoJson@5.13.4 @@ -26,7 +87,7 @@ irremoteesp = IRremoteESP8266@2.7.9 irremote = https://github.com/z3t0/Arduino-IRremote.git#1c08a37 lora = https://github.com/sandeepmistry/arduino-LoRa.git#f4a1d27 esppilight = ESPiLight@0.17.0 -rfweatherstation = WeatherStationDataRx@0.3.1 +rfWeatherStation = WeatherStationDataRx@0.3.1 rfm69 = https://github.com/LowPowerLab/RFM69.git#2e915ea rfm69spi = https://github.com/lowpowerlab/spiflash.git#9c0c2b9 rfm69_low-power = Low-Power@1.6 @@ -51,18 +112,18 @@ m5stickcp = https://github.com/m5stack/M5StickC-Plus.git m5stack = M5Stack@0.3.0 smartrc-cc1101-driver-lib = SmartRC-CC1101-Driver-Lib@2.3.5 stl = https://github.com/mike-matera/ArduinoSTL.git#7411816 -somfy_remote = Somfy_Remote_Lib@0.2.0 +somfy_remote=Somfy_Remote_Lib@0.2.0 [env] framework = arduino -lib_deps = - ${libraries.pubsubclient} - ${libraries.arduinojson} - ${libraries.arduinolog} -build_flags = - -w - '-DjsonPublishing=true' - '-DjsonReceiving=true' +lib_deps = + ${libraries.pubsubclient} + ${libraries.arduinojson} + ${libraries.arduinolog} +build_flags = + -w ; supress all warnings + '-DjsonPublishing=true' + '-DjsonReceiving=true' monitor_speed = 115200 [com] @@ -71,791 +132,761 @@ esp32_platform = espressif32@1.12.2 atmelavr_platform = atmelavr@1.13.0 [com-esp] -lib_deps = - ${env.lib_deps} - ${libraries.wifimanager} -build_flags = - ${env.build_flags} - '-DsimpleReceiving=true' - '-DZmqttDiscovery="HADiscovery"' - '-DTRACE=1' +lib_deps = + ${env.lib_deps} + ${libraries.wifimanager} +build_flags = + ${env.build_flags} + '-DsimpleReceiving=true' + '-DZmqttDiscovery="HADiscovery"' + '-DTRACE=1' + ;'-DCORE_DEBUG_LEVEL=4' [com-arduino] -lib_deps = - ${env.lib_deps} - ${libraries.ethernet} -build_flags = - ${env.build_flags} - '-DsimpleReceiving=true' - '-DZmqttDiscovery="HADiscovery"' - '-DTRACE=1' +lib_deps = + ${env.lib_deps} + ${libraries.ethernet} +build_flags = + ${env.build_flags} + '-DsimpleReceiving=true' + '-DZmqttDiscovery="HADiscovery"' + '-DTRACE=1' [com-arduino-low-memory] -lib_deps = - ${env.lib_deps} - ${libraries.ethernet} -build_flags = - ${env.build_flags} +lib_deps = + ${env.lib_deps} + ${libraries.ethernet} +build_flags = + ${env.build_flags} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; ENVIRONMENTS LIST ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;List of environments that can be build ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [env:rfbridge] platform = ${com.esp8266_platform} board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewaySRFB="SRFB"' - '-DLED_INFO=13' - '-DLED_INFO_ON=0' - '-DGateway_Name="OpenMQTTGateway_SRFB"' -board_build.flash_mode = dout - -[env:sonoff-rfbridge-direct] -platform = ${com.esp8266_platform} -board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DRF_RECEIVER_GPIO=4' - '-DRF_EMITTER_GPIO=5' - '-DLED_INFO=13' - '-DLED_INFO_ON=0' - '-DZsensorGPIOInput="GPIOInput"' - '-DINPUT_GPIO=0' - '-DGateway_Name="OpenMQTTGateway_SRFB_Direct"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewaySRFB="SRFB"' + '-DLED_INFO=13' + '-DLED_INFO_ON=0' + '-DGateway_Name="OpenMQTTGateway_SRFB"' board_build.flash_mode = dout [env:esp32dev-all-test] platform = ${com.esp32_platform} board = esp32dev board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.irremoteesp} - ${libraries.lora} - ${libraries.rfm69} - ${libraries.rfm69spi} - ${libraries.rc-switch} - ${libraries.newremoteswitch} - ${libraries.bme280} - ${libraries.bmp180} - ${libraries.htu21} - ${libraries.ahtx0} - ${libraries.unifiedsensor} - ${libraries.dht} - ${libraries.tsl2561} - ${libraries.ina226} - ${libraries.fastled} - ${libraries.onewire} - ${libraries.dallastemperature} - ${libraries.rfWeatherStation} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DZgatewayLORA="LORA"' - '-DZgatewayRF2="RF2"' - '-DZgatewayIR="IR"' - '-DZgatewayBT="BT"' - '-DZactuatorONOFF="ONOFF"' - '-DZactuatorFASTLED="FASTLED"' - '-DZactuatorPWM="PWM"' - '-DZsensorINA226="INA226"' - '-DZsensorHCSR501="HCSR501"' - '-DZsensorADC="ADC"' - '-DZsensorBH1750="BH1750"' - '-DZsensorBME280="BME280"' - '-DZsensorHTU21="HTU21"' - '-DZsensorAHTx0="AHTx0"' - '-DZsensorTSL2561="TSL2561"' - '-DZsensorDHT="DHT"' - '-DZsensorDS1820="DS1820"' - '-DZgatewayRFM69="RFM69"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZsensorGPIOKeyCode="GPIOKeyCode"' - '-DZgatewayWeatherStation="WeatherStation"' - '-DsimplePublishing=true' - '-DGateway_Name="OpenMQTTGateway_ESP32_ALL"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.irremoteesp} + ${libraries.lora} + ${libraries.rfm69} + ${libraries.rfm69spi} + ${libraries.rc-switch} + ${libraries.newremoteswitch} + ${libraries.bme280} + ${libraries.bmp180} + ${libraries.htu21} + ${libraries.ahtx0} + ${libraries.unifiedsensor} + ${libraries.dht} + ${libraries.tsl2561} + ${libraries.ina226} + ${libraries.fastled} + ${libraries.onewire} + ${libraries.dallastemperature} + ${libraries.rfWeatherStation} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayLORA="LORA"' + '-DZgatewayRF2="RF2"' + '-DZgatewayIR="IR"' + '-DZgatewayBT="BT"' + '-DZactuatorONOFF="ONOFF"' + '-DZactuatorFASTLED="FASTLED"' + '-DZactuatorPWM="PWM"' + '-DZsensorINA226="INA226"' + '-DZsensorHCSR501="HCSR501"' + '-DZsensorADC="ADC"' + '-DZsensorBH1750="BH1750"' + '-DZsensorBME280="BME280"' + '-DZsensorHTU21="HTU21"' + '-DZsensorAHTx0="AHTx0"' + '-DZsensorTSL2561="TSL2561"' + '-DZsensorDHT="DHT"' + '-DZsensorDS1820="DS1820"' + '-DZgatewayRFM69="RFM69"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZsensorGPIOKeyCode="GPIOKeyCode"' + '-DZgatewayWeatherStation="WeatherStation"' + '-DsimplePublishing=true' + '-DGateway_Name="OpenMQTTGateway_ESP32_ALL"' [env:esp32dev-rf] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_ESP32_RF"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_ESP32_RF"' [env:esp32dev-pilight] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight"' [env:esp32dev-pilight-cc1101] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.smartrc-cc1101-driver-lib} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.smartrc-cc1101-driver-lib} +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-CC1101"' [env:esp32dev-somfy-cc1101] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.somfy_remote} - ${libraries.smartrc-cc1101-driver-lib} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZactuatorSomfy="Somfy"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Somfy-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.somfy_remote} + ${libraries.smartrc-cc1101-driver-lib} +build_flags = + ${com-esp.build_flags} + '-DZactuatorSomfy="Somfy"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Somfy-CC1101"' [env:esp32dev-pilight-somfy-cc1101] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.somfy_remote} - ${libraries.smartrc-cc1101-driver-lib} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DZactuatorSomfy="Somfy"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-Somfy-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.somfy_remote} + ${libraries.smartrc-cc1101-driver-lib} +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DZactuatorSomfy="Somfy"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP32_Pilight-Somfy-CC1101"' [env:esp32dev-weatherstation] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.rfWeatherStation} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayWeatherStation="WeatherStation"' - '-DGateway_Name="OpenMQTTGateway_ESP32_WeatherStation"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rfWeatherStation} +build_flags = + ${com-esp.build_flags} + '-DZgatewayWeatherStation="WeatherStation"' + '-DGateway_Name="OpenMQTTGateway_ESP32_WeatherStation"' [env:esp32dev-ir] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - ${libraries.irremoteesp} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayIR="IR"' - '-DGateway_Name="OpenMQTTGateway_ESP32_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.irremoteesp} +build_flags = + ${com-esp.build_flags} + '-DZgatewayIR="IR"' + '-DGateway_Name="OpenMQTTGateway_ESP32_IR"' [env:esp32dev-ble] platform = ${com.esp32_platform} board = esp32dev board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_RECEIVE=2' - '-DLED_RECEIVE_ON=0' - '-DGateway_Name="OpenMQTTGateway_ESP32_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_RECEIVE=2' + '-DLED_RECEIVE_ON=0' + '-DGateway_Name="OpenMQTTGateway_ESP32_BLE"' [env:esp32-lolin32lite-ble] platform = ${com.esp32_platform} board = lolin32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_RECEIVE=22' - '-DLED_RECEIVE_ON=0' - '-DGateway_Name="OpenMQTTGateway_LOLIN32LITE_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_RECEIVE=22' + '-DLED_RECEIVE_ON=0' + '-DGateway_Name="OpenMQTTGateway_LOLIN32LITE_BLE"' [env:esp32-olimex-gtw-ble-eth] platform = ${com.esp32_platform} board = esp32-gateway board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_INFO=33' - '-DLED_INFO_ON=1' - '-DESP32_ETHERNET=true' - '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_INFO=33' + '-DLED_INFO_ON=1' + '-DESP32_ETHERNET=true' + '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWE"' [env:esp32-olimex-gtw-ble-wifi] platform = ${com.esp32_platform} board = esp32-gateway board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DLED_INFO=33' - '-DLED_INFO_ON=1' - '-DTRIGGER_GPIO=34' - '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWW"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DLED_INFO=33' + '-DLED_INFO_ON=1' + '-DTRIGGER_GPIO=34' + '-DGateway_Name="OpenMQTTGateway_ESP32_OLM_GTWW"' [env:esp32-m5stick-ble] platform = ${com.esp32_platform} board = m5stack-core-esp32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.irremoteesp} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DLED_RECEIVE=19' - '-DLED_RECEIVE_ON=1' - '-DTRIGGER_GPIO=35' - '-DIR_EMITTER_GPIO=17' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.irremoteesp} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DLED_RECEIVE=19' + '-DLED_RECEIVE_ON=1' + '-DTRIGGER_GPIO=35' + '-DIR_EMITTER_GPIO=17' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_BLE_IR"' board_upload.speed = 921600 [env:esp32-m5stack-ble] platform = ${com.esp32_platform} board = m5stack-core-esp32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.m5stack} - ${libraries.ble} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZboardM5STACK="M5Stack"' - '-DLED_RECEIVE=15' - '-DTRIGGER_GPIO=37' - '-DSLEEP_BUTTON=38' - '-DINPUT_GPIO=39' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STACK_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.m5stack} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZboardM5STACK="M5Stack"' + '-DLED_RECEIVE=15' + '-DTRIGGER_GPIO=37' + '-DSLEEP_BUTTON=38' + '-DINPUT_GPIO=39' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STACK_BLE"' board_upload.speed = 921600 [env:esp32-m5stick-c-ble] platform = ${com.esp32_platform} board = m5stick-c board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.m5stickc} - ${libraries.irremoteesp} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZboardM5STICKC="M5StickC"' - '-DACTUATOR_ONOFF_GPIO=10' - '-DINPUT_GPIO=37' - '-DLED_RECEIVE=10' - '-DLED_RECEIVE_ON=0' - '-DSLEEP_BUTTON=39' - '-DTRIGGER_GPIO=39' - '-DIR_EMITTER_INVERTED=true' - '-DIR_EMITTER_GPIO=9' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_C_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.m5stickc} + ${libraries.irremoteesp} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZboardM5STICKC="M5StickC"' + '-DACTUATOR_ONOFF_GPIO=10' + '-DINPUT_GPIO=37' + '-DLED_RECEIVE=10' + '-DLED_RECEIVE_ON=0' + '-DSLEEP_BUTTON=39' + '-DTRIGGER_GPIO=39' + '-DIR_EMITTER_INVERTED=true' + '-DIR_EMITTER_GPIO=9' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_C_BLE_IR"' board_upload.speed = 1500000 [env:esp32-m5stick-cp-ble] platform = ${com.esp32_platform} board = pico32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.m5stickcp} - ${libraries.irremoteesp} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZboardM5STICKCP="M5StickCP"' - '-DACTUATOR_ONOFF_GPIO=10' - '-DINPUT_GPIO=37' - '-DLED_RECEIVE=10' - '-DLED_RECEIVE_ON=0' - '-DSLEEP_BUTTON=39' - '-DTRIGGER_GPIO=39' - '-DIR_EMITTER_INVERTED=true' - '-DIR_EMITTER_GPIO=9' - '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.m5stickcp} + ${libraries.irremoteesp} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZboardM5STICKCP="M5StickCP"' + '-DACTUATOR_ONOFF_GPIO=10' + '-DINPUT_GPIO=37' + '-DLED_RECEIVE=10' + '-DLED_RECEIVE_ON=0' + '-DSLEEP_BUTTON=39' + '-DTRIGGER_GPIO=39' + '-DIR_EMITTER_INVERTED=true' + '-DIR_EMITTER_GPIO=9' + '-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR"' board_upload.speed = 1500000 [env:esp32-m5atom] platform = ${com.esp32_platform} board = pico32 board_build.partitions = min_spiffs.csv -lib_deps = - ${com-esp.lib_deps} - ${libraries.ble} - ${libraries.irremoteesp} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DZgatewayIR="IR"' - '-DTRIGGER_GPIO=39' - '-DSLEEP_BUTTON=39' - '-DIR_EMITTER_GPIO=12' - '-DGateway_Name="OpenMQTTGateway_ESP32_ATOM_BLE_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} + ${libraries.irremoteesp} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DZgatewayIR="IR"' + '-DTRIGGER_GPIO=39' + '-DSLEEP_BUTTON=39' + '-DIR_EMITTER_GPIO=12' + '-DGateway_Name="OpenMQTTGateway_ESP32_ATOM_BLE_IR"' board_upload.speed = 1500000 [env:ttgo-lora32-v1] platform = ${com.esp32_platform} board = ttgo-lora32-v1 -lib_deps = - ${com-esp.lib_deps} - ${libraries.lora} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayLORA="LORA"' - '-DGateway_Name="OpenMQTTGateway_ESP32_LORA"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.lora} +build_flags = + ${com-esp.build_flags} + '-DZgatewayLORA="LORA"' + '-DGateway_Name="OpenMQTTGateway_ESP32_LORA"' [env:nodemcuv2-all-test] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.irremoteesp} - ${libraries.rfm69} - ${libraries.rfm69spi} - ${libraries.rc-switch} - ${libraries.newremoteswitch} - ${libraries.bme280} - ${libraries.bmp180} - ${libraries.htu21} - ${libraries.ahtx0} - ${libraries.unifiedsensor} - ${libraries.dht} - ${libraries.tsl2561} - ${libraries.ina226} - ${libraries.esp8266_mdns} - ${libraries.wire} - ${libraries.fastled} - ${libraries.onewire} - ${libraries.dallastemperature} - ${libraries.rfWeatherStation} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DZgatewayRF2="RF2"' - '-DZgatewayIR="IR"' - '-DZgatewayBT="BT"' - '-DZgatewayPilight="Pilight"' - '-DZactuatorONOFF="ONOFF"' - '-DZactuatorFASTLED="FASTLED"' - '-DZsensorINA226="INA226"' - '-DZsensorHCSR501="HCSR501"' - '-DZsensorHCSR04="HCSR04"' - '-DZsensorADC="ADC"' - '-DZsensorBH1750="BH1750"' - '-DZsensorBME280="BME280"' - '-DZsensorHTU21="HTU21"' - '-DZsensorAHTx0="AHTx0"' - '-DZsensorTSL2561="TSL2561"' - '-DZsensorDHT="DHT"' - '-DZsensorDS1820="DS1820"' - '-DZgatewayRFM69="RFM69"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZsensorGPIOKeyCode="GPIOKeyCode"' - '-DZgatewayWeatherStation="WeatherStation"' - '-DsimplePublishing=true' - '-DGateway_Name="OpenMQTTGateway_ESP8266_ALL"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.irremoteesp} + ${libraries.rfm69} + ${libraries.rfm69spi} + ${libraries.rc-switch} + ${libraries.newremoteswitch} + ${libraries.bme280} + ${libraries.bmp180} + ${libraries.htu21} + ${libraries.ahtx0} + ${libraries.unifiedsensor} + ${libraries.dht} + ${libraries.tsl2561} + ${libraries.ina226} + ${libraries.esp8266_mdns} + ${libraries.wire} + ${libraries.fastled} + ${libraries.onewire} + ${libraries.dallastemperature} + ${libraries.rfWeatherStation} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayRF2="RF2"' + '-DZgatewayIR="IR"' + '-DZgatewayBT="BT"' + '-DZgatewayPilight="Pilight"' + '-DZactuatorONOFF="ONOFF"' + '-DZactuatorFASTLED="FASTLED"' + ;'-DZactuatorPWM="PWM"' + '-DZsensorINA226="INA226"' + '-DZsensorHCSR501="HCSR501"' + '-DZsensorHCSR04="HCSR04"' + '-DZsensorADC="ADC"' + '-DZsensorBH1750="BH1750"' + '-DZsensorBME280="BME280"' + '-DZsensorHTU21="HTU21"' + '-DZsensorAHTx0="AHTx0"' + '-DZsensorTSL2561="TSL2561"' + '-DZsensorDHT="DHT"' + '-DZsensorDS1820="DS1820"' + '-DZgatewayRFM69="RFM69"' + '-DZsensorGPIOInput="GPIOInput"' + '-DZsensorGPIOKeyCode="GPIOKeyCode"' + '-DZgatewayWeatherStation="WeatherStation"' + '-DsimplePublishing=true' + '-DGateway_Name="OpenMQTTGateway_ESP8266_ALL"' board_build.flash_mode = dout + [env:nodemcuv2-2g] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.a6lib} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="2G"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_2G"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.a6lib} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="2G"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_2G"' board_build.flash_mode = dout [env:nodemcuv2-ble] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.wire} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayBT="BT"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_BLE"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.wire} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_BLE"' board_build.flash_mode = dout [env:nodemcuv2-ir] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.irremoteesp} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayIR="IR"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.irremoteesp} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayIR="IR"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_IR"' board_build.flash_mode = dout [env:nodemcuv2-rs232] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRS232="RS232"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RS232"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRS232="RS232"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RS232"' board_build.flash_mode = dout [env:avatto-bakeey-ir] platform = ${com.esp8266_platform} board = esp01_1m -lib_deps = - ${com-esp.lib_deps} - ${libraries.irremoteesp} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayIR="IR"' - '-DTRIGGER_GPIO=13' - '-DLED_SEND=4' - '-DIR_EMITTER_GPIO=14' - '-DIR_RECEIVER_GPIO=5' - '-DGateway_Name="OpenMQTTGateway_AVATTO_IR"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.irremoteesp} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayIR="IR"' + '-DTRIGGER_GPIO=13' + '-DLED_SEND=4' + '-DIR_EMITTER_GPIO=14' + '-DIR_RECEIVER_GPIO=5' + '-DGateway_Name="OpenMQTTGateway_AVATTO_IR"' board_build.flash_mode = dout [env:nodemcuv2-rf] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF"' board_build.flash_mode = dout [env:nodemcuv2-rf-cc1101] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.smartrc-cc1101-driver-lib} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF-CC1101"' board_build.flash_mode = dout [env:nodemcuv2-somfy-cc1101] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.somfy_remote} - ${libraries.smartrc-cc1101-driver-lib} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZactuatorSomfy="Somfy"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_Somfy-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.somfy_remote} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZactuatorSomfy="Somfy"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_Somfy-CC1101"' board_build.flash_mode = dout [env:manual-wifi-test] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DESPWifiManualSetup=true' - '-DGateway_Name="OpenMQTTGateway_TEST_MANUAL_WIFI"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DESPWifiManualSetup=true' + '-DGateway_Name="OpenMQTTGateway_TEST_MANUAL_WIFI"' board_build.flash_mode = dout [env:esp32dev-tls-test] platform = ${com.esp32_platform} board = esp32dev -lib_deps = - ${com-esp.lib_deps} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DSECURE_CONNECTION' - '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' +lib_deps = + ${com-esp.lib_deps} +build_flags = + ${com-esp.build_flags} + '-DSECURE_CONNECTION' + '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' board_build.flash_mode = dout + [env:nodemcuv2-tls-test] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DSECURE_CONNECTION' - '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' +lib_deps = + ${com-esp.lib_deps} +build_flags = + ${com-esp.build_flags} + '-DSECURE_CONNECTION' + '-DGateway_Name="OpenMQTTGateway_TEST_TLS"' board_build.flash_mode = dout [env:rf-wifi-gateway] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF_WIFI_GW"' - '-DRF_RECEIVER_GPIO=5' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF_WIFI_GW"' + '-DRF_RECEIVER_GPIO=5' board_build.flash_mode = dout [env:nodemcuv2-rf2] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.newremoteswitch} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF2="RF2"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.newremoteswitch} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF2="RF2"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2"' board_build.flash_mode = dout [env:nodemcuv2-rf2-cc1101] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.newremoteswitch} - ${libraries.smartrc-cc1101-driver-lib} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayRF2="RF2"' - '-DZradioCC1101="CC1101"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2-CC1101"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.newremoteswitch} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayRF2="RF2"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF2-CC1101"' board_build.flash_mode = dout [env:nodemcuv2-pilight] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esppilight} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayPilight="Pilight"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_Pilight"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esppilight} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_Pilight"' board_build.flash_mode = dout [env:nodemcuv2-weatherstation] platform = ${com.esp8266_platform} board = nodemcuv2 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rfWeatherStation} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZgatewayWeatherStation="WeatherStationDataRx"' - '-DGateway_Name="OpenMQTTGateway_ESP8266_RF3"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rfWeatherStation} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZgatewayWeatherStation="WeatherStationDataRx"' + '-DGateway_Name="OpenMQTTGateway_ESP8266_RF3"' board_build.flash_mode = dout [env:sonoff-basic] platform = ${com.esp8266_platform} board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZactuatorONOFF="ONOFF"' - '-DZsensorGPIOInput="GPIOInput"' - '-DACTUATOR_ONOFF_GPIO=12' - '-DINPUT_GPIO=0' - '-DGateway_Name="OpenMQTTGateway_SONOFF_RELAY"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZactuatorONOFF="ONOFF"' + '-DZsensorGPIOInput="GPIOInput"' + '-DACTUATOR_ONOFF_GPIO=12' + '-DINPUT_GPIO=0' + '-DGateway_Name="OpenMQTTGateway_SONOFF_RELAY"' board_build.flash_mode = dout [env:sonoff-basic-rfr3] platform = ${com.esp8266_platform} board = esp8285 -lib_deps = - ${com-esp.lib_deps} - ${libraries.rc-switch} - ${libraries.esp8266_mdns} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-esp.build_flags} - '-DZactuatorONOFF="ONOFF"' - '-DZsensorGPIOInput="GPIOInput"' - '-DACTUATOR_ONOFF_GPIO=12' - '-DINPUT_GPIO=0' - '-DRF_RECEIVER_GPIO=4' - '-DZgatewayRF="RF"' - '-DGateway_Name="OpenMQTTGateway_SONOFF_BASIC_RFR3"' +lib_deps = + ${com-esp.lib_deps} + ${libraries.rc-switch} + ${libraries.esp8266_mdns} +build_flags = + ${com-esp.build_flags} + '-DZactuatorONOFF="ONOFF"' + '-DZsensorGPIOInput="GPIOInput"' + '-DACTUATOR_ONOFF_GPIO=12' + '-DINPUT_GPIO=0' + '-DRF_RECEIVER_GPIO=4' + '-DZgatewayRF="RF"' + '-DGateway_Name="OpenMQTTGateway_SONOFF_BASIC_RFR3"' board_build.flash_mode = dout [env:atmega-all-test] platform = ${com.atmelavr_platform} board = megaatmega2560 -lib_deps = - ${com-arduino.lib_deps} - ${libraries.irremote} - ${libraries.rfm69} - ${libraries.rfm69spi} - ${libraries.rfm69_low-power} - ${libraries.rc-switch} - ${libraries.newremoteswitch} - ${libraries.bme280} - ${libraries.bmp180} - ${libraries.htu21} - ${libraries.ahtx0} - ${libraries.unifiedsensor} - ${libraries.dht} - ${libraries.tsl2561} - ${libraries.a6lib} - ${libraries.ina226} - ${libraries.fastled} - ${libraries.onewire} - ${libraries.dallastemperature} - ${libraries.rfWeatherStation} - ${libraries.stl} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-arduino.build_flags} - '-DZgatewayRF="RF"' - '-DZgatewayRF="RF315"' - '-DZgatewayRF2="RF2"' - '-DZgatewayIR="IR"' - '-DZgatewayBT="BT"' - '-DZactuatorONOFF="ONOFF"' - '-DZactuatorFASTLED="FASTLED"' - '-DZactuatorPWM="PWM"' - '-DZsensorINA226="INA226"' - '-DZsensorHCSR501="HCSR501"' - '-DZsensorADC="ADC"' - '-DZsensorBH1750="BH1750"' - '-DZsensorBME280="BME280"' - '-DZsensorHTU21="HTU21"' - '-DZsensorAHTx0="AHTx0"' - '-DZsensorTSL2561="TSL2561"' - '-DZsensorDHT="DHT"' - '-DZsensorDS1820="DS1820"' - '-DZgatewayRFM69="RFM69"' - '-DZgatewayWeatherStation="WeatherStation"' - '-DZsensorGPIOInput="GPIOInput"' - '-DZmqttDiscovery="HADiscovery"' - '-DsimplePublishing=true' - '-DGateway_Name="OpenMQTTGateway_ATMEGA_ALL"' +lib_deps = + ${com-arduino.lib_deps} + ${libraries.irremote} + ${libraries.rfm69} + ${libraries.rfm69spi} + ${libraries.rfm69_low-power} + ${libraries.rc-switch} + ${libraries.newremoteswitch} + ${libraries.bme280} + ${libraries.bmp180} + ${libraries.htu21} + ${libraries.ahtx0} + ${libraries.unifiedsensor} + ${libraries.dht} + ${libraries.tsl2561} + ${libraries.a6lib} + ${libraries.ina226} + ${libraries.fastled} + ${libraries.onewire} + ${libraries.dallastemperature} + ${libraries.rfWeatherStation} + ${libraries.stl} +build_flags = + ${com-arduino.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayRF="RF315"' + '-DZgatewayRF2="RF2"' + '-DZgatewayIR="IR"' + '-DZgatewayBT="BT"' + '-DZactuatorONOFF="ONOFF"' + '-DZactuatorFASTLED="FASTLED"' + '-DZactuatorPWM="PWM"' + '-DZsensorINA226="INA226"' + '-DZsensorHCSR501="HCSR501"' + '-DZsensorADC="ADC"' + '-DZsensorBH1750="BH1750"' + '-DZsensorBME280="BME280"' + '-DZsensorHTU21="HTU21"' + '-DZsensorAHTx0="AHTx0"' + '-DZsensorTSL2561="TSL2561"' + '-DZsensorDHT="DHT"' + '-DZsensorDS1820="DS1820"' + '-DZgatewayRFM69="RFM69"' + '-DZgatewayWeatherStation="WeatherStation"' + '-DZsensorGPIOInput="GPIOInput"' + ;'-DZsensorGPIOKeyCode="GPIOKeyCode"' + '-DZmqttDiscovery="HADiscovery"' + '-DsimplePublishing=true' + '-DGateway_Name="OpenMQTTGateway_ATMEGA_ALL"' [env:uno-rf] platform = ${com.atmelavr_platform} board = uno -lib_deps = - ${com-arduino.lib_deps} - ${libraries.rc-switch} - puuu/ESPiLight@^0.17.0 -build_flags = - ${com-arduino-low-memory.build_flags} - '-DZgatewayRF="RF"' - '-DGateway_Name="OMG_1_RF"' +lib_deps = + ${com-arduino.lib_deps} + ${libraries.rc-switch} +build_flags = + ${com-arduino-low-memory.build_flags} + '-DZgatewayRF="RF"' + '-DGateway_Name="OMG_1_RF"' [env:uno-fastled] platform = ${com.atmelavr_platform} board = uno +lib_deps = + ${com-arduino.lib_deps} + ${libraries.fastled} +build_flags = + ${com-arduino-low-memory.build_flags} + '-DGateway_Name="OMG_1_FL"' + '-DZactuatorFASTLED="FASTLED"' + +[env:sonoff-rfbridge-direct] +platform = ${com.esp8266_platform} +board = esp8285 lib_deps = - ${com-arduino.lib_deps} - ${libraries.fastled} + ${com-esp.lib_deps} + ${libraries.esp8266_mdns} puuu/ESPiLight@^0.17.0 build_flags = - ${com-arduino-low-memory.build_flags} - '-DGateway_Name="OMG_1_FL"' - '-DZactuatorFASTLED="FASTLED"' + ${com-esp.build_flags} + '-DZgatewayPilight="Pilight"' + '-DRF_RECEIVER_GPIO=4' + '-DRF_EMITTER_GPIO=5' + '-DLED_INFO=13' + '-DLED_INFO_ON=0' + '-DZsensorGPIOInput="GPIOInput"' + '-DINPUT_GPIO=0' + '-DGateway_Name="OpenMQTTGateway_SRFB_Direct"' +board_build.flash_mode = dout From 4ea2c5f1b79aafe6fbbbd76e68c094c22093c750 Mon Sep 17 00:00:00 2001 From: Dave Myers Date: Tue, 22 Dec 2020 11:20:35 -0500 Subject: [PATCH 3/5] Re-adding commented-out environment selection --- platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/platformio.ini b/platformio.ini index d5fff5037c..cf0bc5d6f2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -69,6 +69,7 @@ extra_configs = ;default_envs = esp32dev-tls-test ;default_envs = nodemcuv2-tls-test ;default_envs = nodemcuv2-rs232 +;default_envs = sonoff-rfbridge-direct ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ENVIRONMENTS PARAMETERS ; From 812ee95489646566be946e02eb336497597342dd Mon Sep 17 00:00:00 2001 From: Dave Myers Date: Wed, 23 Dec 2020 19:20:12 -0500 Subject: [PATCH 4/5] Calling esppilight library instead of mdns --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index cf0bc5d6f2..898970c788 100644 --- a/platformio.ini +++ b/platformio.ini @@ -878,7 +878,7 @@ platform = ${com.esp8266_platform} board = esp8285 lib_deps = ${com-esp.lib_deps} - ${libraries.esp8266_mdns} + ${libraries.esppilight} puuu/ESPiLight@^0.17.0 build_flags = ${com-esp.build_flags} From a4a4d77d1813f134027c2a4ecb86ebe27307ecdb Mon Sep 17 00:00:00 2001 From: Dave Myers Date: Wed, 23 Dec 2020 19:57:56 -0500 Subject: [PATCH 5/5] Removing specific import of espilight --- platformio.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 898970c788..6cd8e5bb16 100644 --- a/platformio.ini +++ b/platformio.ini @@ -879,7 +879,6 @@ board = esp8285 lib_deps = ${com-esp.lib_deps} ${libraries.esppilight} - puuu/ESPiLight@^0.17.0 build_flags = ${com-esp.build_flags} '-DZgatewayPilight="Pilight"'