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.

820 lines
22 KiB

  1. [platformio]
  2. env_default = nodemcu-lolin
  3. src_dir = espurna
  4. data_dir = espurna/data
  5. [common]
  6. build_flags = -g -DMQTT_MAX_PACKET_SIZE=400 ${env.FLAGS}
  7. 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
  8. build_flags_512k = ${common.build_flags} -Wl,-Tesp8266.flash.512k0.ld
  9. build_flags_1m = ${common.build_flags} -Wl,-Tesp8266.flash.1m0.ld
  10. lib_deps =
  11. DHT sensor library
  12. Adafruit Unified Sensor
  13. https://github.com/xoseperez/Time
  14. ArduinoJson
  15. https://github.com/me-no-dev/ESPAsyncTCP#991f855
  16. https://github.com/me-no-dev/ESPAsyncWebServer#a94265d
  17. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  18. PubSubClient
  19. Embedis
  20. NtpClientLib
  21. OneWire
  22. DallasTemperature
  23. Brzo I2C
  24. https://bitbucket.org/xoseperez/justwifi.git#1.1.4
  25. https://bitbucket.org/xoseperez/hlw8012.git#1.0.1
  26. https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.1
  27. https://bitbucket.org/xoseperez/nofuss.git#0.2.4
  28. https://bitbucket.org/xoseperez/emonliteesp.git#0.2.0
  29. https://bitbucket.org/xoseperez/debounceevent.git#2.0.1
  30. https://github.com/xoseperez/my9291#2.0.0
  31. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  32. lib_ignore =
  33. # ------------------------------------------------------------------------------
  34. [env:wemos-d1mini-relayshield]
  35. platform = espressif8266
  36. framework = arduino
  37. board = d1_mini
  38. lib_deps = ${common.lib_deps}
  39. lib_ignore = ${common.lib_ignore}
  40. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  41. upload_speed = 460800
  42. monitor_baud = 115200
  43. [env:wemos-d1mini-relayshield-ssl]
  44. platform = espressif8266_stage
  45. framework = arduino
  46. board = d1_mini
  47. lib_deps = ${common.lib_deps}
  48. lib_ignore = ${common.lib_ignore}
  49. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1
  50. upload_speed = 460800
  51. monitor_baud = 115200
  52. [env:wemos-d1mini-relayshield-ota]
  53. platform = espressif8266
  54. framework = arduino
  55. board = d1_mini
  56. lib_deps = ${common.lib_deps}
  57. lib_ignore = ${common.lib_ignore}
  58. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  59. upload_speed = 115200
  60. upload_port = "192.168.4.1"
  61. upload_flags = --auth=fibonacci --port 8266
  62. [env:nodemcu-lolin]
  63. platform = espressif8266
  64. framework = arduino
  65. board = nodemcuv2
  66. lib_deps = ${common.lib_deps}
  67. lib_ignore = ${common.lib_ignore}
  68. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  69. upload_speed = 460800
  70. monitor_baud = 115200
  71. [env:nodemcu-lolin-ssl]
  72. platform = espressif8266_stage
  73. framework = arduino
  74. board = nodemcuv2
  75. lib_deps = ${common.lib_deps}
  76. lib_ignore = ${common.lib_ignore}
  77. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1 ${common.debug_flags}
  78. upload_speed = 460800
  79. monitor_baud = 115200
  80. [env:nodemcu-lolin-ota]
  81. platform = espressif8266
  82. framework = arduino
  83. board = nodemcuv2
  84. lib_deps = ${common.lib_deps}
  85. lib_ignore = ${common.lib_ignore}
  86. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  87. upload_speed = 115200
  88. upload_port = "192.168.4.1"
  89. upload_flags = --auth=fibonacci --port 8266
  90. monitor_baud = 115200
  91. # ------------------------------------------------------------------------------
  92. [env:tinkerman-espurna-h]
  93. platform = espressif8266
  94. framework = arduino
  95. board = esp12e
  96. lib_deps = ${common.lib_deps}
  97. lib_ignore = ${common.lib_ignore}
  98. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H
  99. upload_speed = 460800
  100. monitor_baud = 115200
  101. [env:tinkerman-espurna-h-ota]
  102. platform = espressif8266
  103. framework = arduino
  104. board = esp12e
  105. lib_deps = ${common.lib_deps}
  106. lib_ignore = ${common.lib_ignore}
  107. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H
  108. upload_speed = 115200
  109. upload_port = "192.168.4.1"
  110. upload_flags = --auth=fibonacci --port 8266
  111. monitor_baud = 115200
  112. # ------------------------------------------------------------------------------
  113. [env:itead-sonoff-basic]
  114. platform = espressif8266
  115. framework = arduino
  116. board = esp01_1m
  117. board_flash_mode = dout
  118. lib_deps = ${common.lib_deps}
  119. lib_ignore = ${common.lib_ignore}
  120. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  121. monitor_baud = 115200
  122. [env:itead-sonoff-basic-ota]
  123. platform = espressif8266
  124. framework = arduino
  125. board = esp01_1m
  126. board_flash_mode = dout
  127. lib_deps = ${common.lib_deps}
  128. lib_ignore = ${common.lib_ignore}
  129. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  130. upload_speed = 115200
  131. upload_port = "192.168.4.1"
  132. upload_flags = --auth=fibonacci --port 8266
  133. monitor_baud = 115200
  134. [env:itead-sonoff-basic-dht22]
  135. platform = espressif8266
  136. framework = arduino
  137. board = esp01_1m
  138. board_flash_mode = dout
  139. lib_deps = ${common.lib_deps}
  140. lib_ignore = ${common.lib_ignore}
  141. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  142. monitor_baud = 115200
  143. [env:itead-sonoff-basic-ds18b20]
  144. platform = espressif8266
  145. framework = arduino
  146. board = esp01_1m
  147. board_flash_mode = dout
  148. lib_deps = ${common.lib_deps}
  149. lib_ignore = ${common.lib_ignore}
  150. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDS18B20_SUPPORT=1
  151. monitor_baud = 115200
  152. [env:itead-sonoff-rf]
  153. platform = espressif8266
  154. framework = arduino
  155. board = esp01_1m
  156. board_flash_mode = dout
  157. lib_deps = ${common.lib_deps}
  158. lib_ignore = ${common.lib_ignore}
  159. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  160. monitor_baud = 115200
  161. [env:itead-sonoff-rf-ota]
  162. platform = espressif8266
  163. framework = arduino
  164. board = esp01_1m
  165. board_flash_mode = dout
  166. lib_deps = ${common.lib_deps}
  167. lib_ignore = ${common.lib_ignore}
  168. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  169. upload_speed = 115200
  170. upload_port = "192.168.4.1"
  171. upload_flags = --auth=fibonacci --port 8266
  172. monitor_baud = 115200
  173. [env:itead-sonoff-pow]
  174. platform = espressif8266
  175. framework = arduino
  176. board = esp01_1m
  177. board_flash_mode = dout
  178. lib_deps = ${common.lib_deps}
  179. lib_ignore = ${common.lib_ignore}
  180. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  181. monitor_baud = 115200
  182. [env:itead-sonoff-pow-ota]
  183. platform = espressif8266
  184. framework = arduino
  185. board = esp01_1m
  186. board_flash_mode = dout
  187. lib_deps = ${common.lib_deps}
  188. lib_ignore = ${common.lib_ignore}
  189. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  190. upload_speed = 115200
  191. upload_port = "192.168.4.1"
  192. upload_flags = --auth=fibonacci --port 8266
  193. monitor_baud = 115200
  194. [env:itead-sonoff-dual]
  195. platform = espressif8266
  196. framework = arduino
  197. board = esp01_1m
  198. board_flash_mode = dout
  199. lib_deps = ${common.lib_deps}
  200. lib_ignore = ${common.lib_ignore}
  201. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  202. [env:itead-sonoff-dual-ota]
  203. platform = espressif8266
  204. framework = arduino
  205. board = esp01_1m
  206. board_flash_mode = dout
  207. lib_deps = ${common.lib_deps}
  208. lib_ignore = ${common.lib_ignore}
  209. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  210. upload_speed = 115200
  211. upload_port = "192.168.4.1"
  212. upload_flags = --auth=fibonacci --port 8266
  213. [env:itead-sonoff-4ch]
  214. platform = espressif8266
  215. framework = arduino
  216. board = esp8285
  217. board_flash_mode = dout
  218. lib_deps = ${common.lib_deps}
  219. lib_ignore = ${common.lib_ignore}
  220. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  221. monitor_baud = 115200
  222. [env:itead-sonoff-4ch-ota]
  223. platform = espressif8266
  224. framework = arduino
  225. board = esp8285
  226. board_flash_mode = dout
  227. lib_deps = ${common.lib_deps}
  228. lib_ignore = ${common.lib_ignore}
  229. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  230. upload_speed = 115200
  231. upload_port = "192.168.4.1"
  232. upload_flags = --auth=fibonacci --port 8266
  233. monitor_baud = 115200
  234. [env:itead-sonoff-4ch-pro]
  235. platform = espressif8266
  236. framework = arduino
  237. board = esp8285
  238. board_flash_mode = dout
  239. lib_deps = ${common.lib_deps}
  240. lib_ignore = ${common.lib_ignore}
  241. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  242. monitor_baud = 115200
  243. [env:itead-sonoff-4ch-pro-ota]
  244. platform = espressif8266
  245. framework = arduino
  246. board = esp8285
  247. board_flash_mode = dout
  248. lib_deps = ${common.lib_deps}
  249. lib_ignore = ${common.lib_ignore}
  250. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  251. upload_speed = 115200
  252. upload_port = "192.168.4.1"
  253. upload_flags = --auth=fibonacci --port 8266
  254. monitor_baud = 115200
  255. [env:itead-sonoff-touch]
  256. platform = espressif8266
  257. framework = arduino
  258. board = esp8285
  259. board_flash_mode = dout
  260. lib_deps = ${common.lib_deps}
  261. lib_ignore = ${common.lib_ignore}
  262. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  263. monitor_baud = 115200
  264. [env:itead-sonoff-touch-ota]
  265. platform = espressif8266
  266. framework = arduino
  267. board = esp8285
  268. board_flash_mode = dout
  269. lib_deps = ${common.lib_deps}
  270. lib_ignore = ${common.lib_ignore}
  271. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  272. upload_speed = 115200
  273. upload_port = "192.168.4.1"
  274. upload_flags = --auth=fibonacci --port 8266
  275. monitor_baud = 115200
  276. [env:itead-sonoff-b1]
  277. platform = espressif8266
  278. framework = arduino
  279. board = esp01_1m
  280. board_flash_mode = dout
  281. lib_deps = ${common.lib_deps}
  282. lib_ignore = ${common.lib_ignore}
  283. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  284. monitor_baud = 115200
  285. [env:itead-sonoff-b1-ota]
  286. platform = espressif8266
  287. framework = arduino
  288. board = esp01_1m
  289. board_flash_mode = dout
  290. lib_deps = ${common.lib_deps}
  291. lib_ignore = ${common.lib_ignore}
  292. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  293. upload_speed = 115200
  294. upload_port = "192.168.4.1"
  295. upload_flags = --auth=fibonacci --port 8266
  296. monitor_baud = 115200
  297. [env:itead-sonoff-t1-1ch]
  298. platform = espressif8266
  299. framework = arduino
  300. board = esp8285
  301. board_flash_mode = dout
  302. lib_deps = ${common.lib_deps}
  303. lib_ignore = ${common.lib_ignore}
  304. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  305. monitor_baud = 115200
  306. [env:itead-sonoff-t1-1ch-ota]
  307. platform = espressif8266
  308. framework = arduino
  309. board = esp8285
  310. board_flash_mode = dout
  311. lib_deps = ${common.lib_deps}
  312. lib_ignore = ${common.lib_ignore}
  313. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  314. upload_speed = 115200
  315. upload_port = "192.168.4.1"
  316. upload_flags = --auth=fibonacci --port 8266
  317. monitor_baud = 115200
  318. [env:itead-sonoff-t1-2ch]
  319. platform = espressif8266
  320. framework = arduino
  321. board = esp8285
  322. board_flash_mode = dout
  323. lib_deps = ${common.lib_deps}
  324. lib_ignore = ${common.lib_ignore}
  325. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  326. monitor_baud = 115200
  327. [env:itead-sonoff-t1-2ch-ota]
  328. platform = espressif8266
  329. framework = arduino
  330. board = esp8285
  331. board_flash_mode = dout
  332. lib_deps = ${common.lib_deps}
  333. lib_ignore = ${common.lib_ignore}
  334. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  335. upload_speed = 115200
  336. upload_port = "192.168.4.1"
  337. upload_flags = --auth=fibonacci --port 8266
  338. monitor_baud = 115200
  339. [env:itead-sonoff-t1-3ch]
  340. platform = espressif8266
  341. framework = arduino
  342. board = esp8285
  343. board_flash_mode = dout
  344. lib_deps = ${common.lib_deps}
  345. lib_ignore = ${common.lib_ignore}
  346. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  347. monitor_baud = 115200
  348. [env:itead-sonoff-t1-3ch-ota]
  349. platform = espressif8266
  350. framework = arduino
  351. board = esp8285
  352. board_flash_mode = dout
  353. lib_deps = ${common.lib_deps}
  354. lib_ignore = ${common.lib_ignore}
  355. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  356. upload_speed = 115200
  357. upload_port = "192.168.4.1"
  358. upload_flags = --auth=fibonacci --port 8266
  359. monitor_baud = 115200
  360. [env:itead-sonoff-led]
  361. platform = espressif8266
  362. framework = arduino
  363. board = esp01_1m
  364. board_flash_mode = dout
  365. lib_deps = ${common.lib_deps}
  366. lib_ignore = ${common.lib_ignore}
  367. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  368. monitor_baud = 115200
  369. [env:itead-sonoff-led-ota]
  370. platform = espressif8266
  371. framework = arduino
  372. board = esp01_1m
  373. board_flash_mode = dout
  374. lib_deps = ${common.lib_deps}
  375. lib_ignore = ${common.lib_ignore}
  376. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  377. upload_speed = 115200
  378. upload_port = "192.168.4.1"
  379. upload_flags = --auth=fibonacci --port 8266
  380. monitor_baud = 115200
  381. [env:itead-sonoff-rfbridge]
  382. platform = espressif8266
  383. framework = arduino
  384. board = esp01_1m
  385. board_flash_mode = dout
  386. lib_deps = ${common.lib_deps}
  387. lib_ignore = ${common.lib_ignore}
  388. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  389. monitor_baud = 19200
  390. [env:itead-sonoff-rfbridge-ota]
  391. platform = espressif8266
  392. framework = arduino
  393. board = esp01_1m
  394. board_flash_mode = dout
  395. lib_deps = ${common.lib_deps}
  396. lib_ignore = ${common.lib_ignore}
  397. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  398. upload_speed = 115200
  399. upload_port = "192.168.4.1"
  400. upload_flags = --auth=Algernon1 --port 8266
  401. monitor_baud = 19200
  402. # ------------------------------------------------------------------------------
  403. [env:itead-slampher]
  404. platform = espressif8266
  405. framework = arduino
  406. board = esp01_1m
  407. board_flash_mode = dout
  408. lib_deps = ${common.lib_deps}
  409. lib_ignore = ${common.lib_ignore}
  410. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  411. monitor_baud = 115200
  412. [env:itead-slampher-ota]
  413. platform = espressif8266
  414. framework = arduino
  415. board = esp01_1m
  416. board_flash_mode = dout
  417. lib_deps = ${common.lib_deps}
  418. lib_ignore = ${common.lib_ignore}
  419. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  420. upload_speed = 115200
  421. upload_port = "192.168.4.1"
  422. upload_flags = --auth=fibonacci --port 8266
  423. monitor_baud = 115200
  424. [env:itead-s20]
  425. platform = espressif8266
  426. framework = arduino
  427. board = esp01_1m
  428. board_flash_mode = dout
  429. lib_deps = ${common.lib_deps}
  430. lib_ignore = ${common.lib_ignore}
  431. build_flags = ${common.build_flags_1m} -DITEAD_S20
  432. monitor_baud = 115200
  433. [env:itead-s20-ota]
  434. platform = espressif8266
  435. framework = arduino
  436. board = esp01_1m
  437. board_flash_mode = dout
  438. lib_deps = ${common.lib_deps}
  439. lib_ignore = ${common.lib_ignore}
  440. build_flags = ${common.build_flags_1m} -DITEAD_S20
  441. upload_speed = 115200
  442. upload_port = "192.168.4.1"
  443. upload_flags = --auth=fibonacci --port 8266
  444. monitor_baud = 115200
  445. [env:itead-1ch-inching]
  446. platform = espressif8266
  447. framework = arduino
  448. board = esp01_1m
  449. board_flash_mode = dout
  450. lib_deps = ${common.lib_deps}
  451. lib_ignore = ${common.lib_ignore}
  452. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  453. monitor_baud = 115200
  454. [env:itead-1ch-inching-ota]
  455. platform = espressif8266
  456. framework = arduino
  457. board = esp01_1m
  458. board_flash_mode = dout
  459. lib_deps = ${common.lib_deps}
  460. lib_ignore = ${common.lib_ignore}
  461. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  462. upload_speed = 115200
  463. upload_port = "192.168.4.1"
  464. upload_flags = --auth=fibonacci --port 8266
  465. monitor_baud = 115200
  466. [env:itead-motor]
  467. platform = espressif8266
  468. framework = arduino
  469. board = esp01_1m
  470. board_flash_mode = dout
  471. lib_deps = ${common.lib_deps}
  472. lib_ignore = ${common.lib_ignore}
  473. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  474. monitor_baud = 115200
  475. [env:itead-motor-ota]
  476. platform = espressif8266
  477. framework = arduino
  478. board = esp01_1m
  479. board_flash_mode = dout
  480. lib_deps = ${common.lib_deps}
  481. lib_ignore = ${common.lib_ignore}
  482. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  483. upload_speed = 115200
  484. upload_port = "192.168.4.1"
  485. upload_flags = --auth=fibonacci --port 8266
  486. monitor_baud = 115200
  487. # ------------------------------------------------------------------------------
  488. [env:electrodragon-wifi-iot]
  489. platform = espressif8266
  490. framework = arduino
  491. board = esp12e
  492. lib_deps = ${common.lib_deps}
  493. lib_ignore = ${common.lib_ignore}
  494. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  495. monitor_baud = 115200
  496. [env:electrodragon-wifi-iot-ota]
  497. platform = espressif8266
  498. framework = arduino
  499. board = esp12e
  500. lib_deps = ${common.lib_deps}
  501. lib_ignore = ${common.lib_ignore}
  502. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  503. upload_speed = 115200
  504. upload_port = "192.168.4.1"
  505. upload_flags = --auth=fibonacci --port 8266
  506. monitor_baud = 115200
  507. [env:workchoice-ecoplug]
  508. platform = espressif8266
  509. framework = arduino
  510. board = esp01_1m
  511. board_flash_mode = dout
  512. lib_deps = ${common.lib_deps}
  513. lib_ignore = ${common.lib_ignore}
  514. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  515. monitor_baud = 115200
  516. [env:workchoice-ecoplug-ota]
  517. platform = espressif8266
  518. framework = arduino
  519. board = esp01_1m
  520. board_flash_mode = dout
  521. lib_deps = ${common.lib_deps}
  522. lib_ignore = ${common.lib_ignore}
  523. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  524. upload_speed = 115200
  525. upload_port = "192.168.4.1"
  526. upload_flags = --auth=fibonacci --port 8266
  527. monitor_baud = 115200
  528. [env:jangoe-wifi-relay]
  529. platform = espressif8266
  530. framework = arduino
  531. board = esp12e
  532. lib_deps = ${common.lib_deps}
  533. lib_ignore = ${common.lib_ignore}
  534. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  535. monitor_baud = 115200
  536. [env:jangoe-wifi-relay-ota]
  537. platform = espressif8266
  538. framework = arduino
  539. board = esp12e
  540. lib_deps = ${common.lib_deps}
  541. lib_ignore = ${common.lib_ignore}
  542. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  543. upload_speed = 115200
  544. upload_port = "192.168.4.1"
  545. upload_flags = --auth=fibonacci --port 8266
  546. monitor_baud = 115200
  547. [env:openenergymonitor-mqtt-relay]
  548. platform = espressif8266
  549. framework = arduino
  550. board = esp_wroom_02
  551. lib_deps = ${common.lib_deps}
  552. lib_ignore = ${common.lib_ignore}
  553. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDS18B20_SUPPORT=1
  554. monitor_baud = 115200
  555. [env:openenergymonitor-mqtt-relay-ota]
  556. platform = espressif8266
  557. framework = arduino
  558. board = esp_wroom_02
  559. lib_deps = ${common.lib_deps}
  560. lib_ignore = ${common.lib_ignore}
  561. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDS18B20_SUPPORT=1
  562. upload_speed = 115200
  563. upload_port = "192.168.4.1"
  564. upload_flags = --auth=fibonacci --port 8266
  565. monitor_baud = 115200
  566. [env:jorgegarcia-wifi-relays]
  567. platform = espressif8266
  568. framework = arduino
  569. board = esp01_1m
  570. lib_deps = ${common.lib_deps}
  571. lib_ignore = ${common.lib_ignore}
  572. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  573. monitor_baud = 115200
  574. [env:jorgegarcia-wifi-relays-ota]
  575. platform = espressif8266
  576. framework = arduino
  577. board = esp01_1m
  578. lib_deps = ${common.lib_deps}
  579. lib_ignore = ${common.lib_ignore}
  580. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  581. upload_speed = 115200
  582. upload_port = "192.168.4.1"
  583. upload_flags = --auth=fibonacci --port 8266
  584. monitor_baud = 115200
  585. [env:aithinker-ai-light]
  586. platform = espressif8266
  587. framework = arduino
  588. board = esp01_1m
  589. board_flash_mode = dout
  590. lib_deps = ${common.lib_deps}
  591. lib_ignore = ${common.lib_ignore}
  592. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  593. monitor_baud = 115200
  594. [env:aithinker-ai-light-ota]
  595. platform = espressif8266
  596. framework = arduino
  597. board = esp01_1m
  598. board_flash_mode = dout
  599. lib_deps = ${common.lib_deps}
  600. lib_ignore = ${common.lib_ignore}
  601. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  602. upload_speed = 115200
  603. upload_port = "192.168.4.1"
  604. upload_flags = --auth=fibonacci --port 8266
  605. monitor_baud = 115200
  606. [env:magichome-led-controller]
  607. platform = espressif8266
  608. framework = arduino
  609. board = esp01_1m
  610. lib_deps = ${common.lib_deps}
  611. lib_ignore = ${common.lib_ignore}
  612. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  613. monitor_baud = 115200
  614. [env:magichome-led-controller-ota]
  615. platform = espressif8266
  616. framework = arduino
  617. board = esp01_1m
  618. lib_deps = ${common.lib_deps}
  619. lib_ignore = ${common.lib_ignore}
  620. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  621. upload_speed = 115200
  622. upload_port = "192.168.4.1"
  623. upload_flags = --auth=fibonacci --port 8266
  624. monitor_baud = 115200
  625. [env:huacanxing-h801]
  626. platform = espressif8266
  627. framework = arduino
  628. board = esp01_1m
  629. board_flash_mode = dout
  630. lib_deps = ${common.lib_deps}
  631. lib_ignore = ${common.lib_ignore}
  632. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  633. monitor_baud = 115200
  634. [env:huacanxing-h801-ota]
  635. platform = espressif8266
  636. framework = arduino
  637. board = esp01_1m
  638. board_flash_mode = dout
  639. lib_deps = ${common.lib_deps}
  640. lib_ignore = ${common.lib_ignore}
  641. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  642. upload_speed = 115200
  643. upload_port = "192.168.4.1"
  644. upload_flags = --auth=fibonacci --port 8266
  645. monitor_baud = 115200
  646. [env:itead-bnsz01]
  647. platform = espressif8266
  648. framework = arduino
  649. board = esp8285
  650. board_flash_mode = dout
  651. lib_deps = ${common.lib_deps}
  652. lib_ignore = ${common.lib_ignore}
  653. build_flags = ${common.build_flags_1m} -DITEAD_BN_SZ01
  654. monitor_baud = 115200
  655. [env:itead-bnsz01-ota]
  656. platform = espressif8266
  657. framework = arduino
  658. board = esp8285
  659. board_flash_mode = dout
  660. lib_deps = ${common.lib_deps}
  661. lib_ignore = ${common.lib_ignore}
  662. build_flags = ${common.build_flags_1m} -DITEAD_BN_SZ01
  663. upload_speed = 115200
  664. upload_port = "192.168.4.1"
  665. upload_flags = --auth=fibonacci --port 8266
  666. monitor_baud = 115200
  667. [env:wion-50055]
  668. platform = espressif8266
  669. framework = arduino
  670. board = esp01_1m
  671. board_flash_mode = dout
  672. lib_deps = ${common.lib_deps}
  673. lib_ignore = ${common.lib_ignore}
  674. build_flags = ${common.build_flags_1m} -DWION_50055
  675. monitor_baud = 115200
  676. [env:wion-50055-ota]
  677. platform = espressif8266
  678. framework = arduino
  679. board = esp01_1m
  680. board_flash_mode = dout
  681. lib_deps = ${common.lib_deps}
  682. lib_ignore = ${common.lib_ignore}
  683. build_flags = ${common.build_flags_1m} -DWION_50055
  684. upload_speed = 115200
  685. upload_port = "192.168.4.1"
  686. upload_flags = --auth=fibonacci --port 8266
  687. monitor_baud = 115200
  688. [env:exs-wifi-relay-v31]
  689. platform = espressif8266
  690. framework = arduino
  691. board = esp07
  692. board_flash_mode = dout
  693. lib_deps = ${common.lib_deps}
  694. lib_ignore = ${common.lib_ignore}
  695. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  696. monitor_baud = 115200
  697. [env:exs-wifi-relay-v31-ota]
  698. platform = espressif8266
  699. framework = arduino
  700. board = esp07
  701. board_flash_mode = dout
  702. lib_deps = ${common.lib_deps}
  703. lib_ignore = ${common.lib_ignore}
  704. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  705. upload_speed = 115200
  706. upload_port = "192.168.4.1"
  707. upload_flags = --auth=fibonacci --port 8266
  708. monitor_baud = 115200
  709. # ------------------------------------------------------------------------------
  710. # GENERIC OTA ENVIRONMENTS
  711. # ------------------------------------------------------------------------------
  712. [env:esp8285-1m-ota]
  713. platform = espressif8266
  714. framework = arduino
  715. board = esp8285
  716. board_flash_mode = dout
  717. lib_deps = ${common.lib_deps}
  718. lib_ignore = ${common.lib_ignore}
  719. build_flags = ${common.build_flags_1m} -D${env.BOARD}
  720. upload_speed = 115200
  721. upload_port = "${env.IP}"
  722. upload_flags = --auth=${env.AUTH} --port 8266
  723. [env:esp8266-1m-ota]
  724. platform = espressif8266
  725. framework = arduino
  726. board = esp01_1m
  727. board_flash_mode = dout
  728. lib_deps = ${common.lib_deps}
  729. lib_ignore = ${common.lib_ignore}
  730. build_flags = ${common.build_flags_1m} -D${env.BOARD}
  731. upload_speed = 115200
  732. upload_port = "${env.IP}"
  733. upload_flags = --auth=${env.AUTH} --port 8266
  734. [env:esp8266-4m-ota]
  735. platform = espressif8266
  736. framework = arduino
  737. board = esp12e
  738. board_flash_mode = dout
  739. lib_deps = ${common.lib_deps}
  740. lib_ignore = ${common.lib_ignore}
  741. build_flags = ${common.build_flags} -D${env.BOARD}
  742. upload_speed = 115200
  743. upload_port = "${env.IP}"
  744. upload_flags = --auth=${env.AUTH} --port 8266