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.

1080 lines
30 KiB

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