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.

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