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.

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