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.

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