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.

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