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.

856 lines
23 KiB

7 years ago
  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.ESPURNA_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.2.0
  27. https://bitbucket.org/xoseperez/nofuss.git#0.2.5
  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
  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-dht22-ota]
  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 -DDHT_SUPPORT=1
  151. upload_speed = 115200
  152. upload_port = "192.168.4.1"
  153. upload_flags = --auth=fibonacci --port 8266
  154. monitor_baud = 115200
  155. [env:itead-sonoff-basic-ds18b20]
  156. platform = espressif8266
  157. framework = arduino
  158. board = esp01_1m
  159. board_flash_mode = dout
  160. lib_deps = ${common.lib_deps}
  161. lib_ignore = ${common.lib_ignore}
  162. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDS18B20_SUPPORT=1
  163. monitor_baud = 115200
  164. [env:itead-sonoff-rf]
  165. platform = espressif8266
  166. framework = arduino
  167. board = esp01_1m
  168. board_flash_mode = dout
  169. lib_deps = ${common.lib_deps}
  170. lib_ignore = ${common.lib_ignore}
  171. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  172. monitor_baud = 115200
  173. [env:itead-sonoff-rf-ota]
  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_RF
  181. upload_speed = 115200
  182. upload_port = "192.168.4.1"
  183. upload_flags = --auth=fibonacci --port 8266
  184. monitor_baud = 115200
  185. [env:itead-sonoff-pow]
  186. platform = espressif8266
  187. framework = arduino
  188. board = esp01_1m
  189. board_flash_mode = dout
  190. lib_deps = ${common.lib_deps}
  191. lib_ignore = ${common.lib_ignore}
  192. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  193. monitor_baud = 115200
  194. [env:itead-sonoff-pow-ota]
  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_POW
  202. upload_speed = 115200
  203. upload_port = "192.168.4.1"
  204. upload_flags = --auth=fibonacci --port 8266
  205. monitor_baud = 115200
  206. [env:itead-sonoff-dual]
  207. platform = espressif8266
  208. framework = arduino
  209. board = esp01_1m
  210. board_flash_mode = dout
  211. lib_deps = ${common.lib_deps}
  212. lib_ignore = ${common.lib_ignore}
  213. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  214. [env:itead-sonoff-dual-ota]
  215. platform = espressif8266
  216. framework = arduino
  217. board = esp01_1m
  218. board_flash_mode = dout
  219. lib_deps = ${common.lib_deps}
  220. lib_ignore = ${common.lib_ignore}
  221. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  222. upload_speed = 115200
  223. upload_port = "192.168.4.1"
  224. upload_flags = --auth=fibonacci --port 8266
  225. [env:itead-sonoff-4ch]
  226. platform = espressif8266
  227. framework = arduino
  228. board = esp8285
  229. board_flash_mode = dout
  230. lib_deps = ${common.lib_deps}
  231. lib_ignore = ${common.lib_ignore}
  232. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  233. monitor_baud = 115200
  234. [env:itead-sonoff-4ch-ota]
  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
  242. upload_speed = 115200
  243. upload_port = "192.168.4.1"
  244. upload_flags = --auth=fibonacci --port 8266
  245. monitor_baud = 115200
  246. [env:itead-sonoff-4ch-pro]
  247. platform = espressif8266
  248. framework = arduino
  249. board = esp8285
  250. board_flash_mode = dout
  251. lib_deps = ${common.lib_deps}
  252. lib_ignore = ${common.lib_ignore}
  253. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  254. monitor_baud = 115200
  255. [env:itead-sonoff-4ch-pro-ota]
  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_4CH_PRO
  263. upload_speed = 115200
  264. upload_port = "192.168.4.1"
  265. upload_flags = --auth=fibonacci --port 8266
  266. monitor_baud = 115200
  267. [env:itead-sonoff-touch]
  268. platform = espressif8266
  269. framework = arduino
  270. board = esp8285
  271. board_flash_mode = dout
  272. lib_deps = ${common.lib_deps}
  273. lib_ignore = ${common.lib_ignore}
  274. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  275. monitor_baud = 115200
  276. [env:itead-sonoff-touch-ota]
  277. platform = espressif8266
  278. framework = arduino
  279. board = esp8285
  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_TOUCH
  284. upload_speed = 115200
  285. upload_port = "192.168.4.1"
  286. upload_flags = --auth=fibonacci --port 8266
  287. monitor_baud = 115200
  288. [env:itead-sonoff-b1]
  289. platform = espressif8266
  290. framework = arduino
  291. board = esp01_1m
  292. board_flash_mode = dout
  293. lib_deps = ${common.lib_deps}
  294. lib_ignore = ${common.lib_ignore}
  295. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  296. monitor_baud = 115200
  297. [env:itead-sonoff-b1-ota]
  298. platform = espressif8266
  299. framework = arduino
  300. board = esp01_1m
  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_B1
  305. upload_speed = 115200
  306. upload_port = "192.168.4.1"
  307. upload_flags = --auth=fibonacci --port 8266
  308. monitor_baud = 115200
  309. [env:itead-sonoff-t1-1ch]
  310. platform = espressif8266
  311. framework = arduino
  312. board = esp8285
  313. board_flash_mode = dout
  314. lib_deps = ${common.lib_deps}
  315. lib_ignore = ${common.lib_ignore}
  316. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  317. monitor_baud = 115200
  318. [env:itead-sonoff-t1-1ch-ota]
  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_1CH
  326. upload_speed = 115200
  327. upload_port = "192.168.4.1"
  328. upload_flags = --auth=fibonacci --port 8266
  329. monitor_baud = 115200
  330. [env:itead-sonoff-t1-2ch]
  331. platform = espressif8266
  332. framework = arduino
  333. board = esp8285
  334. board_flash_mode = dout
  335. lib_deps = ${common.lib_deps}
  336. lib_ignore = ${common.lib_ignore}
  337. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  338. monitor_baud = 115200
  339. [env:itead-sonoff-t1-2ch-ota]
  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_2CH
  347. upload_speed = 115200
  348. upload_port = "192.168.4.1"
  349. upload_flags = --auth=fibonacci --port 8266
  350. monitor_baud = 115200
  351. [env:itead-sonoff-t1-3ch]
  352. platform = espressif8266
  353. framework = arduino
  354. board = esp8285
  355. board_flash_mode = dout
  356. lib_deps = ${common.lib_deps}
  357. lib_ignore = ${common.lib_ignore}
  358. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  359. monitor_baud = 115200
  360. [env:itead-sonoff-t1-3ch-ota]
  361. platform = espressif8266
  362. framework = arduino
  363. board = esp8285
  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_T1_3CH
  368. upload_speed = 115200
  369. upload_port = "192.168.4.1"
  370. upload_flags = --auth=fibonacci --port 8266
  371. monitor_baud = 115200
  372. [env:itead-sonoff-led]
  373. platform = espressif8266
  374. framework = arduino
  375. board = esp01_1m
  376. board_flash_mode = dout
  377. lib_deps = ${common.lib_deps}
  378. lib_ignore = ${common.lib_ignore}
  379. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  380. monitor_baud = 115200
  381. [env:itead-sonoff-led-ota]
  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_LED
  389. upload_speed = 115200
  390. upload_port = "192.168.4.1"
  391. upload_flags = --auth=fibonacci --port 8266
  392. monitor_baud = 115200
  393. [env:itead-sonoff-rfbridge]
  394. platform = espressif8266
  395. framework = arduino
  396. board = esp01_1m
  397. board_flash_mode = dout
  398. lib_deps = ${common.lib_deps}
  399. lib_ignore = ${common.lib_ignore}
  400. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  401. monitor_baud = 19200
  402. [env:itead-sonoff-rfbridge-ota]
  403. platform = espressif8266
  404. framework = arduino
  405. board = esp01_1m
  406. board_flash_mode = dout
  407. lib_deps = ${common.lib_deps}
  408. lib_ignore = ${common.lib_ignore}
  409. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  410. upload_speed = 115200
  411. upload_port = "192.168.4.1"
  412. upload_flags = --auth=Algernon1 --port 8266
  413. monitor_baud = 19200
  414. # ------------------------------------------------------------------------------
  415. [env:itead-slampher]
  416. platform = espressif8266
  417. framework = arduino
  418. board = esp01_1m
  419. board_flash_mode = dout
  420. lib_deps = ${common.lib_deps}
  421. lib_ignore = ${common.lib_ignore}
  422. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  423. monitor_baud = 115200
  424. [env:itead-slampher-ota]
  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_SLAMPHER
  432. upload_speed = 115200
  433. upload_port = "192.168.4.1"
  434. upload_flags = --auth=fibonacci --port 8266
  435. monitor_baud = 115200
  436. [env:itead-s20]
  437. platform = espressif8266
  438. framework = arduino
  439. board = esp01_1m
  440. board_flash_mode = dout
  441. lib_deps = ${common.lib_deps}
  442. lib_ignore = ${common.lib_ignore}
  443. build_flags = ${common.build_flags_1m} -DITEAD_S20
  444. monitor_baud = 115200
  445. [env:itead-s20-ota]
  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_S20
  453. upload_speed = 115200
  454. upload_port = "192.168.4.1"
  455. upload_flags = --auth=fibonacci --port 8266
  456. monitor_baud = 115200
  457. [env:itead-1ch-inching]
  458. platform = espressif8266
  459. framework = arduino
  460. board = esp01_1m
  461. board_flash_mode = dout
  462. lib_deps = ${common.lib_deps}
  463. lib_ignore = ${common.lib_ignore}
  464. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  465. monitor_baud = 115200
  466. [env:itead-1ch-inching-ota]
  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_1CH_INCHING
  474. upload_speed = 115200
  475. upload_port = "192.168.4.1"
  476. upload_flags = --auth=fibonacci --port 8266
  477. monitor_baud = 115200
  478. [env:itead-motor]
  479. platform = espressif8266
  480. framework = arduino
  481. board = esp01_1m
  482. board_flash_mode = dout
  483. lib_deps = ${common.lib_deps}
  484. lib_ignore = ${common.lib_ignore}
  485. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  486. monitor_baud = 115200
  487. [env:itead-motor-ota]
  488. platform = espressif8266
  489. framework = arduino
  490. board = esp01_1m
  491. board_flash_mode = dout
  492. lib_deps = ${common.lib_deps}
  493. lib_ignore = ${common.lib_ignore}
  494. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  495. upload_speed = 115200
  496. upload_port = "192.168.4.1"
  497. upload_flags = --auth=fibonacci --port 8266
  498. monitor_baud = 115200
  499. # ------------------------------------------------------------------------------
  500. [env:electrodragon-wifi-iot]
  501. platform = espressif8266
  502. framework = arduino
  503. board = esp12e
  504. lib_deps = ${common.lib_deps}
  505. lib_ignore = ${common.lib_ignore}
  506. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  507. monitor_baud = 115200
  508. [env:electrodragon-wifi-iot-ota]
  509. platform = espressif8266
  510. framework = arduino
  511. board = esp12e
  512. lib_deps = ${common.lib_deps}
  513. lib_ignore = ${common.lib_ignore}
  514. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  515. upload_speed = 115200
  516. upload_port = "192.168.4.1"
  517. upload_flags = --auth=fibonacci --port 8266
  518. monitor_baud = 115200
  519. [env:workchoice-ecoplug]
  520. platform = espressif8266
  521. framework = arduino
  522. board = esp01_1m
  523. board_flash_mode = dout
  524. lib_deps = ${common.lib_deps}
  525. lib_ignore = ${common.lib_ignore}
  526. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  527. monitor_baud = 115200
  528. [env:workchoice-ecoplug-ota]
  529. platform = espressif8266
  530. framework = arduino
  531. board = esp01_1m
  532. board_flash_mode = dout
  533. lib_deps = ${common.lib_deps}
  534. lib_ignore = ${common.lib_ignore}
  535. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  536. upload_speed = 115200
  537. upload_port = "192.168.4.1"
  538. upload_flags = --auth=fibonacci --port 8266
  539. monitor_baud = 115200
  540. [env:jangoe-wifi-relay]
  541. platform = espressif8266
  542. framework = arduino
  543. board = esp12e
  544. lib_deps = ${common.lib_deps}
  545. lib_ignore = ${common.lib_ignore}
  546. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  547. monitor_baud = 115200
  548. [env:jangoe-wifi-relay-ota]
  549. platform = espressif8266
  550. framework = arduino
  551. board = esp12e
  552. lib_deps = ${common.lib_deps}
  553. lib_ignore = ${common.lib_ignore}
  554. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  555. upload_speed = 115200
  556. upload_port = "192.168.4.1"
  557. upload_flags = --auth=fibonacci --port 8266
  558. monitor_baud = 115200
  559. [env:openenergymonitor-mqtt-relay]
  560. platform = espressif8266
  561. framework = arduino
  562. board = esp_wroom_02
  563. lib_deps = ${common.lib_deps}
  564. lib_ignore = ${common.lib_ignore}
  565. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDS18B20_SUPPORT=1
  566. monitor_baud = 115200
  567. [env:openenergymonitor-mqtt-relay-ota]
  568. platform = espressif8266
  569. framework = arduino
  570. board = esp_wroom_02
  571. lib_deps = ${common.lib_deps}
  572. lib_ignore = ${common.lib_ignore}
  573. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDS18B20_SUPPORT=1
  574. upload_speed = 115200
  575. upload_port = "192.168.4.1"
  576. upload_flags = --auth=fibonacci --port 8266
  577. monitor_baud = 115200
  578. [env:jorgegarcia-wifi-relays]
  579. platform = espressif8266
  580. framework = arduino
  581. board = esp01_1m
  582. lib_deps = ${common.lib_deps}
  583. lib_ignore = ${common.lib_ignore}
  584. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  585. monitor_baud = 115200
  586. [env:jorgegarcia-wifi-relays-ota]
  587. platform = espressif8266
  588. framework = arduino
  589. board = esp01_1m
  590. lib_deps = ${common.lib_deps}
  591. lib_ignore = ${common.lib_ignore}
  592. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  593. upload_speed = 115200
  594. upload_port = "192.168.4.1"
  595. upload_flags = --auth=fibonacci --port 8266
  596. monitor_baud = 115200
  597. [env:aithinker-ai-light]
  598. platform = espressif8266
  599. framework = arduino
  600. board = esp01_1m
  601. board_flash_mode = dout
  602. lib_deps = ${common.lib_deps}
  603. lib_ignore = ${common.lib_ignore}
  604. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  605. monitor_baud = 115200
  606. [env:aithinker-ai-light-ota]
  607. platform = espressif8266
  608. framework = arduino
  609. board = esp01_1m
  610. board_flash_mode = dout
  611. lib_deps = ${common.lib_deps}
  612. lib_ignore = ${common.lib_ignore}
  613. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  614. upload_speed = 115200
  615. upload_port = "192.168.4.1"
  616. upload_flags = --auth=fibonacci --port 8266
  617. monitor_baud = 115200
  618. [env:magichome-led-controller]
  619. platform = espressif8266
  620. framework = arduino
  621. board = esp01_1m
  622. lib_deps = ${common.lib_deps}
  623. lib_ignore = ${common.lib_ignore}
  624. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  625. monitor_baud = 115200
  626. [env:magichome-led-controller-ota]
  627. platform = espressif8266
  628. framework = arduino
  629. board = esp01_1m
  630. lib_deps = ${common.lib_deps}
  631. lib_ignore = ${common.lib_ignore}
  632. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  633. upload_speed = 115200
  634. upload_port = "192.168.4.1"
  635. upload_flags = --auth=fibonacci --port 8266
  636. monitor_baud = 115200
  637. [env:huacanxing-h801]
  638. platform = espressif8266
  639. framework = arduino
  640. board = esp01_1m
  641. board_flash_mode = dout
  642. lib_deps = ${common.lib_deps}
  643. lib_ignore = ${common.lib_ignore}
  644. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  645. monitor_baud = 115200
  646. [env:huacanxing-h801-ota]
  647. platform = espressif8266
  648. framework = arduino
  649. board = esp01_1m
  650. board_flash_mode = dout
  651. lib_deps = ${common.lib_deps}
  652. lib_ignore = ${common.lib_ignore}
  653. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  654. upload_speed = 115200
  655. upload_port = "192.168.4.1"
  656. upload_flags = --auth=fibonacci --port 8266
  657. monitor_baud = 115200
  658. [env:huacanxing-h802]
  659. platform = espressif8266
  660. framework = arduino
  661. board = esp01_1m
  662. board_flash_mode = dout
  663. lib_deps = ${common.lib_deps}
  664. lib_ignore = ${common.lib_ignore}
  665. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H802 -DDEBUG_PORT=Serial1
  666. monitor_baud = 115200
  667. [env:huacanxing-h802-ota]
  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 = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H802 -DDEBUG_PORT=Serial1
  675. upload_speed = 115200
  676. upload_port = "192.168.4.1"
  677. upload_flags = --auth=fibonacci --port 8266
  678. monitor_baud = 115200
  679. [env:itead-bnsz01]
  680. platform = espressif8266
  681. framework = arduino
  682. board = esp8285
  683. board_flash_mode = dout
  684. lib_deps = ${common.lib_deps}
  685. lib_ignore = ${common.lib_ignore}
  686. build_flags = ${common.build_flags_1m} -DITEAD_BNSZ01
  687. monitor_baud = 115200
  688. [env:itead-bnsz01-ota]
  689. platform = espressif8266
  690. framework = arduino
  691. board = esp8285
  692. board_flash_mode = dout
  693. lib_deps = ${common.lib_deps}
  694. lib_ignore = ${common.lib_ignore}
  695. build_flags = ${common.build_flags_1m} -DITEAD_BNSZ01
  696. upload_speed = 115200
  697. upload_port = "192.168.4.1"
  698. upload_flags = --auth=fibonacci --port 8266
  699. monitor_baud = 115200
  700. [env:wion-50055]
  701. platform = espressif8266
  702. framework = arduino
  703. board = esp01_1m
  704. board_flash_mode = dout
  705. lib_deps = ${common.lib_deps}
  706. lib_ignore = ${common.lib_ignore}
  707. build_flags = ${common.build_flags_1m} -DWION_50055
  708. monitor_baud = 115200
  709. [env:wion-50055-ota]
  710. platform = espressif8266
  711. framework = arduino
  712. board = esp01_1m
  713. board_flash_mode = dout
  714. lib_deps = ${common.lib_deps}
  715. lib_ignore = ${common.lib_ignore}
  716. build_flags = ${common.build_flags_1m} -DWION_50055
  717. upload_speed = 115200
  718. upload_port = "192.168.4.1"
  719. upload_flags = --auth=fibonacci --port 8266
  720. monitor_baud = 115200
  721. [env:exs-wifi-relay-v31]
  722. platform = espressif8266
  723. framework = arduino
  724. board = esp07
  725. board_flash_mode = dout
  726. lib_deps = ${common.lib_deps}
  727. lib_ignore = ${common.lib_ignore}
  728. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  729. monitor_baud = 115200
  730. [env:exs-wifi-relay-v31-ota]
  731. platform = espressif8266
  732. framework = arduino
  733. board = esp07
  734. board_flash_mode = dout
  735. lib_deps = ${common.lib_deps}
  736. lib_ignore = ${common.lib_ignore}
  737. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  738. upload_speed = 115200
  739. upload_port = "192.168.4.1"
  740. upload_flags = --auth=fibonacci --port 8266
  741. monitor_baud = 115200
  742. # ------------------------------------------------------------------------------
  743. # GENERIC OTA ENVIRONMENTS
  744. # ------------------------------------------------------------------------------
  745. [env:esp8285-1m-ota]
  746. platform = espressif8266
  747. framework = arduino
  748. board = esp8285
  749. board_flash_mode = dout
  750. lib_deps = ${common.lib_deps}
  751. lib_ignore = ${common.lib_ignore}
  752. build_flags = ${common.build_flags_1m} -D${env.ESPURNA_BOARD}
  753. upload_speed = 115200
  754. upload_port = "${env.ESPURNA_IP}"
  755. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266
  756. [env:esp8266-1m-ota]
  757. platform = espressif8266
  758. framework = arduino
  759. board = esp01_1m
  760. board_flash_mode = dout
  761. lib_deps = ${common.lib_deps}
  762. lib_ignore = ${common.lib_ignore}
  763. build_flags = ${common.build_flags_1m} -D${env.ESPURNA_BOARD}
  764. upload_speed = 115200
  765. upload_port = "${env.ESPURNA_IP}"
  766. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266
  767. [env:esp8266-4m-ota]
  768. platform = espressif8266
  769. framework = arduino
  770. board = esp12e
  771. board_flash_mode = dout
  772. lib_deps = ${common.lib_deps}
  773. lib_ignore = ${common.lib_ignore}
  774. build_flags = ${common.build_flags} -D${env.ESPURNA_BOARD}
  775. upload_speed = 115200
  776. upload_port = "${env.ESPURNA_IP}"
  777. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266