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.

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