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.

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