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.

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