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.

985 lines
27 KiB

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