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.

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