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.

1099 lines
30 KiB

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