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.

991 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. lib_ignore =
  148. AsyncTCP
  149. # ------------------------------------------------------------------------------
  150. # Base enrivonments, -DMANUFACTURER=..., -DDEVICE=... must be set:
  151. # - by using specific hardware.h entry, like -DITEAD_SONOFF_BASIC
  152. # - by setting PLATFORMIO_SRC_BUILD_FLAGS=... environment variable
  153. # - by setting ESPURNA_FLAGS=... environment variable
  154. # ------------------------------------------------------------------------------
  155. [env:esp8266-512k-base]
  156. board = ${common.board_512k}
  157. board_build.ldscript = ${common.ldscript_512k}
  158. [env:esp8266-1m-base]
  159. board = ${common.board_1m}
  160. board_build.ldscript = ${common.ldscript_1m}
  161. [env:esp8266-2m-base]
  162. board = ${common.board_2m}
  163. board_build.ldscript = ${common.ldscript_2m}
  164. [env:esp8266-4m-base]
  165. board = ${common.board_4m}
  166. board_build.ldscript = ${common.ldscript_4m}
  167. [env:esp8266-1m-latest-base]
  168. platform = ${common.platform_latest}
  169. board = ${common.board_1m}
  170. board_build.ldscript = ${common.ldscript_1m}
  171. [env:esp8266-2m-latest-base]
  172. platform = ${common.platform_latest}
  173. board = ${common.board_2m}
  174. board_build.ldscript = ${common.ldscript_2m}
  175. [env:esp8266-4m-latest-base]
  176. platform = ${common.platform_latest}
  177. board = ${common.board_4m}
  178. board_build.ldscript = ${common.ldscript_4m}
  179. [env:esp8266-1m-git-base]
  180. platform = ${common.platform_latest}
  181. board = ${common.board_1m}
  182. platform_packages =
  183. framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
  184. board_build.ldscript = ${common.ldscript_1m}
  185. [env:esp8266-2m-git-base]
  186. platform = ${common.platform_latest}
  187. board = ${common.board_2m}
  188. platform_packages =
  189. framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
  190. board_build.ldscript = ${common.ldscript_2m}
  191. [env:esp8266-4m-git-base]
  192. platform = ${common.platform_latest}
  193. board = ${common.board_4m}
  194. platform_packages =
  195. framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
  196. board_build.ldscript = ${common.ldscript_4m}
  197. # ------------------------------------------------------------------------------
  198. # ESPURNA CORE BUILDS (2-step OTA)
  199. # ------------------------------------------------------------------------------
  200. [env:espurna-core-1MB]
  201. extends = env:esp8266-1m-base
  202. src_build_flags = -DESPURNA_CORE
  203. [env:espurna-core-2MB]
  204. extends = env:esp8266-2m-base
  205. src_build_flags = -DESPURNA_CORE
  206. [env:espurna-core-4MB]
  207. extends = env:esp8266-4m-base
  208. src_build_flags = -DESPURNA_CORE
  209. [env:espurna-core-smartconfig-1MB]
  210. extends = env:esp8266-1m-base
  211. src_build_flags = -DESPURNA_CORE
  212. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  213. [env:espurna-core-smartconfig-2MB]
  214. extends = env:esp8266-2m-base
  215. src_build_flags = -DESPURNA_CORE
  216. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  217. [env:espurna-core-smartconfig-4MB]
  218. extends = env:esp8266-4m-base
  219. src_build_flags = -DESPURNA_CORE
  220. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  221. [env:espurna-core-wps-1MB]
  222. extends = env:esp8266-1m-base
  223. src_build_flags = -DESPURNA_CORE
  224. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_WPS=1
  225. [env:espurna-core-wps-2MB]
  226. extends = env:esp8266-2m-base
  227. src_build_flags = -DESPURNA_CORE
  228. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_WPS=1
  229. [env:espurna-core-wps-4MB]
  230. extends = env:esp8266-4m-base
  231. src_build_flags = -DESPURNA_CORE
  232. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_WPS=1
  233. # ------------------------------------------------------------------------------
  234. # ESPURNA CORE with WebUI
  235. # ------------------------------------------------------------------------------
  236. [env:espurna-core-webui-1MB]
  237. extends = env:esp8266-1m-base
  238. src_build_flags = -DESPURNA_CORE_WEB
  239. [env:espurna-core-webui-2MB]
  240. extends = env:esp8266-2m-base
  241. src_build_flags = -DESPURNA_CORE_WEB
  242. [env:espurna-core-webui-4MB]
  243. extends = env:esp8266-4m-base
  244. src_build_flags = -DESPURNA_CORE_WEB
  245. # ------------------------------------------------------------------------------
  246. # DEVELOPMENT BOARDS
  247. # ------------------------------------------------------------------------------
  248. [env:wemos-d1mini]
  249. extends = env:esp8266-4m-base
  250. board = d1_mini
  251. src_build_flags = -DWEMOS_D1_MINI -DNOWSAUTH
  252. [env:wemos-d1mini-relayshield]
  253. extends = env:esp8266-4m-base
  254. board = d1_mini
  255. src_build_flags = -DWEMOS_D1_MINI_RELAYSHIELD -DNOWSAUTH
  256. [env:nodemcu-lolin]
  257. extends = env:esp8266-4m-base
  258. src_build_flags = -DNODEMCU_LOLIN -DNOWSAUTH
  259. [env:nodemcu-lolin-latest]
  260. extends = env:esp8266-4m-latest-base
  261. src_build_flags = -DNODEMCU_LOLIN -DNOWSAUTH
  262. [env:nodemcu-lolin-secure-client-asynctcp]
  263. extends = env:esp8266-4m-latest-base
  264. build_flags = ${common.build_flags} -DASYNC_TCP_SSL_ENABLED=1
  265. src_build_flags = -DNODEMCU_LOLIN -DNOWSAUTH
  266. [env:nodemcu-lolin-secure-client]
  267. extends = env:esp8266-4m-latest-base
  268. board_build.f_cpu = 160000000
  269. src_build_flags =
  270. -DNODEMCU_LOLIN -DNOWSAUTH
  271. -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL
  272. -DMQTT_LIBRARY=MQTT_LIBRARY_ARDUINOMQTT
  273. -DOTA_CLIENT=OTA_CLIENT_HTTPUPDATE
  274. # ------------------------------------------------------------------------------
  275. # SPECIFIC BOARDS
  276. # ------------------------------------------------------------------------------
  277. [env:tinkerman-espurna-h06]
  278. extends = env:esp8266-4m-latest-base
  279. src_build_flags = -DTINKERMAN_ESPURNA_H06
  280. [env:tinkerman-espurna-h08]
  281. extends = env:esp8266-4m-latest-base
  282. src_build_flags = -DTINKERMAN_ESPURNA_H08
  283. [env:tinkerman-espurna-switch]
  284. extends = env:esp8266-4m-latest-base
  285. src_build_flags = -DTINKERMAN_ESPURNA_SWITCH
  286. [env:wemos-d1-tarpunashield]
  287. extends = env:esp8266-4m-latest-base
  288. src_build_flags = -DWEMOS_D1_TARPUNA_SHIELD
  289. [env:tinkerman-rfm69gw]
  290. extends = env:esp8266-4m-latest-base
  291. board = esp12e
  292. src_build_flags = -DTINKERMAN_RFM69GW -DNOWSAUTH
  293. [env:foxel-lightfox-dual]
  294. extends = env:esp8266-1m-base
  295. src_build_flags =
  296. -DFOXEL_LIGHTFOX_DUAL
  297. -DDISABLE_POSTMORTEM_STACKDUMP
  298. # ------------------------------------------------------------------------------
  299. # GENERIC / DEVELOPMENT BOARDS
  300. # ------------------------------------------------------------------------------
  301. [env:generic-esp01-512kb]
  302. extends = env:esp8266-512k-base
  303. src_build_flags = -DGENERIC_ESP01_512KB
  304. [env:generic-esp01s-relay-40]
  305. extends = env:esp8266-1m-base
  306. src_build_flags = -DGENERIC_ESP01S_RELAY_V40
  307. [env:generic-esp01s-relay-40-inv]
  308. extends = env:esp8266-1m-base
  309. src_build_flags = -DGENERIC_ESP01S_RELAY_V40 -DRELAY1_TYPE=1
  310. [env:generic-esp01s-rgbled-10]
  311. extends = env:esp8266-1m-base
  312. src_build_flags = -DGENERIC_ESP01S_RGBLED_V10
  313. [env:generic-esp01s-dht11-10]
  314. extends = env:esp8266-1m-base
  315. src_build_flags = -DGENERIC_ESP01S_DHT11_V10
  316. [env:generic-esp01s-ds18b20-10]
  317. extends = env:esp8266-1m-base
  318. src_build_flags = -DGENERIC_ESP01S_DS18B20_V10
  319. [env:generic-esp01s-pzem004t]
  320. extends = env:esp8266-1m-latest-base
  321. src_build_flags = -DGENERIC_PZEM004T -DDISABLE_POSTMORTEM_STACKDUMP
  322. [env:generic-esp12e-pzem004t]
  323. extends = env:esp8266-4m-latest-base
  324. src_build_flags = -DGENERIC_PZEM004T -DDISABLE_POSTMORTEM_STACKDUMP
  325. # ------------------------------------------------------------------------------
  326. # ITEAD SONOFF
  327. # ------------------------------------------------------------------------------
  328. [env:itead-sonoff-basic]
  329. extends = env:esp8266-1m-base
  330. src_build_flags = -DITEAD_SONOFF_BASIC
  331. [env:itead-sonoff-basic-dht]
  332. extends = env:esp8266-1m-base
  333. src_build_flags = -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  334. [env:itead-sonoff-basic-r2-dht]
  335. extends = env:esp8266-1m-base
  336. src_build_flags = -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1 -DDHT_PIN=2
  337. [env:itead-sonoff-basic-dallas]
  338. extends = env:esp8266-1m-base
  339. src_build_flags = -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1
  340. [env:itead-sonoff-basic-r2-dallas]
  341. extends = env:esp8266-1m-base
  342. src_build_flags = -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1 -DDALLAS_PIN=2
  343. [env:itead-sonoff-rf]
  344. extends = env:esp8266-1m-base
  345. src_build_flags = -DITEAD_SONOFF_RF
  346. [env:itead-sonoff-mini]
  347. extends = env:esp8266-1m-base
  348. src_build_flags = -DITEAD_SONOFF_MINI
  349. [env:itead-sonoff-th]
  350. extends = env:esp8266-1m-base
  351. src_build_flags = -DITEAD_SONOFF_TH
  352. [env:itead-sonoff-pow]
  353. extends = env:esp8266-1m-base
  354. src_build_flags = -DITEAD_SONOFF_POW
  355. [env:itead-sonoff-pow-r2]
  356. extends = env:esp8266-1m-base
  357. src_build_flags = -DITEAD_SONOFF_POW_R2 -DDISABLE_POSTMORTEM_STACKDUMP
  358. [env:itead-sonoff-dual]
  359. extends = env:esp8266-1m-base
  360. src_build_flags = -DITEAD_SONOFF_DUAL -DDISABLE_POSTMORTEM_STACKDUMP
  361. [env:itead-sonoff-dual-r2]
  362. extends = env:esp8266-1m-base
  363. src_build_flags = -DITEAD_SONOFF_DUAL_R2
  364. [env:itead-sonoff-4ch]
  365. extends = env:esp8266-1m-base
  366. src_build_flags = -DITEAD_SONOFF_4CH
  367. [env:itead-sonoff-4ch-pro]
  368. extends = env:esp8266-1m-base
  369. src_build_flags = -DITEAD_SONOFF_4CH_PRO
  370. [env:itead-sonoff-touch]
  371. extends = env:esp8266-1m-base
  372. src_build_flags = -DITEAD_SONOFF_TOUCH
  373. [env:itead-sonoff-b1]
  374. extends = env:esp8266-1m-base
  375. src_build_flags = -DITEAD_SONOFF_B1
  376. [env:itead-sonoff-t1-1ch]
  377. extends = env:esp8266-1m-base
  378. src_build_flags = -DITEAD_SONOFF_T1_1CH
  379. [env:itead-sonoff-t1-2ch]
  380. extends = env:esp8266-1m-base
  381. src_build_flags = -DITEAD_SONOFF_T1_2CH
  382. [env:itead-sonoff-t1-3ch]
  383. extends = env:esp8266-1m-base
  384. src_build_flags = -DITEAD_SONOFF_T1_3CH
  385. [env:itead-sonoff-led]
  386. extends = env:esp8266-1m-base
  387. src_build_flags = -DITEAD_SONOFF_LED
  388. [env:itead-sonoff-rfbridge]
  389. extends = env:esp8266-1m-base
  390. src_build_flags = -DITEAD_SONOFF_RFBRIDGE -DDISABLE_POSTMORTEM_STACKDUMP
  391. [env:itead-sonoff-rfbridge-direct]
  392. extends = env:esp8266-1m-base
  393. src_build_flags = -DITEAD_SONOFF_RFBRIDGE -DRFB_DIRECT
  394. [env:itead-slampher]
  395. extends = env:esp8266-1m-base
  396. src_build_flags = -DITEAD_SLAMPHER
  397. [env:itead-s20]
  398. extends = env:esp8266-1m-base
  399. src_build_flags = -DITEAD_S20
  400. [env:itead-1ch-inching]
  401. extends = env:esp8266-1m-base
  402. src_build_flags = -DITEAD_1CH_INCHING
  403. [env:itead-motor]
  404. extends = env:esp8266-1m-base
  405. src_build_flags = -DITEAD_MOTOR
  406. [env:itead-sonoff-sv]
  407. extends = env:esp8266-1m-base
  408. src_build_flags = -DITEAD_SONOFF_SV
  409. [env:itead-sonoff-s31]
  410. extends = env:esp8266-1m-base
  411. src_build_flags = -DITEAD_SONOFF_S31 -DDISABLE_POSTMORTEM_STACKDUMP
  412. [env:itead-sonoff-s31-lite]
  413. extends = env:esp8266-1m-base
  414. src_build_flags = -DITEAD_SONOFF_S31_LITE
  415. [env:itead-sonoff-ifan02]
  416. extends = env:esp8266-1m-base
  417. src_build_flags = -DITEAD_SONOFF_IFAN02
  418. # ------------------------------------------------------------------------------
  419. [env:electrodragon-wifi-iot]
  420. extends = env:esp8266-4m-base
  421. src_build_flags = -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  422. [env:workchoice-ecoplug]
  423. extends = env:esp8266-1m-base
  424. src_build_flags = -DWORKCHOICE_ECOPLUG
  425. [env:jangoe-wifi-relay-nc]
  426. extends = env:esp8266-4m-base
  427. src_build_flags = -DJANGOE_WIFI_RELAY_NC
  428. [env:jangoe-wifi-relay-no]
  429. extends = env:esp8266-4m-base
  430. src_build_flags = -DJANGOE_WIFI_RELAY_NO
  431. [env:openenergymonitor-mqtt-relay]
  432. extends = env:esp8266-4m-base
  433. src_build_flags = -DOPENENERGYMONITOR_MQTT_RELAY -DDALLAS_SUPPORT=1
  434. [env:jorgegarcia-wifi-relays]
  435. extends = env:esp8266-1m-base
  436. src_build_flags = -DJORGEGARCIA_WIFI_RELAYS
  437. [env:aithinker-ai-light]
  438. extends = env:esp8266-1m-base
  439. src_build_flags = -DAITHINKER_AI_LIGHT
  440. [env:lyasi-rgb-light]
  441. extends = env:esp8266-1m-base
  442. src_build_flags = -DLYASI_LIGHT
  443. [env:magichome-led-controller]
  444. extends = env:esp8266-1m-base
  445. src_build_flags = -DMAGICHOME_LED_CONTROLLER
  446. [env:magichome-led-controller-20]
  447. extends = env:esp8266-1m-base
  448. src_build_flags = -DMAGICHOME_LED_CONTROLLER_20
  449. [env:magichome-zj-wfmn-a-11]
  450. extends = env:esp8266-1m-base
  451. src_build_flags = -DMAGICHOME_ZJ_WFMN_A_11
  452. [env:magichome-zj-wfmn-b-11]
  453. extends = env:esp8266-1m-base
  454. src_build_flags = -DMAGICHOME_ZJ_WFMN_B_11
  455. [env:magichome-zj-espm-5ch-b-13]
  456. extends = env:esp8266-1m-base
  457. src_build_flags = -DMAGICHOME_ZJ_ESPM_5CH_B_13
  458. [env:magichome-zj-lb-rgbww-l]
  459. extends = env:esp8266-1m-base
  460. src_build_flags = -DMAGICHOME_ZJ_LB_RGBWW_L
  461. [env:magichome-zj-wfmn-c-11]
  462. extends = env:esp8266-1m-base
  463. src_build_flags = -DMAGICHOME_ZJ_WFMN_C_11
  464. [env:huacanxing-h801]
  465. extends = env:esp8266-1m-base
  466. src_build_flags = -DHUACANXING_H801
  467. [env:huacanxing-h802]
  468. extends = env:esp8266-1m-base
  469. src_build_flags = -DHUACANXING_H802
  470. [env:arilux-al-lc01]
  471. extends = env:esp8266-1m-base
  472. src_build_flags = -DARILUX_AL_LC01
  473. [env:arilux-al-lc02]
  474. extends = env:esp8266-1m-base
  475. src_build_flags = -DARILUX_AL_LC02
  476. [env:arilux-al-lc02-v14]
  477. extends = env:esp8266-1m-base
  478. src_build_flags = -DARILUX_AL_LC02_V14
  479. [env:arilux-al-lc06]
  480. extends = env:esp8266-1m-base
  481. src_build_flags = -DARILUX_AL_LC06
  482. [env:arilux-al-lc11]
  483. extends = env:esp8266-1m-base
  484. src_build_flags = -DARILUX_AL_LC11
  485. [env:arilux-e27]
  486. extends = env:esp8266-1m-base
  487. src_build_flags = -DARILUX_E27
  488. [env:itead-bnsz01]
  489. extends = env:esp8266-1m-base
  490. src_build_flags = -DITEAD_BNSZ01
  491. [env:wion-50055]
  492. extends = env:esp8266-1m-base
  493. src_build_flags = -DWION_50055
  494. [env:exs-wifi-relay-v31]
  495. extends = env:esp8266-4m-base
  496. src_build_flags = -DEXS_WIFI_RELAY_V31
  497. [env:exs-wifi-relay-v50]
  498. extends = env:esp8266-4m-base
  499. src_build_flags = -DEXS_WIFI_RELAY_V50
  500. [env:wemos-v9261f]
  501. extends = env:esp8266-4m-base
  502. src_build_flags = -DGENERIC_V9261F
  503. [env:esp01-v9261f]
  504. extends = env:esp8266-1m-base
  505. src_build_flags = -DGENERIC_V9261F
  506. [env:wemos-ech1560]
  507. extends = env:esp8266-4m-base
  508. src_build_flags = -DGENERIC_ECH1560
  509. [env:esp01-ech1560]
  510. extends = env:esp8266-1m-base
  511. src_build_flags = -DGENERIC_ECH1560
  512. [env:mancavemade-esplive]
  513. extends = env:esp8266-4m-base
  514. src_build_flags = -DMANCAVEMADE_ESPLIVE
  515. [env:tuya-generic-dimmer]
  516. extends = env:esp8266-1m-base
  517. src_build_flags = -DTUYA_GENERIC_DIMMER -DDEBUG_SERIAL_SUPPORT=0 -DDISABLE_POSTMORTEM_STACKDUMP
  518. [env:intermittech-quinled]
  519. extends = env:esp8266-1m-base
  520. src_build_flags = -DINTERMITTECH_QUINLED
  521. [env:xenon-sm-pw702u]
  522. extends = env:esp8266-1m-base
  523. src_build_flags = -DXENON_SM_PW702U
  524. [env:iselector-sm-pw702]
  525. extends = env:esp8266-1m-base
  526. src_build_flags = -DISELECTOR_SM_PW702
  527. [env:authometion-lyt8266]
  528. extends = env:esp8266-1m-base
  529. src_build_flags = -DAUTHOMETION_LYT8266
  530. [env:kmc-70011]
  531. extends = env:esp8266-1m-base
  532. src_build_flags = -DKMC_70011
  533. [env:yjzk-switch-1ch]
  534. extends = env:esp8266-1m-base
  535. src_build_flags = -DYJZK_SWITCH_1CH
  536. [env:yjzk-switch-2ch]
  537. extends = env:esp8266-1m-base
  538. src_build_flags = -DYJZK_SWITCH_2CH
  539. [env:yjzk-switch-3ch]
  540. extends = env:esp8266-1m-base
  541. src_build_flags = -DYJZK_SWITCH_3CH
  542. [env:generic-8ch]
  543. extends = env:esp8266-4m-base
  544. src_build_flags = -DGENERIC_8CH
  545. [env:gizwits-witty-cloud]
  546. extends = env:esp8266-4m-base
  547. src_build_flags = -DGIZWITS_WITTY_CLOUD
  548. [env:euromate-wifi-stecker-shuko]
  549. extends = env:esp8266-1m-base
  550. src_build_flags = -DEUROMATE_WIFI_STECKER_SCHUKO
  551. [env:euromate-wifi-stecker-shuko-v2]
  552. extends = env:esp8266-2m-base
  553. src_build_flags = -DEUROMATE_WIFI_STECKER_SCHUKO_V2
  554. [env:tonbux-powerstrip02]
  555. extends = env:esp8266-1m-base
  556. src_build_flags = -DTONBUX_POWERSTRIP02
  557. [env:lingan-swa1]
  558. extends = env:esp8266-1m-base
  559. src_build_flags = -DLINGAN_SWA1
  560. [env:stm-relay]
  561. extends = env:esp8266-1m-base
  562. src_build_flags = -DSTM_RELAY -DDISABLE_POSTMORTEM_STACKDUMP
  563. [env:heygo-hy02]
  564. extends = env:esp8266-1m-base
  565. src_build_flags = -DHEYGO_HY02
  566. [env:maxcio-wus002s]
  567. extends = env:esp8266-1m-base
  568. src_build_flags = -DMAXCIO_WUS002S
  569. [env:maxcio-wde004]
  570. extends = env:esp8266-1m-base
  571. src_build_flags = -DMAXCIO_WDE004
  572. [env:maxcio-wuk007s]
  573. extends = env:esp8266-1m-base
  574. src_build_flags = -DMAXCIO_WUK007S
  575. [env:yidian-xsssa05]
  576. extends = env:esp8266-1m-base
  577. src_build_flags = -DYIDIAN_XSSSA05
  578. [env:oukitel-p1]
  579. extends = env:esp8266-1m-base
  580. src_build_flags = -DOUKITEL_P1
  581. [env:tonbux-xsssa01]
  582. extends = env:esp8266-1m-base
  583. src_build_flags = -DTONBUX_XSSSA01
  584. [env:tonbux-xsssa06]
  585. extends = env:esp8266-1m-base
  586. src_build_flags = -DTONBUX_XSSSA06
  587. [env:green-esp8266relay]
  588. extends = env:esp8266-4m-base
  589. src_build_flags = -DGREEN_ESP8266RELAY
  590. [env:ike-espike]
  591. extends = env:esp8266-4m-base
  592. src_build_flags = -DIKE_ESPIKE
  593. [env:arniex-swifitch]
  594. extends = env:esp8266-4m-base
  595. src_build_flags = -DARNIEX_SWIFITCH
  596. [env:zhilde-eu44-w]
  597. extends = env:esp8266-1m-base
  598. src_build_flags = -DZHILDE_EU44_W
  599. [env:luani-hvio]
  600. extends = env:esp8266-1m-base
  601. src_build_flags = -DLUANI_HVIO
  602. [env:avatto-power-plug-wifi]
  603. extends = env:esp8266-1m-base
  604. src_build_flags = -DAVATTO_NAS_WR01W
  605. [env:neo-coolcam-power-plug-wifi]
  606. extends = env:esp8266-1m-base
  607. src_build_flags = -DNEO_COOLCAM_NAS_WR01W
  608. [env:deltaco-sh-p01]
  609. extends = env:esp8266-1m-base
  610. src_build_flags = -DDELTACO_SH_P01
  611. [env:deltaco-sh-p03usb]
  612. extends = env:esp8266-1m-base
  613. src_build_flags = -DDELTACO_SH_P03USB
  614. [env:deltaco-sh-lexxw]
  615. extends = env:esp8266-1m-base
  616. src_build_flags = -DDELTACO_SH_LEXXW
  617. [env:deltaco-sh-lexxrgb]
  618. extends = env:esp8266-1m-base
  619. src_build_flags = -DDELTACO_SH_LEXXRGB
  620. [env:estink-wifi-power-strip]
  621. extends = env:esp8266-1m-base
  622. src_build_flags = -DFORNORM_ZLD_34EU
  623. [env:iwoole-led-table-lamp]
  624. extends = env:esp8266-1m-base
  625. src_build_flags = -DIWOOLE_LED_TABLE_LAMP
  626. [env:lombex-lux-nova2-tunable-white]
  627. extends = env:esp8266-1m-base
  628. src_build_flags = -DLOMBEX_LUX_NOVA2_TUNABLE_WHITE
  629. [env:lombex-lux-nova2-white-color]
  630. extends = env:esp8266-1m-base
  631. src_build_flags = -DLOMBEX_LUX_NOVA2_WHITE_COLOR
  632. [env:heltec-touch-relay]
  633. extends = env:esp8266-1m-base
  634. src_build_flags = -DHELTEC_TOUCHRELAY
  635. [env:allnet-4duino-iot-wlan-relais]
  636. extends = env:esp8266-4m-base
  637. src_build_flags = -DALLNET_4DUINO_IOT_WLAN_RELAIS
  638. [env:tonbux-mosquito-killer]
  639. extends = env:esp8266-1m-base
  640. src_build_flags = -DTONBUX_MOSQUITO_KILLER
  641. [env:pilotak-esp-din-v1]
  642. extends = env:esp8266-1m-base
  643. src_build_flags = -DPILOTAK_ESP_DIN_V1
  644. [env:nodemcu-geiger]
  645. extends = env:esp8266-4m-base
  646. src_build_flags = -DNODEMCU_BASIC -DGEIGER_SUPPORT=1 -DEVENTS_SUPPORT=0 -DINFLUXDB_SUPPORT=1 -DALEXA_SUPPORT=0 -DALEXA_ENABLED=0
  647. [env:blitzwolf-bwshpx]
  648. extends = env:esp8266-1m-base
  649. src_build_flags = -DBLITZWOLF_BWSHPX
  650. [env:blitzwolf-bwshpx-v23]
  651. extends = env:esp8266-1m-base
  652. src_build_flags = -DBLITZWOLF_BWSHPX_V23
  653. [env:blitzwolf-bwshp5]
  654. extends = env:esp8266-1m-base
  655. src_build_flags = -DBLITZWOLF_BWSHP5
  656. [env:teckin-sp21]
  657. extends = env:esp8266-1m-base
  658. src_build_flags = -DTECKIN_SP21
  659. [env:teckin-sp22-v14]
  660. extends = env:esp8266-1m-base
  661. src_build_flags = -DTECKIN_SP22_V14
  662. [env:teckin-sp23-v13]
  663. extends = env:esp8266-1m-base
  664. src_build_flags = -DTECKIN_SP23_V13
  665. [env:gosund-wp3]
  666. extends = env:esp8266-1m-base
  667. src_build_flags = -DGOSUND_WP3
  668. [env:gosund-ws1]
  669. extends = env:esp8266-1m-base
  670. src_build_flags = -DGOSUND_WS1
  671. [env:digoo-nx-sp202]
  672. extends = env:esp8266-1m-base
  673. src_build_flags = -DDIGOO_NX_SP202
  674. [env:tflag-nx-smx00]
  675. extends = env:esp8266-1m-base
  676. src_build_flags = -DTFLAG_NX_SMX00
  677. [env:homecube-16a]
  678. extends = env:esp8266-1m-base
  679. src_build_flags = -DHOMECUBE_16A
  680. [env:bh-onofre]
  681. extends = env:esp8266-4m-base
  682. src_build_flags = -DBH_ONOFRE
  683. [env:generic-ag-l4]
  684. extends = env:esp8266-1m-base
  685. src_build_flags = -DGENERIC_AG_L4
  686. [env:lohas-e27-9w]
  687. extends = env:esp8266-1m-base
  688. src_build_flags = -DLOHAS_E27_9W
  689. [env:lohas-e26-a19]
  690. extends = env:esp8266-1m-base
  691. src_build_flags = -DLOHAS_E26_A19
  692. [env:teckin-sb53]
  693. extends = env:esp8266-1m-base
  694. src_build_flags = -DTECKIN_SB53
  695. [env:allterco-shelly1]
  696. extends = env:esp8266-2m-base
  697. src_build_flags = -DALLTERCO_SHELLY1
  698. [env:allterco-shelly2]
  699. extends = env:esp8266-2m-base
  700. src_build_flags = -DALLTERCO_SHELLY2
  701. [env:allterco-shelly1pm]
  702. extends = env:esp8266-2m-base
  703. src_build_flags = -DALLTERCO_SHELLY1PM
  704. [env:allterco-shelly25]
  705. extends = env:esp8266-2m-base
  706. src_build_flags = -DALLTERCO_SHELLY25
  707. [env:xiaomi-smart-desk-lamp]
  708. extends = env:esp8266-1m-base
  709. src_build_flags = -DXIAOMI_SMART_DESK_LAMP
  710. [env:phyx-esp12-rgb]
  711. extends = env:esp8266-1m-base
  712. src_build_flags = -DPHYX_ESP12_RGB
  713. [env:bestek-mrj1011]
  714. extends = env:esp8266-1m-base
  715. src_build_flags = -DBESTEK_MRJ1011
  716. [env:gblife-rgbw-socket]
  717. extends = env:esp8266-1m-base
  718. src_build_flags = -DGBLIFE_RGBW_SOCKET
  719. [env:smartlife-mini-smart-socket]
  720. extends = env:esp8266-1m-base
  721. src_build_flags = -DSMARTLIFE_MINI_SMART_SOCKET
  722. [env:hama-wifi-steckdose-00176533]
  723. extends = env:esp8266-1m-base
  724. src_build_flags = -DHAMA_WIFI_STECKDOSE_00176533
  725. [env:teckin-sp20]
  726. extends = env:esp8266-1m-base
  727. src_build_flags = -DTECKIN_SP20
  728. [env:litesun-la-wf3]
  729. extends = env:esp8266-1m-base
  730. src_build_flags = -DLITESUN_LA_WF3
  731. [env:generic-gu10]
  732. extends = env:esp8266-1m-base
  733. src_build_flags = -DGENERIC_GU10
  734. [env:generic-e14]
  735. extends = env:esp8266-1m-base
  736. src_build_flags = -DGENERIC_E14
  737. [env:nexete-a19]
  738. extends = env:esp8266-1m-base
  739. src_build_flags = -DNEXETE_A19
  740. [env:psh-wifi-plug]
  741. extends = env:esp8266-1m-base
  742. src_build_flags = -DPSH_WIFI_PLUG
  743. [env:psh-rgbw-controller]
  744. extends = env:esp8266-4m-base
  745. src_build_flags = -DPSH_RGBW_CONTROLLER
  746. [env:psh-wifi-sensor]
  747. extends = env:esp8266-4m-base
  748. src_build_flags = -DPSH_WIFI_SENSOR
  749. [env:jinvoo-valve-sm-aw713]
  750. extends = env:esp8266-1m-base
  751. src_build_flags = -DJINVOO_VALVE_SM_AW713
  752. [env:etekcity-esw01-usa]
  753. extends = env:esp8266-1m-base
  754. src_build_flags = -DETEKCITY_ESW01_USA
  755. [env:fs-uap1]
  756. extends = env:esp8266-4m-base
  757. src_build_flags = -DFS_UAP1
  758. [env:muvit-io-miobulb001]
  759. extends = env:esp8266-1m-base
  760. src_build_flags = -DMUVIT_IO_MIOBULB001
  761. [env:hykker-smart-home-power-plug]
  762. extends = env:esp8266-1m-base
  763. src_build_flags = -DHYKKER_SMART_HOME_POWER_PLUG
  764. [env:kogan-smarter-home-plug-w-pow]
  765. extends = env:esp8266-1m-base
  766. src_build_flags = -DKOGAN_SMARTER_HOME_PLUG_W_POW
  767. [env:lsc-smart-led-light-strip]
  768. extends = env:esp8266-1m-base
  769. src_build_flags = -DLSC_SMART_LED_LIGHT_STRIP
  770. [env:linksprite-linknode-r4]
  771. extends = env:esp8266-4m-base
  772. src_build_flags = -DLINKSPRITE_LINKNODE_R4
  773. [env:ehomediy-wt02]
  774. extends = env:esp8266-1m-base
  775. src_build_flags = -DEHOMEDIY_WT02
  776. [env:ehomediy-wt03]
  777. extends = env:esp8266-1m-base
  778. src_build_flags = -DEHOMEDIY_WT03