Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

958 lines
30 KiB

6 years ago
6 years ago
6 years ago
  1. [platformio]
  2. default_envs = wemos-d1mini-relayshield
  3. src_dir = espurna
  4. data_dir = espurna/data
  5. extra_configs =
  6. platformio_ota.ini
  7. [common]
  8. # ------------------------------------------------------------------------------
  9. # PLATFORM:
  10. # !! DO NOT confuse platformio's ESP8266 development platform with Arduino core for ESP8266
  11. # We use Arduino Core 2.3.0 (platformIO 1.5.0) as default
  12. #
  13. # arduino core 2.3.0 = platformIO 1.5.0
  14. # arduino core 2.4.0 = platformIO 1.6.0 (not supported)
  15. # arduino core 2.4.1 = platformIO 1.7.3 (not supported)
  16. # arduino core 2.4.2 = platformIO 1.8.0 (not supported)
  17. # arduino core 2.5.0 = platformIO 2.0.4 (not supported)
  18. # arduino core 2.5.1 = platformIO 2.1.1 (not supported)
  19. # arduino core 2.5.2 = platformIO 2.2.3 (not supported)
  20. # arduino core 2.6.1 = platformIO 2.3.0
  21. # arduino core 2.6.2 = platformIO 2.3.1
  22. # arduino core 2.6.3 = platformIO 2.3.2
  23. # ------------------------------------------------------------------------------
  24. arduino_core_2_3_0 = espressif8266@1.5.0
  25. arduino_core_2_4_0 = espressif8266@1.6.0
  26. arduino_core_2_4_1 = espressif8266@1.7.3
  27. arduino_core_2_4_2 = espressif8266@1.8.0
  28. arduino_core_2_5_0 = espressif8266@2.0.4
  29. arduino_core_2_5_1 = espressif8266@2.1.1
  30. arduino_core_2_5_2 = espressif8266@2.2.3
  31. arduino_core_2_6_1 = espressif8266@2.3.0
  32. arduino_core_2_6_2 = espressif8266@2.3.1
  33. arduino_core_2_6_3 = espressif8266@2.3.2
  34. # Development platforms
  35. arduino_core_develop = https://github.com/platformio/platform-espressif8266#develop
  36. arduino_core_git = https://github.com/platformio/platform-espressif8266#feature/stage
  37. platform = ${common.arduino_core_2_3_0}
  38. platform_latest = ${common.arduino_core_2_6_3}
  39. # ------------------------------------------------------------------------------
  40. # FLAGS: DEBUG
  41. #
  42. # ------------------------------------------------------------------------------
  43. debug_flags = -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
  44. #if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
  45. # ------------------------------------------------------------------------------
  46. # FLAGS: build flags
  47. # build flags for 512k/1m ESP's are different because we use Linker Scripts to adjust flash split
  48. # build_flags_512k ( 512 KB) = 487 KB sketch, 4 KB eeprom, 16 KB reserved
  49. # build_flags_1m0m (1024 KB) = 999 KB sketch, 4 KB eeprom, 16 KB reserved
  50. # build_flags_2m1m (2048 KB) = 1019 KB sketch, 16 KB eeprom, 992 KB spiffs, 16 KB reserved
  51. # build_flags_4m1m (4096 KB) = 1019 KB sketch, 16 KB eeprom, 992 KB spiffs, 16 KB reserved, 2048 KB empty/ota?
  52. # build_flags_4m3m (4096 KB) = 1019 KB sketch, 16 KB eeprom, 3040 KB spiffs, 16 KB reserved
  53. #
  54. # Available lwIP variants (macros):
  55. # -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH = v1.4 Higher Bandwidth (default)
  56. # -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY = v2 Lower Memory
  57. # -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH = v2 Higher Bandwidth
  58. #
  59. # BearSSL performance:
  60. # When building with -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL, please add `board_build.f_cpu = 160000000` to the environment configuration
  61. #
  62. # BearSSL ciphers:
  63. # When building on core >= 2.5, you can add the build flag -DBEARSSL_SSL_BASIC in order to build BearSSL with a limited set of ciphers:
  64. # TLS_RSA_WITH_AES_128_CBC_SHA256 / AES128-SHA256
  65. # TLS_RSA_WITH_AES_256_CBC_SHA256 / AES256-SHA256
  66. # TLS_RSA_WITH_AES_128_CBC_SHA / AES128-SHA
  67. # TLS_RSA_WITH_AES_256_CBC_SHA / AES256-SHA
  68. # This reduces the OTA size with ~45KB, so it's especially useful on low memory boards (512k/1m).
  69. # ------------------------------------------------------------------------------
  70. board_1m = esp01_1m
  71. board_2m = esp_wroom_02
  72. board_4m = esp12e
  73. build_flags = -g -w -DMQTT_MAX_PACKET_SIZE=1024 -DNO_GLOBAL_EEPROM -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
  74. build_flags_512k = ${common.build_flags} -Wl,-Teagle.flash.512k0m1s.ld
  75. build_flags_1m0m = ${common.build_flags} -Wl,-Teagle.flash.1m0m1s.ld
  76. build_flags_2m1m = ${common.build_flags} -Wl,-Teagle.flash.2m1m4s.ld
  77. build_flags_4m1m = ${common.build_flags} -Wl,-Teagle.flash.4m1m4s.ld
  78. build_flags_4m3m = ${common.build_flags} -Wl,-Teagle.flash.4m3m4s.ld
  79. shared_libdeps_dir = libraries/
  80. # ------------------------------------------------------------------------------
  81. # COMMON SETTINGS:
  82. # ------------------------------------------------------------------------------
  83. [env]
  84. platform = ${common.platform}
  85. framework = arduino
  86. board_build.flash_mode = dout
  87. monitor_speed = 115200
  88. upload_speed = 115200
  89. extra_scripts = pre:scripts/pio_pre.py, scripts/pio_main.py
  90. lib_extra_dirs =
  91. ${common.shared_libdeps_dir}
  92. # ------------------------------------------------------------------------------
  93. # LIBRARIES: required dependencies
  94. # Please note that we don't always use the latest version of a library.
  95. # ------------------------------------------------------------------------------
  96. lib_deps =
  97. ArduinoJson@5.13.4
  98. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  99. Brzo I2C
  100. https://github.com/xoseperez/eeprom_rotate#0.9.2
  101. Embedis
  102. https://github.com/plerup/espsoftwareserial#3.4.1
  103. https://github.com/me-no-dev/ESPAsyncTCP#7e9ed22
  104. https://github.com/me-no-dev/ESPAsyncWebServer#b0c6144
  105. https://bitbucket.org/xoseperez/fauxmoesp.git#3.1.0
  106. https://github.com/xoseperez/hlw8012.git#1.1.0
  107. https://github.com/markszabo/IRremoteESP8266#v2.2.0
  108. https://github.com/xoseperez/justwifi.git#2.0.2
  109. https://github.com/madpilot/mDNSResolver#4cfcda1
  110. https://github.com/xoseperez/my92xx#3.0.1
  111. https://github.com/256dpi/arduino-mqtt#196556b6
  112. https://bitbucket.org/xoseperez/nofuss.git#0.3.0
  113. https://github.com/xoseperez/NtpClient.git#0942ebc
  114. OneWire
  115. PZEM004T
  116. PubSubClient
  117. rc-switch
  118. https://github.com/LowPowerLab/RFM69#7008d57a
  119. https://github.com/xoseperez/rpnlib.git#0.3.0
  120. https://github.com/xoseperez/Time
  121. NewPing
  122. https://github.com/sparkfun/SparkFun_VEML6075_Arduino_Library#V_1.0.3
  123. https://github.com/pololu/vl53l1x-arduino#1.0.1
  124. https://github.com/mcleng/MAX6675-Library#2.0.1
  125. https://github.com/ThingPulse/esp8266-oled-ssd1306#3398c97
  126. lib_ignore =
  127. AsyncTCP
  128. # ------------------------------------------------------------------------------
  129. # ESPURNA CORE BUILDS
  130. # ------------------------------------------------------------------------------
  131. [env:espurna-core-1MB]
  132. board = ${common.board_1m}
  133. build_flags = ${common.build_flags_1m0m} -DESPURNA_CORE
  134. [env:espurna-core-2MB]
  135. board = ${common.board_2m}
  136. build_flags = ${common.build_flags_2m1m} -DESPURNA_CORE
  137. [env:espurna-core-4MB]
  138. board = ${common.board_4m}
  139. build_flags = ${common.build_flags_4m1m} -DESPURNA_CORE
  140. [env:espurna-core-smartconfig-1MB]
  141. board = ${common.board_1m}
  142. build_flags = ${common.build_flags_1m0m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  143. [env:espurna-core-smartconfig-2MB]
  144. board = ${common.board_2m}
  145. build_flags = ${common.build_flags_2m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  146. [env:espurna-core-smartconfig-4MB]
  147. board = ${common.board_4m}
  148. build_flags = ${common.build_flags_4m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  149. [env:espurna-core-wps-1MB]
  150. board = ${common.board_1m}
  151. build_flags = ${common.build_flags_1m0m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_WPS=1
  152. [env:espurna-core-wps-2MB]
  153. board = ${common.board_2m}
  154. build_flags = ${common.build_flags_2m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_WPS=1
  155. [env:espurna-core-wps-4MB]
  156. board = ${common.board_4m}
  157. build_flags = ${common.build_flags_4m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_WPS=1
  158. # ------------------------------------------------------------------------------
  159. # ESPURNA BASE BUILDS
  160. # ------------------------------------------------------------------------------
  161. [env:espurna-base-1MB]
  162. board = ${common.board_1m}
  163. build_flags = ${common.build_flags_1m0m} -DESPURNA_BASE
  164. # ------------------------------------------------------------------------------
  165. # GENERIC OTA ENVIRONMENTS
  166. # ------------------------------------------------------------------------------
  167. [env:esp8266-1m-ota]
  168. board = ${common.board_1m}
  169. build_flags = ${common.build_flags_1m0m}
  170. [env:esp8266-2m-ota]
  171. board = ${common.board_2m}
  172. build_flags = ${common.build_flags_2m1m}
  173. [env:esp8266-4m-ota]
  174. board = ${common.board_4m}
  175. build_flags = ${common.build_flags_4m1m}
  176. [env:esp8266-latest-1m-ota]
  177. platform = ${common.platform_latest}
  178. board = ${common.board_1m}
  179. build_flags = ${common.build_flags_1m0m}
  180. [env:esp8266-latest-2m-ota]
  181. platform = ${common.platform_latest}
  182. board = ${common.board_2m}
  183. build_flags = ${common.build_flags_2m1m}
  184. [env:esp8266-latest-4m-ota]
  185. platform = ${common.platform_latest}
  186. board = ${common.board_4m}
  187. build_flags = ${common.build_flags_4m1m}
  188. [env:esp8266-git-1m-ota]
  189. platform = ${common.arduino_core_git}
  190. board = ${common.board_1m}
  191. build_flags = ${common.build_flags_1m0m}
  192. [env:esp8266-git-2m-ota]
  193. platform = ${common.arduino_core_git}
  194. board = ${common.board_2m}
  195. build_flags = ${common.build_flags_2m1m}
  196. [env:esp8266-git-4m-ota]
  197. platform = ${common.arduino_core_git}
  198. board = ${common.board_4m}
  199. build_flags = ${common.build_flags_4m1m}
  200. # ------------------------------------------------------------------------------
  201. # SPECIAL BUILDS - DO. NOT. USE. ever ---
  202. # ------------------------------------------------------------------------------
  203. [env:travis-2_3_0]
  204. platform = ${common.arduino_core_2_3_0}
  205. board = ${common.board_4m}
  206. build_flags = ${common.build_flags_4m1m}
  207. [env:travis-latest]
  208. platform = ${common.platform_latest}
  209. board = ${common.board_4m}
  210. build_flags = ${common.build_flags_4m1m}
  211. [env:travis-git]
  212. platform = ${common.arduino_core_git}
  213. board = ${common.board_4m}
  214. build_flags = ${common.build_flags_4m1m}
  215. # ------------------------------------------------------------------------------
  216. # DEVELOPMENT BOARDS
  217. # ------------------------------------------------------------------------------
  218. [env:wemos-d1mini]
  219. board = d1_mini
  220. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_MINI -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  221. [env:wemos-d1mini-relayshield]
  222. board = ${common.board_4m}
  223. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  224. [env:wemos-d1mini-relayshield-ssl]
  225. platform = ${common.platform_latest}
  226. board = ${common.board_4m}
  227. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1
  228. [env:nodemcu-lolin]
  229. board = ${common.board_4m}
  230. build_flags = ${common.build_flags_4m1m} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  231. [env:nodemcu-lolin-latest]
  232. platform = ${common.platform_latest}
  233. board = ${common.board_4m}
  234. build_flags = ${common.build_flags_4m1m} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  235. [env:nodemcu-lolin-ssl]
  236. platform = ${common.platform_latest}
  237. board = ${common.board_4m}
  238. build_flags =
  239. ${common.build_flags_4m1m}
  240. -DDEBUG_FAUXMO=Serial
  241. -DASYNC_TCP_SSL_ENABLED=1
  242. src_build_flags =
  243. -DNODEMCU_LOLIN -DNOWSAUTH
  244. [env:nodemcu-lolin-secure-client]
  245. platform = ${common.platform_latest}
  246. board = ${common.board_4m}
  247. board_build.f_cpu = 160000000
  248. build_flags =
  249. ${common.build_flags_4m1m}
  250. -DDEBUG_FAUXMO=Serial
  251. src_build_flags =
  252. -DNODEMCU_LOLIN -DNOWSAUTH
  253. -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL
  254. -DMQTT_LIBRARY=MQTT_LIBRARY_ARDUINOMQTT
  255. -DOTA_CLIENT=OTA_CLIENT_HTTPUPDATE
  256. # ------------------------------------------------------------------------------
  257. # SPECIFIC BOARDS
  258. # ------------------------------------------------------------------------------
  259. [env:tinkerman-espurna-h06]
  260. board = ${common.board_4m}
  261. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_ESPURNA_H06
  262. [env:tinkerman-espurna-h08]
  263. board = ${common.board_4m}
  264. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_ESPURNA_H08
  265. [env:tinkerman-espurna-switch]
  266. board = ${common.board_4m}
  267. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_ESPURNA_SWITCH
  268. [env:wemos-d1-tarpunashield]
  269. board = ${common.board_4m}
  270. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_TARPUNA_SHIELD
  271. [env:tinkerman-rfm69gw]
  272. board = esp12e
  273. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_RFM69GW -DNOWSAUTH
  274. [env:nodemcu-pzem004t]
  275. board = ${common.board_4m}
  276. build_flags = ${common.build_flags_4m1m} -DNODEMCU_BASIC -DDEBUG_SERIAL_SUPPORT=0 -DPZEM004T_SUPPORT=1 -DDISABLE_POSTMORTEM_STACKDUMP
  277. [env:foxel-lightfox-dual]
  278. board = ${common.board_1m}
  279. build_flags = ${common.build_flags_1m0m} -DFOXEL_LIGHTFOX_DUAL -DDISABLE_POSTMORTEM_STACKDUMP
  280. # ------------------------------------------------------------------------------
  281. [env:itead-sonoff-basic]
  282. board = ${common.board_1m}
  283. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC
  284. [env:itead-sonoff-basic-dht]
  285. board = ${common.board_1m}
  286. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  287. [env:itead-sonoff-basic-r2-dht]
  288. board = ${common.board_1m}
  289. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1 -DDHT_PIN=2
  290. [env:itead-sonoff-basic-dallas]
  291. board = ${common.board_1m}
  292. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1
  293. [env:itead-sonoff-basic-r2-dallas]
  294. board = ${common.board_1m}
  295. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1 -DDALLAS_PIN=2
  296. [env:itead-sonoff-rf]
  297. board = ${common.board_1m}
  298. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_RF
  299. [env:itead-sonoff-mini]
  300. board = ${common.board_1m}
  301. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_MINI
  302. [env:itead-sonoff-th]
  303. board = ${common.board_1m}
  304. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_TH
  305. [env:itead-sonoff-pow]
  306. board = ${common.board_1m}
  307. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_POW
  308. [env:itead-sonoff-pow-r2]
  309. board = ${common.board_1m}
  310. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_POW_R2 -DDISABLE_POSTMORTEM_STACKDUMP
  311. [env:itead-sonoff-dual]
  312. board = ${common.board_1m}
  313. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_DUAL -DDISABLE_POSTMORTEM_STACKDUMP
  314. [env:itead-sonoff-dual-r2]
  315. board = ${common.board_1m}
  316. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_DUAL_R2
  317. [env:itead-sonoff-4ch]
  318. board = ${common.board_1m}
  319. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_4CH
  320. [env:itead-sonoff-4ch-pro]
  321. board = ${common.board_1m}
  322. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_4CH_PRO
  323. [env:itead-sonoff-touch]
  324. board = ${common.board_1m}
  325. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_TOUCH
  326. [env:itead-sonoff-b1]
  327. board = ${common.board_1m}
  328. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_B1
  329. [env:itead-sonoff-t1-1ch]
  330. board = ${common.board_1m}
  331. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_T1_1CH
  332. [env:itead-sonoff-t1-2ch]
  333. board = ${common.board_1m}
  334. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_T1_2CH
  335. [env:itead-sonoff-t1-3ch]
  336. board = ${common.board_1m}
  337. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_T1_3CH
  338. [env:itead-sonoff-led]
  339. board = ${common.board_1m}
  340. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_LED
  341. [env:itead-sonoff-rfbridge]
  342. board = ${common.board_1m}
  343. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_RFBRIDGE -DDISABLE_POSTMORTEM_STACKDUMP
  344. [env:itead-sonoff-rfbridge-direct]
  345. board = ${common.board_1m}
  346. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_RFBRIDGE -DRFB_DIRECT
  347. # ------------------------------------------------------------------------------
  348. [env:itead-slampher]
  349. board = ${common.board_1m}
  350. build_flags = ${common.build_flags_1m0m} -DITEAD_SLAMPHER
  351. [env:itead-s20]
  352. board = ${common.board_1m}
  353. build_flags = ${common.build_flags_1m0m} -DITEAD_S20
  354. [env:itead-1ch-inching]
  355. board = ${common.board_1m}
  356. build_flags = ${common.build_flags_1m0m} -DITEAD_1CH_INCHING
  357. [env:itead-motor]
  358. board = ${common.board_1m}
  359. build_flags = ${common.build_flags_1m0m} -DITEAD_MOTOR
  360. [env:itead-sonoff-sv]
  361. board = ${common.board_1m}
  362. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_SV
  363. [env:itead-sonoff-s31]
  364. board = ${common.board_1m}
  365. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_S31 -DDISABLE_POSTMORTEM_STACKDUMP
  366. [env:itead-sonoff-s31-lite]
  367. board = ${common.board_1m}
  368. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_S31_LITE
  369. [env:itead-sonoff-ifan02]
  370. board = ${common.board_1m}
  371. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_IFAN02
  372. # ------------------------------------------------------------------------------
  373. [env:electrodragon-wifi-iot]
  374. board = ${common.board_4m}
  375. build_flags = ${common.build_flags_4m1m} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  376. [env:workchoice-ecoplug]
  377. board = ${common.board_1m}
  378. build_flags = ${common.build_flags_1m0m} -DWORKCHOICE_ECOPLUG
  379. [env:jangoe-wifi-relay-nc]
  380. board = ${common.board_4m}
  381. build_flags = ${common.build_flags_4m1m} -DJANGOE_WIFI_RELAY_NC
  382. [env:jangoe-wifi-relay-no]
  383. board = ${common.board_4m}
  384. build_flags = ${common.build_flags_4m1m} -DJANGOE_WIFI_RELAY_NO
  385. [env:openenergymonitor-mqtt-relay]
  386. board = ${common.board_4m}
  387. build_flags = ${common.build_flags_4m1m} -DOPENENERGYMONITOR_MQTT_RELAY -DDALLAS_SUPPORT=1
  388. [env:jorgegarcia-wifi-relays]
  389. board = ${common.board_1m}
  390. build_flags = ${common.build_flags_1m0m} -DJORGEGARCIA_WIFI_RELAYS
  391. [env:aithinker-ai-light]
  392. board = ${common.board_1m}
  393. build_flags = ${common.build_flags_1m0m} -DAITHINKER_AI_LIGHT
  394. [env:lyasi-rgb-light]
  395. board = ${common.board_1m}
  396. build_flags = ${common.build_flags_1m0m} -DLYASI_LIGHT
  397. [env:magichome-led-controller]
  398. board = ${common.board_1m}
  399. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_LED_CONTROLLER
  400. [env:magichome-led-controller-20]
  401. board = ${common.board_1m}
  402. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_LED_CONTROLLER_20
  403. [env:magichome-zj-wfmn-a-11]
  404. board = ${common.board_1m}
  405. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_A_11
  406. [env:magichome-zj-wfmn-b-11]
  407. board = ${common.board_1m}
  408. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_B_11
  409. [env:magichome-zj-espm-5ch-b-13]
  410. board = ${common.board_1m}
  411. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_ESPM_5CH_B_13
  412. [env:magichome-zj-lb-rgbww-l]
  413. board = ${common.board_1m}
  414. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_LB_RGBWW_L
  415. [env:magichome-zj-wfmn-c-11]
  416. board = ${common.board_1m}
  417. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_C_11
  418. [env:huacanxing-h801]
  419. board = ${common.board_1m}
  420. build_flags = ${common.build_flags_1m0m} -DHUACANXING_H801
  421. [env:huacanxing-h802]
  422. board = ${common.board_1m}
  423. build_flags = ${common.build_flags_1m0m} -DHUACANXING_H802
  424. [env:arilux-al-lc01]
  425. board = ${common.board_1m}
  426. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC01
  427. [env:arilux-al-lc02]
  428. board = ${common.board_1m}
  429. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC02
  430. [env:arilux-al-lc02-v14]
  431. board = ${common.board_1m}
  432. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC02_V14
  433. [env:arilux-al-lc06]
  434. board = ${common.board_1m}
  435. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC06
  436. [env:arilux-al-lc11]
  437. board = ${common.board_1m}
  438. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC11
  439. [env:arilux-e27]
  440. board = ${common.board_1m}
  441. build_flags = ${common.build_flags_1m0m} -DARILUX_E27
  442. [env:itead-bnsz01]
  443. board = ${common.board_1m}
  444. build_flags = ${common.build_flags_1m0m} -DITEAD_BNSZ01
  445. [env:wion-50055]
  446. board = ${common.board_1m}
  447. build_flags = ${common.build_flags_1m0m} -DWION_50055
  448. [env:exs-wifi-relay-v31]
  449. board = ${common.board_4m}
  450. build_flags = ${common.build_flags_4m1m} -DEXS_WIFI_RELAY_V31
  451. [env:exs-wifi-relay-v50]
  452. board = ${common.board_4m}
  453. build_flags = ${common.build_flags_4m1m} -DEXS_WIFI_RELAY_V50
  454. [env:wemos-v9261f]
  455. board = ${common.board_4m}
  456. build_flags = ${common.build_flags_4m1m} -DGENERIC_V9261F
  457. [env:esp01-v9261f]
  458. board = ${common.board_1m}
  459. build_flags = ${common.build_flags_1m0m} -DGENERIC_V9261F
  460. [env:wemos-ech1560]
  461. board = ${common.board_4m}
  462. build_flags = ${common.build_flags_4m1m} -DGENERIC_ECH1560
  463. [env:esp01-ech1560]
  464. board = ${common.board_1m}
  465. build_flags = ${common.build_flags_1m0m} -DGENERIC_ECH1560
  466. [env:mancavemade-esplive]
  467. board = ${common.board_4m}
  468. build_flags = ${common.build_flags_4m1m} -DMANCAVEMADE_ESPLIVE
  469. [env:tuya-generic-dimmer]
  470. board = ${common.board_1m}
  471. build_flags = ${common.build_flags_1m0m} -DTUYA_GENERIC_DIMMER -DDEBUG_SERIAL_SUPPORT=0 -DDISABLE_POSTMORTEM_STACKDUMP
  472. [env:intermittech-quinled]
  473. board = ${common.board_1m}
  474. build_flags = ${common.build_flags_1m0m} -DINTERMITTECH_QUINLED
  475. [env:xenon-sm-pw702u]
  476. board = ${common.board_1m}
  477. build_flags = ${common.build_flags_1m0m} -DXENON_SM_PW702U
  478. [env:iselector-sm-pw702]
  479. board = ${common.board_1m}
  480. build_flags = ${common.build_flags_1m0m} -DISELECTOR_SM_PW702
  481. [env:authometion-lyt8266]
  482. board = ${common.board_1m}
  483. build_flags = ${common.build_flags_1m0m} -DAUTHOMETION_LYT8266
  484. [env:kmc-70011]
  485. board = ${common.board_1m}
  486. build_flags = ${common.build_flags_1m0m} -DKMC_70011
  487. [env:yjzk-switch-1ch]
  488. board = ${common.board_1m}
  489. build_flags = ${common.build_flags_1m0m} -DYJZK_SWITCH_1CH
  490. [env:yjzk-switch-2ch]
  491. board = ${common.board_1m}
  492. build_flags = ${common.build_flags_1m0m} -DYJZK_SWITCH_2CH
  493. [env:yjzk-switch-3ch]
  494. board = ${common.board_1m}
  495. build_flags = ${common.build_flags_1m0m} -DYJZK_SWITCH_3CH
  496. [env:generic-8ch]
  497. board = ${common.board_4m}
  498. build_flags = ${common.build_flags_4m1m} -DGENERIC_8CH
  499. [env:gizwits-witty-cloud]
  500. board = ${common.board_4m}
  501. build_flags = ${common.build_flags_4m1m} -DGIZWITS_WITTY_CLOUD
  502. [env:euromate-wifi-stecker-shuko]
  503. board = ${common.board_1m}
  504. build_flags = ${common.build_flags_1m0m} -DEUROMATE_WIFI_STECKER_SCHUKO
  505. [env:euromate-wifi-stecker-shuko-v2]
  506. board = ${common.board_2m}
  507. build_flags = ${common.build_flags_2m1m} -DEUROMATE_WIFI_STECKER_SCHUKO_V2
  508. [env:tonbux-powerstrip02]
  509. board = ${common.board_1m}
  510. build_flags = ${common.build_flags_1m0m} -DTONBUX_POWERSTRIP02
  511. [env:lingan-swa1]
  512. board = ${common.board_1m}
  513. build_flags = ${common.build_flags_1m0m} -DLINGAN_SWA1
  514. [env:stm-relay]
  515. board = ${common.board_1m}
  516. build_flags = ${common.build_flags_1m0m} -DSTM_RELAY -DDISABLE_POSTMORTEM_STACKDUMP
  517. [env:heygo-hy02]
  518. board = ${common.board_1m}
  519. build_flags = ${common.build_flags_1m0m} -DHEYGO_HY02
  520. [env:maxcio-wus002s]
  521. board = ${common.board_1m}
  522. build_flags = ${common.build_flags_1m0m} -DMAXCIO_WUS002S
  523. [env:maxcio-wde004]
  524. board = ${common.board_1m}
  525. build_flags = ${common.build_flags_1m0m} -DMAXCIO_WDE004
  526. [env:maxcio-wuk007s]
  527. board = ${common.board_1m}
  528. build_flags = ${common.build_flags_1m0m} -DMAXCIO_WUK007S
  529. [env:yidian-xsssa05]
  530. board = ${common.board_1m}
  531. build_flags = ${common.build_flags_1m0m} -DYIDIAN_XSSSA05
  532. [env:oukitel-p1]
  533. board = ${common.board_1m}
  534. build_flags = ${common.build_flags_1m0m} -DOUKITEL_P1
  535. [env:tonbux-xsssa01]
  536. board = ${common.board_1m}
  537. build_flags = ${common.build_flags_4m1m} -DTONBUX_XSSSA01
  538. [env:tonbux-xsssa06]
  539. board = ${common.board_1m}
  540. build_flags = ${common.build_flags_1m0m} -DTONBUX_XSSSA06
  541. [env:green-esp8266relay]
  542. board = ${common.board_4m}
  543. build_flags = ${common.build_flags_4m1m} -DGREEN_ESP8266RELAY
  544. [env:ike-espike]
  545. board = ${common.board_4m}
  546. build_flags = ${common.build_flags_4m1m} -DIKE_ESPIKE
  547. [env:arniex-swifitch]
  548. board = ${common.board_4m}
  549. build_flags = ${common.build_flags_4m1m} -DARNIEX_SWIFITCH
  550. [env:zhilde-eu44-w]
  551. board = ${common.board_1m}
  552. build_flags = ${common.build_flags_1m0m} -DZHILDE_EU44_W
  553. [env:luani-hvio]
  554. board = ${common.board_1m}
  555. build_flags = ${common.build_flags_1m0m} -DLUANI_HVIO
  556. [env:avatto-power-plug-wifi]
  557. board = ${common.board_1m}
  558. build_flags = ${common.build_flags_1m0m} -DAVATTO_NAS_WR01W
  559. [env:neo-coolcam-power-plug-wifi]
  560. board = ${common.board_1m}
  561. build_flags = ${common.build_flags_1m0m} -DNEO_COOLCAM_NAS_WR01W
  562. [env:deltaco-sh-p01]
  563. board = ${common.board_1m}
  564. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_P01
  565. [env:deltaco-sh-p03usb]
  566. board = ${common.board_1m}
  567. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_P03USB
  568. [env:deltaco-sh-lexxw]
  569. board = ${common.board_1m}
  570. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_LEXXW
  571. [env:deltaco-sh-lexxrgb]
  572. board = ${common.board_1m}
  573. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_LEXXRGB
  574. [env:estink-wifi-power-strip]
  575. board = ${common.board_1m}
  576. build_flags = ${common.build_flags_1m0m} -DFORNORM_ZLD_34EU
  577. [env:iwoole-led-table-lamp]
  578. board = ${common.board_1m}
  579. build_flags = ${common.build_flags_1m0m} -DIWOOLE_LED_TABLE_LAMP
  580. [env:lombex-lux-nova2-tunable-white]
  581. board = ${common.board_1m}
  582. build_flags = ${common.build_flags_1m0m} -DLOMBEX_LUX_NOVA2_TUNABLE_WHITE
  583. [env:lombex-lux-nova2-white-color]
  584. board = ${common.board_1m}
  585. build_flags = ${common.build_flags_1m0m} -DLOMBEX_LUX_NOVA2_WHITE_COLOR
  586. # ------------------------------------------------------------------------------
  587. # GENERIC / DEVELOPMENT BOARDS
  588. # ------------------------------------------------------------------------------
  589. [env:generic-esp01s-relay-40]
  590. board = ${common.board_1m}
  591. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_RELAY_V40
  592. [env:generic-esp01s-relay-40-inv]
  593. board = ${common.board_1m}
  594. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_RELAY_V40 -DRELAY1_TYPE=1
  595. [env:generic-esp01s-rgbled-10]
  596. board = ${common.board_1m}
  597. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_RGBLED_V10
  598. [env:generic-esp01s-dht11-10]
  599. board = ${common.board_1m}
  600. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_DHT11_V10
  601. [env:generic-esp01s-ds18b20-10]
  602. board = ${common.board_1m}
  603. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_DS18B20_V10
  604. [env:heltec-touch-relay]
  605. board = ${common.board_1m}
  606. build_flags = ${common.build_flags_1m0m} -DHELTEC_TOUCHRELAY
  607. [env:allnet-4duino-iot-wlan-relais]
  608. board = ${common.board_4m}
  609. build_flags = ${common.build_flags_4m1m} -DALLNET_4DUINO_IOT_WLAN_RELAIS
  610. [env:tonbux-mosquito-killer]
  611. board = ${common.board_1m}
  612. build_flags = ${common.build_flags_1m0m} -DTONBUX_MOSQUITO_KILLER
  613. [env:pilotak-esp-din-v1]
  614. board = ${common.board_1m}
  615. build_flags = ${common.build_flags_1m0m} -DPILOTAK_ESP_DIN_V1
  616. [env:nodemcu-geiger]
  617. board = ${common.board_4m}
  618. build_flags = ${common.build_flags_4m1m} -DNODEMCU_BASIC -DGEIGER_SUPPORT=1 -DEVENTS_SUPPORT=0 -DINFLUXDB_SUPPORT=1 -DALEXA_SUPPORT=0 -DALEXA_ENABLED=0
  619. [env:blitzwolf-bwshpx]
  620. board = ${common.board_1m}
  621. build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHPX
  622. [env:blitzwolf-bwshpx-v23]
  623. board = ${common.board_1m}
  624. build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHPX_V23
  625. [env:blitzwolf-bwshp5]
  626. board = ${common.board_1m}
  627. build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHP5
  628. [env:teckin-sp21]
  629. board = ${common.board_1m}
  630. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP21
  631. [env:teckin-sp22-v14]
  632. board = ${common.board_1m}
  633. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP22_V14
  634. [env:teckin-sp23-v13]
  635. board = ${common.board_1m}
  636. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP23_V13
  637. [env:gosund-ws1]
  638. board = ${common.board_1m}
  639. build_flags = ${common.build_flags_1m0m} -DGOSUND_WS1
  640. [env:digoo-nx-sp202]
  641. board = ${common.board_1m}
  642. build_flags = ${common.build_flags_1m0m} -DDIGOO_NX_SP202
  643. [env:tflag-nx-smx00]
  644. board = ${common.board_1m}
  645. build_flags = ${common.build_flags_1m0m} -DTFLAG_NX_SMX00
  646. [env:homecube-16a]
  647. board = ${common.board_1m}
  648. build_flags = ${common.build_flags_1m0m} -DHOMECUBE_16A
  649. [env:bh-onofre]
  650. board = ${common.board_4m}
  651. build_flags = ${common.build_flags_4m1m} -DBH_ONOFRE
  652. [env:generic-ag-l4]
  653. board = ${common.board_1m}
  654. build_flags = ${common.build_flags_1m0m} -DGENERIC_AG_L4
  655. [env:lohas-e27-9w]
  656. board = ${common.board_1m}
  657. build_flags = ${common.build_flags_1m0m} -DLOHAS_E27_9W
  658. [env:lohas-e26-a19]
  659. board = ${common.board_1m}
  660. build_flags = ${common.build_flags_1m0m} -DLOHAS_E26_A19
  661. [env:teckin-sb53]
  662. board = ${common.board_1m}
  663. build_flags = ${common.build_flags_1m0m} -DTECKIN_SB53
  664. [env:allterco-shelly1]
  665. board = ${common.board_2m}
  666. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY1
  667. [env:allterco-shelly2]
  668. board = ${common.board_2m}
  669. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY2
  670. [env:allterco-shelly1pm]
  671. board = ${common.board_2m}
  672. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY1PM
  673. [env:allterco-shelly25]
  674. board = ${common.board_2m}
  675. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY25
  676. [env:xiaomi-smart-desk-lamp]
  677. board = ${common.board_1m}
  678. build_flags = ${common.build_flags_1m0m} -DXIAOMI_SMART_DESK_LAMP
  679. [env:phyx-esp12-rgb]
  680. board = ${common.board_1m}
  681. build_flags = ${common.build_flags_1m0m} -DPHYX_ESP12_RGB
  682. [env:bestek-mrj1011]
  683. board = ${common.board_1m}
  684. build_flags = ${common.build_flags_1m0m} -DBESTEK_MRJ1011
  685. [env:gblife-rgbw-socket]
  686. board = ${common.board_1m}
  687. build_flags = ${common.build_flags_1m0m} -DGBLIFE_RGBW_SOCKET
  688. [env:smartlife-mini-smart-socket]
  689. board = ${common.board_1m}
  690. build_flags = ${common.build_flags_1m0m} -DSMARTLIFE_MINI_SMART_SOCKET
  691. [env:hama-wifi-steckdose-00176533]
  692. board = ${common.board_1m}
  693. build_flags = ${common.build_flags_1m0m} -DHAMA_WIFI_STECKDOSE_00176533
  694. [env:teckin-sp20]
  695. board = ${common.board_1m}
  696. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP20
  697. [env:litesun-la-wf3]
  698. board = ${common.board_1m}
  699. build_flags = ${common.build_flags_1m0m} -DLITESUN_LA_WF3
  700. [env:generic-gu10]
  701. board = ${common.board_1m}
  702. build_flags = ${common.build_flags_1m0m} -DGENERIC_GU10
  703. [env:generic-e14]
  704. board = ${common.board_1m}
  705. build_flags = ${common.build_flags_1m0m} -DGENERIC_E14
  706. [env:nexete-a19]
  707. board = ${common.board_1m}
  708. build_flags = ${common.build_flags_1m0m} -DNEXETE_A19
  709. [env:psh-wifi-plug]
  710. board = ${common.board_1m}
  711. build_flags = ${common.build_flags_1m0m} -DPSH_WIFI_PLUG
  712. [env:psh-rgbw-controller]
  713. board = ${common.board_4m}
  714. build_flags = ${common.build_flags_4m1m} -DPSH_RGBW_CONTROLLER
  715. [env:psh-wifi-sensor]
  716. board = ${common.board_4m}
  717. build_flags = ${common.build_flags_4m1m} -DPSH_WIFI_SENSOR
  718. [env:jinvoo-valve-sm-aw713]
  719. board = ${common.board_1m}
  720. build_flags = ${common.build_flags_1m0m} -DJINVOO_VALVE_SM_AW713
  721. [env:etekcity-esw01-usa]
  722. board = ${common.board_1m}
  723. build_flags = ${common.build_flags_1m0m} -DETEKCITY_ESW01_USA
  724. [env:fs-uap1]
  725. board = ${common.board_4m}
  726. build_flags = ${common.build_flags_4m1m} -DFS_UAP1
  727. [env:muvit-io-miobulb001]
  728. board = ${common.board_1m}
  729. build_flags = ${common.build_flags_1m0m} -DMUVIT_IO_MIOBULB001
  730. [env:hykker-smart-home-power-plug]
  731. board = ${common.board_1m}
  732. build_flags = ${common.build_flags_1m0m} -DHYKKER_SMART_HOME_POWER_PLUG
  733. [env:kogan-smarter-home-plug-w-pow]
  734. board = ${common.board_1m}
  735. build_flags = ${common.build_flags_1m0m} -DKOGAN_SMARTER_HOME_PLUG_W_POW
  736. [env:lsc-smart-led-light-strip]
  737. board = ${common.board_1m}
  738. build_flags = ${common.build_flags_1m0m} -DLSC_SMART_LED_LIGHT_STRIP
  739. [env:linksprite-linknode-r4]
  740. board = ${common.board_4m}
  741. build_flags = ${common.build_flags_4m1m} -DLINKSPRITE_LINKNODE_R4
  742. [env:ehomediy-wt02]
  743. board = ${common.board_1m}
  744. build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT02
  745. [env:ehomediy-wt03]
  746. board = ${common.board_1m}
  747. build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT03