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.

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