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.

1055 lines
29 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-20]
  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_20
  673. monitor_baud = 115200
  674. [env:magichome-led-controller-20-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_20
  682. upload_port = "192.168.4.1"
  683. upload_flags = --auth=fibonacci --port 8266
  684. monitor_baud = 115200
  685. [env:huacanxing-h801]
  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 = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  693. monitor_baud = 115200
  694. [env:huacanxing-h801-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 = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  702. upload_speed = 115200
  703. upload_port = "192.168.4.1"
  704. upload_flags = --auth=fibonacci --port 8266
  705. monitor_baud = 115200
  706. [env:huacanxing-h802]
  707. platform = ${common.platform}
  708. framework = arduino
  709. board = esp01_1m
  710. board_flash_mode = dout
  711. lib_deps = ${common.lib_deps}
  712. lib_ignore = ${common.lib_ignore}
  713. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H802 -DDEBUG_PORT=Serial1
  714. monitor_baud = 115200
  715. [env:huacanxing-h802-ota]
  716. platform = ${common.platform}
  717. framework = arduino
  718. board = esp01_1m
  719. board_flash_mode = dout
  720. lib_deps = ${common.lib_deps}
  721. lib_ignore = ${common.lib_ignore}
  722. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H802 -DDEBUG_PORT=Serial1
  723. upload_speed = 115200
  724. upload_port = "192.168.4.1"
  725. upload_flags = --auth=fibonacci --port 8266
  726. monitor_baud = 115200
  727. [env:arilux-al-lc06]
  728. platform = ${common.platform}
  729. framework = arduino
  730. board = esp01_1m
  731. board_flash_mode = dout
  732. lib_deps = ${common.lib_deps}
  733. lib_ignore = ${common.lib_ignore}
  734. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DARILUX_AL_LC06
  735. monitor_baud = 115200
  736. [env:arilux-al-lc06-ota]
  737. platform = ${common.platform}
  738. framework = arduino
  739. board = esp01_1m
  740. board_flash_mode = dout
  741. lib_deps = ${common.lib_deps}
  742. lib_ignore = ${common.lib_ignore}
  743. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DARILUX_AL_LC06
  744. upload_speed = 115200
  745. upload_port = "192.168.4.1"
  746. upload_flags = --auth=fibonacci --port 8266
  747. monitor_baud = 115200
  748. [env:itead-bnsz01]
  749. platform = ${common.platform}
  750. framework = arduino
  751. board = esp01_1m
  752. board_flash_mode = dout
  753. lib_deps = ${common.lib_deps}
  754. lib_ignore = ${common.lib_ignore}
  755. build_flags = ${common.build_flags_1m} -DITEAD_BNSZ01
  756. monitor_baud = 115200
  757. [env:itead-bnsz01-ota]
  758. platform = ${common.platform}
  759. framework = arduino
  760. board = esp01_1m
  761. board_flash_mode = dout
  762. lib_deps = ${common.lib_deps}
  763. lib_ignore = ${common.lib_ignore}
  764. build_flags = ${common.build_flags_1m} -DITEAD_BNSZ01
  765. upload_speed = 115200
  766. upload_port = "192.168.4.1"
  767. upload_flags = --auth=fibonacci --port 8266
  768. monitor_baud = 115200
  769. [env:wion-50055]
  770. platform = ${common.platform}
  771. framework = arduino
  772. board = esp01_1m
  773. board_flash_mode = dout
  774. lib_deps = ${common.lib_deps}
  775. lib_ignore = ${common.lib_ignore}
  776. build_flags = ${common.build_flags_1m} -DWION_50055
  777. monitor_baud = 115200
  778. [env:wion-50055-ota]
  779. platform = ${common.platform}
  780. framework = arduino
  781. board = esp01_1m
  782. board_flash_mode = dout
  783. lib_deps = ${common.lib_deps}
  784. lib_ignore = ${common.lib_ignore}
  785. build_flags = ${common.build_flags_1m} -DWION_50055
  786. upload_speed = 115200
  787. upload_port = "192.168.4.1"
  788. upload_flags = --auth=fibonacci --port 8266
  789. monitor_baud = 115200
  790. [env:exs-wifi-relay-v31]
  791. platform = ${common.platform}
  792. framework = arduino
  793. board = esp07
  794. board_flash_mode = dout
  795. lib_deps = ${common.lib_deps}
  796. lib_ignore = ${common.lib_ignore}
  797. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  798. monitor_baud = 115200
  799. [env:exs-wifi-relay-v31-ota]
  800. platform = ${common.platform}
  801. framework = arduino
  802. board = esp07
  803. board_flash_mode = dout
  804. lib_deps = ${common.lib_deps}
  805. lib_ignore = ${common.lib_ignore}
  806. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  807. upload_speed = 115200
  808. upload_port = "192.168.4.1"
  809. upload_flags = --auth=fibonacci --port 8266
  810. monitor_baud = 115200
  811. [env:wemos-v9261f]
  812. platform = ${common.platform}
  813. framework = arduino
  814. board = d1_mini
  815. lib_deps = ${common.lib_deps}
  816. lib_ignore = ${common.lib_ignore}
  817. build_flags = ${common.build_flags} -DGENERIC_V9261F
  818. upload_speed = 460800
  819. monitor_baud = 115200
  820. [env:wemos-v9261f-ota]
  821. platform = ${common.platform}
  822. framework = arduino
  823. board = d1_mini
  824. lib_deps = ${common.lib_deps}
  825. lib_ignore = ${common.lib_ignore}
  826. build_flags = ${common.build_flags} -DGENERIC_V9261F
  827. upload_speed = 115200
  828. upload_port = "192.168.4.1"
  829. upload_flags = --auth=fibonacci --port 8266
  830. monitor_baud = 115200
  831. [env:esp01-v9261f]
  832. platform = ${common.platform}
  833. framework = arduino
  834. board = esp01_1m
  835. board_flash_mode = dout
  836. lib_deps = ${common.lib_deps}
  837. lib_ignore = ${common.lib_ignore}
  838. build_flags = ${common.build_flags_1m} -DGENERIC_V9261F
  839. monitor_baud = 115200
  840. [env:esp01-v9261f-ota]
  841. platform = ${common.platform}
  842. framework = arduino
  843. board = esp01_1m
  844. board_flash_mode = dout
  845. lib_deps = ${common.lib_deps}
  846. lib_ignore = ${common.lib_ignore}
  847. build_flags = ${common.build_flags_1m} -DGENERIC_V9261F
  848. upload_speed = 115200
  849. upload_port = "192.168.4.1"
  850. upload_flags = --auth=fibonacci --port 8266
  851. monitor_baud = 115200
  852. [env:esp01-ech1560]
  853. platform = ${common.platform}
  854. framework = arduino
  855. board = esp01_1m
  856. board_flash_mode = dout
  857. lib_deps = ${common.lib_deps}
  858. lib_ignore = ${common.lib_ignore}
  859. build_flags = ${common.build_flags_1m} -DGENERIC_ECH1560
  860. monitor_baud = 115200
  861. [env:esp01-ech1560-ota]
  862. platform = ${common.platform}
  863. framework = arduino
  864. board = esp01_1m
  865. board_flash_mode = dout
  866. lib_deps = ${common.lib_deps}
  867. lib_ignore = ${common.lib_ignore}
  868. build_flags = ${common.build_flags_1m} -DGENERIC_ECH1560
  869. upload_speed = 115200
  870. upload_port = "192.168.4.1"
  871. upload_flags = --auth=fibonacci --port 8266
  872. monitor_baud = 115200
  873. [env:mancavemade-esplive]
  874. platform = ${common.platform}
  875. framework = arduino
  876. board = d1_mini
  877. lib_deps = ${common.lib_deps}
  878. lib_ignore = ${common.lib_ignore}
  879. build_flags = ${common.build_flags} -DMANCAVEMADE_ESPLIVE
  880. upload_speed = 460800
  881. monitor_baud = 115200
  882. [env:mancavemade-esplive-ota]
  883. platform = ${common.platform}
  884. framework = arduino
  885. board = d1_mini
  886. lib_deps = ${common.lib_deps}
  887. lib_ignore = ${common.lib_ignore}
  888. build_flags = ${common.build_flags} -DMANCAVEMADE_ESPLIVE
  889. upload_speed = 460800
  890. upload_port = "192.168.4.1"
  891. upload_flags = --auth=fibonacci --port 8266
  892. monitor_baud = 115200
  893. [env:intermittech-quinled]
  894. platform = ${common.platform}
  895. framework = arduino
  896. board = esp01_1m
  897. board_flash_mode = dout
  898. lib_deps = ${common.lib_deps}
  899. lib_ignore = ${common.lib_ignore}
  900. build_flags = ${common.build_flags_1m} -DINTERMITTECH_QUINLED
  901. monitor_baud = 115200
  902. [env:intermittech-quinled-ota]
  903. platform = ${common.platform}
  904. framework = arduino
  905. board = esp01_1m
  906. board_flash_mode = dout
  907. lib_deps = ${common.lib_deps}
  908. lib_ignore = ${common.lib_ignore}
  909. build_flags = ${common.build_flags_1m} -DINTERMITTECH_QUINLED
  910. upload_speed = 115200
  911. upload_port = "192.168.4.1"
  912. upload_flags = --auth=fibonacci --port 8266
  913. monitor_baud = 115200
  914. [env:sm_pw702u]
  915. platform = espressif8266
  916. framework = arduino
  917. board = esp12e
  918. board_flash_mode = dout
  919. lib_deps = ${common.lib_deps}
  920. lib_ignore = ${common.lib_ignore}
  921. build_flags = ${common.build_flags_1m} -DSM_PW702U
  922. monitor_baud = 115200
  923. [env:sm_pw702u-ota]
  924. platform = espressif8266
  925. framework = arduino
  926. board = esp12e
  927. board_flash_mode = dout
  928. lib_deps = ${common.lib_deps}
  929. lib_ignore = ${common.lib_ignore}
  930. build_flags = ${common.build_flags_1m} -DSM_PW702U
  931. upload_speed = 115200
  932. upload_port = "192.168.4.1"
  933. upload_flags = --auth=fibonacci --port 8266
  934. monitor_baud = 115200
  935. # ------------------------------------------------------------------------------
  936. # GENERIC OTA ENVIRONMENTS
  937. # ------------------------------------------------------------------------------
  938. [env:esp8266-1m-ota]
  939. platform = ${common.platform}
  940. framework = arduino
  941. board = esp01_1m
  942. board_flash_mode = dout
  943. lib_deps = ${common.lib_deps}
  944. lib_ignore = ${common.lib_ignore}
  945. build_flags = ${common.build_flags_1m} -D${env.ESPURNA_BOARD}
  946. upload_speed = 115200
  947. upload_port = "${env.ESPURNA_IP}"
  948. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266
  949. [env:esp8266-4m-ota]
  950. platform = ${common.platform}
  951. framework = arduino
  952. board = esp12e
  953. board_flash_mode = dout
  954. lib_deps = ${common.lib_deps}
  955. lib_ignore = ${common.lib_ignore}
  956. build_flags = ${common.build_flags} -D${env.ESPURNA_BOARD}
  957. upload_speed = 115200
  958. upload_port = "${env.ESPURNA_IP}"
  959. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266