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.

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