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.

940 lines
26 KiB

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