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.

1007 lines
28 KiB

7 years ago
  1. [platformio]
  2. env_default = nodemcu-lolin
  3. src_dir = espurna
  4. data_dir = espurna/data
  5. [common]
  6. platform = espressif8266
  7. #platform = espressif8266_stage
  8. build_flags = -g -DMQTT_MAX_PACKET_SIZE=400 ${env.ESPURNA_FLAGS}
  9. debug_flags = -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
  10. build_flags_512k = ${common.build_flags} -Wl,-Tesp8266.flash.512k0.ld
  11. build_flags_1m = ${common.build_flags} -Wl,-Tesp8266.flash.1m0.ld
  12. #https://github.com/me-no-dev/ESPAsyncTCP#036ea44
  13. lib_deps =
  14. DHT sensor library
  15. Adafruit Unified Sensor
  16. https://github.com/xoseperez/Time
  17. ArduinoJson
  18. https://github.com/me-no-dev/ESPAsyncTCP#9b0cc37
  19. https://github.com/me-no-dev/ESPAsyncWebServer#313f337
  20. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  21. PubSubClient
  22. Embedis
  23. NtpClientLib
  24. OneWire
  25. DallasTemperature
  26. Brzo I2C
  27. EspSoftwareSerial
  28. https://bitbucket.org/xoseperez/justwifi.git#1.1.4
  29. https://bitbucket.org/xoseperez/hlw8012.git#1.1.0
  30. https://bitbucket.org/xoseperez/fauxmoesp.git#2.2.0
  31. https://bitbucket.org/xoseperez/nofuss.git#0.2.5
  32. https://bitbucket.org/xoseperez/emonliteesp.git#0.2.0
  33. https://bitbucket.org/xoseperez/debounceevent.git#2.0.1
  34. https://github.com/xoseperez/my9291#2.0.0
  35. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  36. lib_ignore =
  37. # ------------------------------------------------------------------------------
  38. [env:wemos-d1mini-relayshield]
  39. platform = ${common.platform}
  40. framework = arduino
  41. board = d1_mini
  42. lib_deps = ${common.lib_deps}
  43. lib_ignore = ${common.lib_ignore}
  44. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  45. upload_speed = 460800
  46. monitor_baud = 115200
  47. [env:wemos-d1mini-relayshield-ssl]
  48. platform = espressif8266_stage
  49. framework = arduino
  50. board = d1_mini
  51. lib_deps = ${common.lib_deps}
  52. lib_ignore = ${common.lib_ignore}
  53. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1
  54. upload_speed = 460800
  55. monitor_baud = 115200
  56. [env:wemos-d1mini-relayshield-ota]
  57. platform = ${common.platform}
  58. framework = arduino
  59. board = d1_mini
  60. lib_deps = ${common.lib_deps}
  61. lib_ignore = ${common.lib_ignore}
  62. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  63. upload_speed = 115200
  64. upload_port = "192.168.4.1"
  65. upload_flags = --auth=fibonacci --port 8266
  66. [env:nodemcu-lolin]
  67. platform = ${common.platform}
  68. framework = arduino
  69. board = nodemcuv2
  70. lib_deps = ${common.lib_deps}
  71. lib_ignore = ${common.lib_ignore}
  72. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  73. upload_speed = 460800
  74. monitor_baud = 115200
  75. [env:nodemcu-lolin-ssl]
  76. platform = espressif8266_stage
  77. framework = arduino
  78. board = nodemcuv2
  79. lib_deps = ${common.lib_deps}
  80. lib_ignore = ${common.lib_ignore}
  81. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1
  82. upload_speed = 460800
  83. monitor_baud = 115200
  84. [env:nodemcu-lolin-ota]
  85. platform = ${common.platform}
  86. framework = arduino
  87. board = nodemcuv2
  88. lib_deps = ${common.lib_deps}
  89. lib_ignore = ${common.lib_ignore}
  90. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  91. upload_speed = 115200
  92. upload_port = "192.168.4.1"
  93. upload_flags = --auth=fibonacci --port 8266
  94. monitor_baud = 115200
  95. # ------------------------------------------------------------------------------
  96. [env:tinkerman-espurna-h06]
  97. platform = ${common.platform}
  98. framework = arduino
  99. board = esp12e
  100. lib_deps = ${common.lib_deps}
  101. lib_ignore = ${common.lib_ignore}
  102. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H06
  103. upload_speed = 460800
  104. monitor_baud = 115200
  105. [env:tinkerman-espurna-h06-ota]
  106. platform = ${common.platform}
  107. framework = arduino
  108. board = esp12e
  109. lib_deps = ${common.lib_deps}
  110. lib_ignore = ${common.lib_ignore}
  111. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H06
  112. upload_speed = 115200
  113. upload_port = "192.168.4.1"
  114. upload_flags = --auth=fibonacci --port 8266
  115. monitor_baud = 115200
  116. [env:tinkerman-espurna-h07]
  117. platform = ${common.platform}
  118. framework = arduino
  119. board = esp12e
  120. lib_deps = ${common.lib_deps}
  121. lib_ignore = ${common.lib_ignore}
  122. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H07
  123. upload_speed = 460800
  124. monitor_baud = 115200
  125. [env:tinkerman-espurna-h07-ota]
  126. platform = ${common.platform}
  127. framework = arduino
  128. board = esp12e
  129. lib_deps = ${common.lib_deps}
  130. lib_ignore = ${common.lib_ignore}
  131. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H07
  132. upload_speed = 115200
  133. upload_port = "192.168.4.1"
  134. upload_flags = --auth=fibonacci --port 8266
  135. monitor_baud = 115200
  136. # ------------------------------------------------------------------------------
  137. [env:itead-sonoff-basic]
  138. platform = ${common.platform}
  139. framework = arduino
  140. board = esp01_1m
  141. board_flash_mode = dout
  142. lib_deps = ${common.lib_deps}
  143. lib_ignore = ${common.lib_ignore}
  144. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  145. monitor_baud = 115200
  146. [env:itead-sonoff-basic-ota]
  147. platform = ${common.platform}
  148. framework = arduino
  149. board = esp01_1m
  150. board_flash_mode = dout
  151. lib_deps = ${common.lib_deps}
  152. lib_ignore = ${common.lib_ignore}
  153. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  154. upload_speed = 115200
  155. upload_port = "192.168.4.1"
  156. upload_flags = --auth=fibonacci --port 8266
  157. monitor_baud = 115200
  158. [env:itead-sonoff-basic-dht22]
  159. platform = ${common.platform}
  160. framework = arduino
  161. board = esp01_1m
  162. board_flash_mode = dout
  163. lib_deps = ${common.lib_deps}
  164. lib_ignore = ${common.lib_ignore}
  165. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  166. monitor_baud = 115200
  167. [env:itead-sonoff-basic-dht22-ota]
  168. platform = ${common.platform}
  169. framework = arduino
  170. board = esp01_1m
  171. board_flash_mode = dout
  172. lib_deps = ${common.lib_deps}
  173. lib_ignore = ${common.lib_ignore}
  174. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  175. upload_speed = 115200
  176. upload_port = "192.168.4.1"
  177. upload_flags = --auth=fibonacci --port 8266
  178. monitor_baud = 115200
  179. [env:itead-sonoff-basic-ds18b20]
  180. platform = ${common.platform}
  181. framework = arduino
  182. board = esp01_1m
  183. board_flash_mode = dout
  184. lib_deps = ${common.lib_deps}
  185. lib_ignore = ${common.lib_ignore}
  186. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDS18B20_SUPPORT=1
  187. monitor_baud = 115200
  188. [env:itead-sonoff-rf]
  189. platform = ${common.platform}
  190. framework = arduino
  191. board = esp01_1m
  192. board_flash_mode = dout
  193. lib_deps = ${common.lib_deps}
  194. lib_ignore = ${common.lib_ignore}
  195. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  196. monitor_baud = 115200
  197. [env:itead-sonoff-rf-ota]
  198. platform = ${common.platform}
  199. framework = arduino
  200. board = esp01_1m
  201. board_flash_mode = dout
  202. lib_deps = ${common.lib_deps}
  203. lib_ignore = ${common.lib_ignore}
  204. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  205. upload_speed = 115200
  206. upload_port = "192.168.4.1"
  207. upload_flags = --auth=fibonacci --port 8266
  208. monitor_baud = 115200
  209. [env:itead-sonoff-pow]
  210. platform = ${common.platform}
  211. framework = arduino
  212. board = esp01_1m
  213. board_flash_mode = dout
  214. lib_deps = ${common.lib_deps}
  215. lib_ignore = ${common.lib_ignore}
  216. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  217. monitor_baud = 115200
  218. [env:itead-sonoff-pow-ota]
  219. platform = ${common.platform}
  220. framework = arduino
  221. board = esp01_1m
  222. board_flash_mode = dout
  223. lib_deps = ${common.lib_deps}
  224. lib_ignore = ${common.lib_ignore}
  225. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  226. upload_speed = 115200
  227. upload_port = "192.168.4.1"
  228. upload_flags = --auth=fibonacci --port 8266
  229. monitor_baud = 115200
  230. [env:itead-sonoff-dual]
  231. platform = ${common.platform}
  232. framework = arduino
  233. board = esp01_1m
  234. board_flash_mode = dout
  235. lib_deps = ${common.lib_deps}
  236. lib_ignore = ${common.lib_ignore}
  237. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  238. [env:itead-sonoff-dual-ota]
  239. platform = ${common.platform}
  240. framework = arduino
  241. board = esp01_1m
  242. board_flash_mode = dout
  243. lib_deps = ${common.lib_deps}
  244. lib_ignore = ${common.lib_ignore}
  245. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  246. upload_speed = 115200
  247. upload_port = "192.168.4.1"
  248. upload_flags = --auth=fibonacci --port 8266
  249. [env:itead-sonoff-4ch]
  250. platform = ${common.platform}
  251. framework = arduino
  252. board = esp01_1m
  253. board_flash_mode = dout
  254. lib_deps = ${common.lib_deps}
  255. lib_ignore = ${common.lib_ignore}
  256. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  257. monitor_baud = 115200
  258. [env:itead-sonoff-4ch-ota]
  259. platform = ${common.platform}
  260. framework = arduino
  261. board = esp01_1m
  262. board_flash_mode = dout
  263. lib_deps = ${common.lib_deps}
  264. lib_ignore = ${common.lib_ignore}
  265. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  266. upload_speed = 115200
  267. upload_port = "192.168.4.1"
  268. upload_flags = --auth=fibonacci --port 8266
  269. monitor_baud = 115200
  270. [env:itead-sonoff-4ch-pro]
  271. platform = ${common.platform}
  272. framework = arduino
  273. board = esp01_1m
  274. board_flash_mode = dout
  275. lib_deps = ${common.lib_deps}
  276. lib_ignore = ${common.lib_ignore}
  277. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  278. monitor_baud = 115200
  279. [env:itead-sonoff-4ch-pro-ota]
  280. platform = ${common.platform}
  281. framework = arduino
  282. board = esp01_1m
  283. board_flash_mode = dout
  284. lib_deps = ${common.lib_deps}
  285. lib_ignore = ${common.lib_ignore}
  286. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  287. upload_speed = 115200
  288. upload_port = "192.168.4.1"
  289. upload_flags = --auth=fibonacci --port 8266
  290. monitor_baud = 115200
  291. [env:itead-sonoff-touch]
  292. platform = ${common.platform}
  293. framework = arduino
  294. board = esp01_1m
  295. board_flash_mode = dout
  296. lib_deps = ${common.lib_deps}
  297. lib_ignore = ${common.lib_ignore}
  298. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  299. monitor_baud = 115200
  300. [env:itead-sonoff-touch-ota]
  301. platform = ${common.platform}
  302. framework = arduino
  303. board = esp01_1m
  304. board_flash_mode = dout
  305. lib_deps = ${common.lib_deps}
  306. lib_ignore = ${common.lib_ignore}
  307. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  308. upload_speed = 115200
  309. upload_port = "192.168.4.1"
  310. upload_flags = --auth=fibonacci --port 8266
  311. monitor_baud = 115200
  312. [env:itead-sonoff-b1]
  313. platform = ${common.platform}
  314. framework = arduino
  315. board = esp01_1m
  316. board_flash_mode = dout
  317. lib_deps = ${common.lib_deps}
  318. lib_ignore = ${common.lib_ignore}
  319. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  320. monitor_baud = 115200
  321. [env:itead-sonoff-b1-ota]
  322. platform = ${common.platform}
  323. framework = arduino
  324. board = esp01_1m
  325. board_flash_mode = dout
  326. lib_deps = ${common.lib_deps}
  327. lib_ignore = ${common.lib_ignore}
  328. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  329. upload_speed = 115200
  330. upload_port = "192.168.4.1"
  331. upload_flags = --auth=fibonacci --port 8266
  332. monitor_baud = 115200
  333. [env:itead-sonoff-t1-1ch]
  334. platform = ${common.platform}
  335. framework = arduino
  336. board = esp01_1m
  337. board_flash_mode = dout
  338. lib_deps = ${common.lib_deps}
  339. lib_ignore = ${common.lib_ignore}
  340. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  341. monitor_baud = 115200
  342. [env:itead-sonoff-t1-1ch-ota]
  343. platform = ${common.platform}
  344. framework = arduino
  345. board = esp01_1m
  346. board_flash_mode = dout
  347. lib_deps = ${common.lib_deps}
  348. lib_ignore = ${common.lib_ignore}
  349. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  350. upload_speed = 115200
  351. upload_port = "192.168.4.1"
  352. upload_flags = --auth=fibonacci --port 8266
  353. monitor_baud = 115200
  354. [env:itead-sonoff-t1-2ch]
  355. platform = ${common.platform}
  356. framework = arduino
  357. board = esp01_1m
  358. board_flash_mode = dout
  359. lib_deps = ${common.lib_deps}
  360. lib_ignore = ${common.lib_ignore}
  361. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  362. monitor_baud = 115200
  363. [env:itead-sonoff-t1-2ch-ota]
  364. platform = ${common.platform}
  365. framework = arduino
  366. board = esp01_1m
  367. board_flash_mode = dout
  368. lib_deps = ${common.lib_deps}
  369. lib_ignore = ${common.lib_ignore}
  370. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  371. upload_speed = 115200
  372. upload_port = "192.168.4.1"
  373. upload_flags = --auth=fibonacci --port 8266
  374. monitor_baud = 115200
  375. [env:itead-sonoff-t1-3ch]
  376. platform = ${common.platform}
  377. framework = arduino
  378. board = esp01_1m
  379. board_flash_mode = dout
  380. lib_deps = ${common.lib_deps}
  381. lib_ignore = ${common.lib_ignore}
  382. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  383. monitor_baud = 115200
  384. [env:itead-sonoff-t1-3ch-ota]
  385. platform = ${common.platform}
  386. framework = arduino
  387. board = esp01_1m
  388. board_flash_mode = dout
  389. lib_deps = ${common.lib_deps}
  390. lib_ignore = ${common.lib_ignore}
  391. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  392. upload_speed = 115200
  393. upload_port = "192.168.4.1"
  394. upload_flags = --auth=fibonacci --port 8266
  395. monitor_baud = 115200
  396. [env:itead-sonoff-led]
  397. platform = ${common.platform}
  398. framework = arduino
  399. board = esp01_1m
  400. board_flash_mode = dout
  401. lib_deps = ${common.lib_deps}
  402. lib_ignore = ${common.lib_ignore}
  403. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  404. monitor_baud = 115200
  405. [env:itead-sonoff-led-ota]
  406. platform = ${common.platform}
  407. framework = arduino
  408. board = esp01_1m
  409. board_flash_mode = dout
  410. lib_deps = ${common.lib_deps}
  411. lib_ignore = ${common.lib_ignore}
  412. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  413. upload_speed = 115200
  414. upload_port = "192.168.4.1"
  415. upload_flags = --auth=fibonacci --port 8266
  416. monitor_baud = 115200
  417. [env:itead-sonoff-rfbridge]
  418. platform = ${common.platform}
  419. framework = arduino
  420. board = esp01_1m
  421. board_flash_mode = dout
  422. lib_deps = ${common.lib_deps}
  423. lib_ignore = ${common.lib_ignore}
  424. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  425. monitor_baud = 19200
  426. [env:itead-sonoff-rfbridge-ota]
  427. platform = ${common.platform}
  428. framework = arduino
  429. board = esp01_1m
  430. board_flash_mode = dout
  431. lib_deps = ${common.lib_deps}
  432. lib_ignore = ${common.lib_ignore}
  433. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  434. upload_speed = 115200
  435. upload_port = "192.168.4.1"
  436. upload_flags = --auth=Algernon1 --port 8266
  437. monitor_baud = 19200
  438. # ------------------------------------------------------------------------------
  439. [env:itead-slampher]
  440. platform = ${common.platform}
  441. framework = arduino
  442. board = esp01_1m
  443. board_flash_mode = dout
  444. lib_deps = ${common.lib_deps}
  445. lib_ignore = ${common.lib_ignore}
  446. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  447. monitor_baud = 115200
  448. [env:itead-slampher-ota]
  449. platform = ${common.platform}
  450. framework = arduino
  451. board = esp01_1m
  452. board_flash_mode = dout
  453. lib_deps = ${common.lib_deps}
  454. lib_ignore = ${common.lib_ignore}
  455. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  456. upload_speed = 115200
  457. upload_port = "192.168.4.1"
  458. upload_flags = --auth=fibonacci --port 8266
  459. monitor_baud = 115200
  460. [env:itead-s20]
  461. platform = ${common.platform}
  462. framework = arduino
  463. board = esp01_1m
  464. board_flash_mode = dout
  465. lib_deps = ${common.lib_deps}
  466. lib_ignore = ${common.lib_ignore}
  467. build_flags = ${common.build_flags_1m} -DITEAD_S20
  468. monitor_baud = 115200
  469. [env:itead-s20-ota]
  470. platform = ${common.platform}
  471. framework = arduino
  472. board = esp01_1m
  473. board_flash_mode = dout
  474. lib_deps = ${common.lib_deps}
  475. lib_ignore = ${common.lib_ignore}
  476. build_flags = ${common.build_flags_1m} -DITEAD_S20
  477. upload_speed = 115200
  478. upload_port = "192.168.4.1"
  479. upload_flags = --auth=fibonacci --port 8266
  480. monitor_baud = 115200
  481. [env:itead-1ch-inching]
  482. platform = ${common.platform}
  483. framework = arduino
  484. board = esp01_1m
  485. board_flash_mode = dout
  486. lib_deps = ${common.lib_deps}
  487. lib_ignore = ${common.lib_ignore}
  488. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  489. monitor_baud = 115200
  490. [env:itead-1ch-inching-ota]
  491. platform = ${common.platform}
  492. framework = arduino
  493. board = esp01_1m
  494. board_flash_mode = dout
  495. lib_deps = ${common.lib_deps}
  496. lib_ignore = ${common.lib_ignore}
  497. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  498. upload_speed = 115200
  499. upload_port = "192.168.4.1"
  500. upload_flags = --auth=fibonacci --port 8266
  501. monitor_baud = 115200
  502. [env:itead-motor]
  503. platform = ${common.platform}
  504. framework = arduino
  505. board = esp01_1m
  506. board_flash_mode = dout
  507. lib_deps = ${common.lib_deps}
  508. lib_ignore = ${common.lib_ignore}
  509. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  510. monitor_baud = 115200
  511. [env:itead-motor-ota]
  512. platform = ${common.platform}
  513. framework = arduino
  514. board = esp01_1m
  515. board_flash_mode = dout
  516. lib_deps = ${common.lib_deps}
  517. lib_ignore = ${common.lib_ignore}
  518. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  519. upload_speed = 115200
  520. upload_port = "192.168.4.1"
  521. upload_flags = --auth=fibonacci --port 8266
  522. monitor_baud = 115200
  523. # ------------------------------------------------------------------------------
  524. [env:electrodragon-wifi-iot]
  525. platform = ${common.platform}
  526. framework = arduino
  527. board = esp12e
  528. lib_deps = ${common.lib_deps}
  529. lib_ignore = ${common.lib_ignore}
  530. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  531. monitor_baud = 115200
  532. [env:electrodragon-wifi-iot-ota]
  533. platform = ${common.platform}
  534. framework = arduino
  535. board = esp12e
  536. lib_deps = ${common.lib_deps}
  537. lib_ignore = ${common.lib_ignore}
  538. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  539. upload_speed = 115200
  540. upload_port = "192.168.4.1"
  541. upload_flags = --auth=fibonacci --port 8266
  542. monitor_baud = 115200
  543. [env:workchoice-ecoplug]
  544. platform = ${common.platform}
  545. framework = arduino
  546. board = esp01_1m
  547. board_flash_mode = dout
  548. lib_deps = ${common.lib_deps}
  549. lib_ignore = ${common.lib_ignore}
  550. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  551. monitor_baud = 115200
  552. [env:workchoice-ecoplug-ota]
  553. platform = ${common.platform}
  554. framework = arduino
  555. board = esp01_1m
  556. board_flash_mode = dout
  557. lib_deps = ${common.lib_deps}
  558. lib_ignore = ${common.lib_ignore}
  559. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  560. upload_speed = 115200
  561. upload_port = "192.168.4.1"
  562. upload_flags = --auth=fibonacci --port 8266
  563. monitor_baud = 115200
  564. [env:jangoe-wifi-relay]
  565. platform = ${common.platform}
  566. framework = arduino
  567. board = esp12e
  568. lib_deps = ${common.lib_deps}
  569. lib_ignore = ${common.lib_ignore}
  570. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  571. monitor_baud = 115200
  572. [env:jangoe-wifi-relay-ota]
  573. platform = ${common.platform}
  574. framework = arduino
  575. board = esp12e
  576. lib_deps = ${common.lib_deps}
  577. lib_ignore = ${common.lib_ignore}
  578. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  579. upload_speed = 115200
  580. upload_port = "192.168.4.1"
  581. upload_flags = --auth=fibonacci --port 8266
  582. monitor_baud = 115200
  583. [env:openenergymonitor-mqtt-relay]
  584. platform = ${common.platform}
  585. framework = arduino
  586. board = esp_wroom_02
  587. lib_deps = ${common.lib_deps}
  588. lib_ignore = ${common.lib_ignore}
  589. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDS18B20_SUPPORT=1
  590. monitor_baud = 115200
  591. [env:openenergymonitor-mqtt-relay-ota]
  592. platform = ${common.platform}
  593. framework = arduino
  594. board = esp_wroom_02
  595. lib_deps = ${common.lib_deps}
  596. lib_ignore = ${common.lib_ignore}
  597. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDS18B20_SUPPORT=1
  598. upload_speed = 115200
  599. upload_port = "192.168.4.1"
  600. upload_flags = --auth=fibonacci --port 8266
  601. monitor_baud = 115200
  602. [env:jorgegarcia-wifi-relays]
  603. platform = ${common.platform}
  604. framework = arduino
  605. board = esp01_1m
  606. lib_deps = ${common.lib_deps}
  607. lib_ignore = ${common.lib_ignore}
  608. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  609. monitor_baud = 115200
  610. [env:jorgegarcia-wifi-relays-ota]
  611. platform = ${common.platform}
  612. framework = arduino
  613. board = esp01_1m
  614. lib_deps = ${common.lib_deps}
  615. lib_ignore = ${common.lib_ignore}
  616. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  617. upload_speed = 115200
  618. upload_port = "192.168.4.1"
  619. upload_flags = --auth=fibonacci --port 8266
  620. monitor_baud = 115200
  621. [env:aithinker-ai-light]
  622. platform = ${common.platform}
  623. framework = arduino
  624. board = esp01_1m
  625. board_flash_mode = dout
  626. lib_deps = ${common.lib_deps}
  627. lib_ignore = ${common.lib_ignore}
  628. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  629. monitor_baud = 115200
  630. [env:aithinker-ai-light-ota]
  631. platform = ${common.platform}
  632. framework = arduino
  633. board = esp01_1m
  634. board_flash_mode = dout
  635. lib_deps = ${common.lib_deps}
  636. lib_ignore = ${common.lib_ignore}
  637. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  638. upload_speed = 115200
  639. upload_port = "192.168.4.1"
  640. upload_flags = --auth=fibonacci --port 8266
  641. monitor_baud = 115200
  642. [env:magichome-led-controller]
  643. platform = ${common.platform}
  644. framework = arduino
  645. board = esp01_1m
  646. board_flash_mode = dout
  647. lib_deps = ${common.lib_deps}
  648. lib_ignore = ${common.lib_ignore}
  649. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  650. monitor_baud = 115200
  651. [env:magichome-led-controller-ota]
  652. platform = ${common.platform}
  653. framework = arduino
  654. board = esp01_1m
  655. board_flash_mode = dout
  656. lib_deps = ${common.lib_deps}
  657. lib_ignore = ${common.lib_ignore}
  658. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  659. upload_speed = 115200
  660. upload_port = "192.168.4.1"
  661. upload_flags = --auth=fibonacci --port 8266
  662. monitor_baud = 115200
  663. [env:magichome-led-controller-2-0]
  664. platform = ${common.platform}
  665. framework = arduino
  666. board = esp01_1m
  667. board_flash_mode = dout
  668. lib_deps = ${common.lib_deps}
  669. lib_ignore = ${common.lib_ignore}
  670. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER_2_0
  671. monitor_baud = 115200
  672. [env:magichome-led-controller-2-0-ota]
  673. platform = ${common.platform}
  674. framework = arduino
  675. board = esp01_1m
  676. board_flash_mode = dout
  677. lib_deps = ${common.lib_deps}
  678. lib_ignore = ${common.lib_ignore}
  679. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER_2_0
  680. upload_port = "192.168.4.1"
  681. upload_flags = --auth=fibonacci --port 8266
  682. monitor_baud = 115200
  683. [env:huacanxing-h801]
  684. platform = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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 = ${common.platform}
  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. [env:intermittech-quinled]
  871. platform = ${common.platform}
  872. framework = arduino
  873. board = esp01_1m
  874. board_flash_mode = dout
  875. lib_deps = ${common.lib_deps}
  876. lib_ignore = ${common.lib_ignore}
  877. build_flags = ${common.build_flags_1m} -DINTERMITTECH_QUINLED
  878. monitor_baud = 115200
  879. [env:intermittech-quinled-ota]
  880. platform = ${common.platform}
  881. framework = arduino
  882. board = esp01_1m
  883. board_flash_mode = dout
  884. lib_deps = ${common.lib_deps}
  885. lib_ignore = ${common.lib_ignore}
  886. build_flags = ${common.build_flags_1m} -DINTERMITTECH_QUINLED
  887. upload_speed = 115200
  888. upload_port = "192.168.4.1"
  889. upload_flags = --auth=fibonacci --port 8266
  890. monitor_baud = 115200
  891. # ------------------------------------------------------------------------------
  892. # GENERIC OTA ENVIRONMENTS
  893. # ------------------------------------------------------------------------------
  894. [env:esp8266-1m-ota]
  895. platform = ${common.platform}
  896. framework = arduino
  897. board = esp01_1m
  898. board_flash_mode = dout
  899. lib_deps = ${common.lib_deps}
  900. lib_ignore = ${common.lib_ignore}
  901. build_flags = ${common.build_flags_1m} -D${env.ESPURNA_BOARD}
  902. upload_speed = 115200
  903. upload_port = "${env.ESPURNA_IP}"
  904. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266
  905. [env:esp8266-4m-ota]
  906. platform = ${common.platform}
  907. framework = arduino
  908. board = esp12e
  909. board_flash_mode = dout
  910. lib_deps = ${common.lib_deps}
  911. lib_ignore = ${common.lib_ignore}
  912. build_flags = ${common.build_flags} -D${env.ESPURNA_BOARD}
  913. upload_speed = 115200
  914. upload_port = "${env.ESPURNA_IP}"
  915. upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266