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.

1051 lines
29 KiB

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