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.

819 lines
22 KiB

  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.FLAGS}
  7. build_flags_512k = ${common.build_flags} -Wl,-Tesp8266.flash.512k0.ld
  8. build_flags_1m = ${common.build_flags} -Wl,-Tesp8266.flash.1m0.ld
  9. lib_deps =
  10. DHT sensor library
  11. Adafruit Unified Sensor
  12. https://github.com/xoseperez/Time
  13. ArduinoJson
  14. https://github.com/me-no-dev/ESPAsyncTCP#991f855
  15. https://github.com/me-no-dev/ESPAsyncWebServer#a94265d
  16. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  17. PubSubClient
  18. Embedis
  19. NtpClientLib
  20. OneWire
  21. DallasTemperature
  22. Brzo I2C
  23. https://bitbucket.org/xoseperez/justwifi.git#1.1.4
  24. https://bitbucket.org/xoseperez/hlw8012.git#1.0.1
  25. https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.1
  26. https://bitbucket.org/xoseperez/nofuss.git#0.2.2
  27. https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2
  28. https://bitbucket.org/xoseperez/debounceevent.git#2.0.1
  29. https://github.com/xoseperez/my9291#1.0.0
  30. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  31. lib_ignore =
  32. # ------------------------------------------------------------------------------
  33. [env:wemos-d1mini-relayshield]
  34. platform = espressif8266
  35. framework = arduino
  36. board = d1_mini
  37. lib_deps = ${common.lib_deps}
  38. lib_ignore = ${common.lib_ignore}
  39. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  40. upload_speed = 460800
  41. monitor_baud = 115200
  42. [env:wemos-d1mini-relayshield-ssl]
  43. platform = espressif8266_stage
  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 -DASYNC_TCP_SSL_ENABLED=1
  49. upload_speed = 460800
  50. monitor_baud = 115200
  51. [env:wemos-d1mini-relayshield-ota]
  52. platform = espressif8266
  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
  58. upload_speed = 115200
  59. upload_port = "192.168.4.1"
  60. upload_flags = --auth=fibonacci --port 8266
  61. [env:nodemcu-lolin]
  62. platform = espressif8266
  63. framework = arduino
  64. board = nodemcuv2
  65. lib_deps = ${common.lib_deps}
  66. lib_ignore = ${common.lib_ignore}
  67. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  68. upload_speed = 460800
  69. monitor_baud = 115200
  70. [env:nodemcu-lolin-ssl]
  71. platform = espressif8266_stage
  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 -DASYNC_TCP_SSL_ENABLED=1
  77. upload_speed = 460800
  78. monitor_baud = 115200
  79. [env:nodemcu-lolin-ota]
  80. platform = espressif8266
  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
  86. upload_speed = 115200
  87. upload_port = "192.168.4.1"
  88. upload_flags = --auth=fibonacci --port 8266
  89. monitor_baud = 115200
  90. # ------------------------------------------------------------------------------
  91. [env:tinkerman-espurna-h]
  92. platform = espressif8266
  93. framework = arduino
  94. board = esp12e
  95. lib_deps = ${common.lib_deps}
  96. lib_ignore = ${common.lib_ignore}
  97. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H
  98. upload_speed = 460800
  99. monitor_baud = 115200
  100. [env:tinkerman-espurna-h-ota]
  101. platform = espressif8266
  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_H
  107. upload_speed = 115200
  108. upload_port = "192.168.4.1"
  109. upload_flags = --auth=fibonacci --port 8266
  110. monitor_baud = 115200
  111. # ------------------------------------------------------------------------------
  112. [env:itead-sonoff-basic]
  113. platform = espressif8266
  114. framework = arduino
  115. board = esp01_1m
  116. board_flash_mode = dout
  117. lib_deps = ${common.lib_deps}
  118. lib_ignore = ${common.lib_ignore}
  119. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  120. monitor_baud = 115200
  121. [env:itead-sonoff-basic-ota]
  122. platform = espressif8266
  123. framework = arduino
  124. board = esp01_1m
  125. board_flash_mode = dout
  126. lib_deps = ${common.lib_deps}
  127. lib_ignore = ${common.lib_ignore}
  128. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  129. upload_speed = 115200
  130. upload_port = "192.168.4.1"
  131. upload_flags = --auth=fibonacci --port 8266
  132. monitor_baud = 115200
  133. [env:itead-sonoff-basic-dht22]
  134. platform = espressif8266
  135. framework = arduino
  136. board = esp01_1m
  137. board_flash_mode = dout
  138. lib_deps = ${common.lib_deps}
  139. lib_ignore = ${common.lib_ignore}
  140. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DENABLE_DHT=1
  141. monitor_baud = 115200
  142. [env:itead-sonoff-basic-ds18b20]
  143. platform = espressif8266
  144. framework = arduino
  145. board = esp01_1m
  146. board_flash_mode = dout
  147. lib_deps = ${common.lib_deps}
  148. lib_ignore = ${common.lib_ignore}
  149. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DENABLE_DS18B20=1
  150. monitor_baud = 115200
  151. [env:itead-sonoff-rf]
  152. platform = espressif8266
  153. framework = arduino
  154. board = esp01_1m
  155. board_flash_mode = dout
  156. lib_deps = ${common.lib_deps}
  157. lib_ignore = ${common.lib_ignore}
  158. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  159. monitor_baud = 115200
  160. [env:itead-sonoff-rf-ota]
  161. platform = espressif8266
  162. framework = arduino
  163. board = esp01_1m
  164. board_flash_mode = dout
  165. lib_deps = ${common.lib_deps}
  166. lib_ignore = ${common.lib_ignore}
  167. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  168. upload_speed = 115200
  169. upload_port = "192.168.4.1"
  170. upload_flags = --auth=fibonacci --port 8266
  171. monitor_baud = 115200
  172. [env:itead-sonoff-pow]
  173. platform = espressif8266
  174. framework = arduino
  175. board = esp01_1m
  176. board_flash_mode = dout
  177. lib_deps = ${common.lib_deps}
  178. lib_ignore = ${common.lib_ignore}
  179. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  180. monitor_baud = 115200
  181. [env:itead-sonoff-pow-ota]
  182. platform = espressif8266
  183. framework = arduino
  184. board = esp01_1m
  185. board_flash_mode = dout
  186. lib_deps = ${common.lib_deps}
  187. lib_ignore = ${common.lib_ignore}
  188. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  189. upload_speed = 115200
  190. upload_port = "192.168.4.1"
  191. upload_flags = --auth=fibonacci --port 8266
  192. monitor_baud = 115200
  193. [env:itead-sonoff-dual]
  194. platform = espressif8266
  195. framework = arduino
  196. board = esp01_1m
  197. board_flash_mode = dout
  198. lib_deps = ${common.lib_deps}
  199. lib_ignore = ${common.lib_ignore}
  200. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  201. [env:itead-sonoff-dual-ota]
  202. platform = espressif8266
  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_DUAL
  209. upload_speed = 115200
  210. upload_port = "192.168.4.1"
  211. upload_flags = --auth=fibonacci --port 8266
  212. [env:itead-sonoff-4ch]
  213. platform = espressif8266
  214. framework = arduino
  215. board = esp8285
  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_4CH
  220. monitor_baud = 115200
  221. [env:itead-sonoff-4ch-ota]
  222. platform = espressif8266
  223. framework = arduino
  224. board = esp8285
  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_4CH
  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-4ch-pro]
  234. platform = espressif8266
  235. framework = arduino
  236. board = esp8285
  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_4CH_PRO
  241. monitor_baud = 115200
  242. [env:itead-sonoff-4ch-pro-ota]
  243. platform = espressif8266
  244. framework = arduino
  245. board = esp8285
  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_4CH_PRO
  250. upload_speed = 115200
  251. upload_port = "192.168.4.1"
  252. upload_flags = --auth=fibonacci --port 8266
  253. monitor_baud = 115200
  254. [env:itead-sonoff-touch]
  255. platform = espressif8266
  256. framework = arduino
  257. board = esp8285
  258. board_flash_mode = dout
  259. lib_deps = ${common.lib_deps}
  260. lib_ignore = ${common.lib_ignore}
  261. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  262. monitor_baud = 115200
  263. [env:itead-sonoff-touch-ota]
  264. platform = espressif8266
  265. framework = arduino
  266. board = esp8285
  267. board_flash_mode = dout
  268. lib_deps = ${common.lib_deps}
  269. lib_ignore = ${common.lib_ignore}
  270. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  271. upload_speed = 115200
  272. upload_port = "192.168.4.1"
  273. upload_flags = --auth=fibonacci --port 8266
  274. monitor_baud = 115200
  275. [env:itead-sonoff-b1]
  276. platform = espressif8266
  277. framework = arduino
  278. board = esp8285
  279. board_flash_mode = dout
  280. lib_deps = ${common.lib_deps}
  281. lib_ignore = ${common.lib_ignore}
  282. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  283. monitor_baud = 115200
  284. [env:itead-sonoff-b1-ota]
  285. platform = espressif8266
  286. framework = arduino
  287. board = esp8285
  288. board_flash_mode = dout
  289. lib_deps = ${common.lib_deps}
  290. lib_ignore = ${common.lib_ignore}
  291. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  292. upload_speed = 115200
  293. upload_port = "192.168.4.1"
  294. upload_flags = --auth=fibonacci --port 8266
  295. monitor_baud = 115200
  296. [env:itead-sonoff-t1-1ch]
  297. platform = espressif8266
  298. framework = arduino
  299. board = esp8285
  300. board_flash_mode = dout
  301. lib_deps = ${common.lib_deps}
  302. lib_ignore = ${common.lib_ignore}
  303. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  304. monitor_baud = 115200
  305. [env:itead-sonoff-t1-1ch-ota]
  306. platform = espressif8266
  307. framework = arduino
  308. board = esp8285
  309. board_flash_mode = dout
  310. lib_deps = ${common.lib_deps}
  311. lib_ignore = ${common.lib_ignore}
  312. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  313. upload_speed = 115200
  314. upload_port = "192.168.4.1"
  315. upload_flags = --auth=fibonacci --port 8266
  316. monitor_baud = 115200
  317. [env:itead-sonoff-t1-2ch]
  318. platform = espressif8266
  319. framework = arduino
  320. board = esp8285
  321. board_flash_mode = dout
  322. lib_deps = ${common.lib_deps}
  323. lib_ignore = ${common.lib_ignore}
  324. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  325. monitor_baud = 115200
  326. [env:itead-sonoff-t1-2ch-ota]
  327. platform = espressif8266
  328. framework = arduino
  329. board = esp8285
  330. board_flash_mode = dout
  331. lib_deps = ${common.lib_deps}
  332. lib_ignore = ${common.lib_ignore}
  333. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  334. upload_speed = 115200
  335. upload_port = "192.168.4.1"
  336. upload_flags = --auth=fibonacci --port 8266
  337. monitor_baud = 115200
  338. [env:itead-sonoff-t1-3ch]
  339. platform = espressif8266
  340. framework = arduino
  341. board = esp8285
  342. board_flash_mode = dout
  343. lib_deps = ${common.lib_deps}
  344. lib_ignore = ${common.lib_ignore}
  345. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  346. monitor_baud = 115200
  347. [env:itead-sonoff-t1-3ch-ota]
  348. platform = espressif8266
  349. framework = arduino
  350. board = esp8285
  351. board_flash_mode = dout
  352. lib_deps = ${common.lib_deps}
  353. lib_ignore = ${common.lib_ignore}
  354. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  355. upload_speed = 115200
  356. upload_port = "192.168.4.1"
  357. upload_flags = --auth=fibonacci --port 8266
  358. monitor_baud = 115200
  359. [env:itead-sonoff-led]
  360. platform = espressif8266
  361. framework = arduino
  362. board = esp01_1m
  363. board_flash_mode = dout
  364. lib_deps = ${common.lib_deps}
  365. lib_ignore = ${common.lib_ignore}
  366. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  367. monitor_baud = 115200
  368. [env:itead-sonoff-led-ota]
  369. platform = espressif8266
  370. framework = arduino
  371. board = esp01_1m
  372. board_flash_mode = dout
  373. lib_deps = ${common.lib_deps}
  374. lib_ignore = ${common.lib_ignore}
  375. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  376. upload_speed = 115200
  377. upload_port = "192.168.4.1"
  378. upload_flags = --auth=fibonacci --port 8266
  379. monitor_baud = 115200
  380. [env:itead-sonoff-rfbridge]
  381. platform = espressif8266
  382. framework = arduino
  383. board = esp01_1m
  384. board_flash_mode = dout
  385. lib_deps = ${common.lib_deps}
  386. lib_ignore = ${common.lib_ignore}
  387. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  388. monitor_baud = 19200
  389. [env:itead-sonoff-rfbridge-ota]
  390. platform = espressif8266
  391. framework = arduino
  392. board = esp01_1m
  393. board_flash_mode = dout
  394. lib_deps = ${common.lib_deps}
  395. lib_ignore = ${common.lib_ignore}
  396. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  397. upload_speed = 115200
  398. upload_port = "192.168.4.1"
  399. upload_flags = --auth=Algernon1 --port 8266
  400. monitor_baud = 19200
  401. # ------------------------------------------------------------------------------
  402. [env:itead-slampher]
  403. platform = espressif8266
  404. framework = arduino
  405. board = esp01_1m
  406. board_flash_mode = dout
  407. lib_deps = ${common.lib_deps}
  408. lib_ignore = ${common.lib_ignore}
  409. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  410. monitor_baud = 115200
  411. [env:itead-slampher-ota]
  412. platform = espressif8266
  413. framework = arduino
  414. board = esp01_1m
  415. board_flash_mode = dout
  416. lib_deps = ${common.lib_deps}
  417. lib_ignore = ${common.lib_ignore}
  418. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  419. upload_speed = 115200
  420. upload_port = "192.168.4.1"
  421. upload_flags = --auth=fibonacci --port 8266
  422. monitor_baud = 115200
  423. [env:itead-s20]
  424. platform = espressif8266
  425. framework = arduino
  426. board = esp01_1m
  427. board_flash_mode = dout
  428. lib_deps = ${common.lib_deps}
  429. lib_ignore = ${common.lib_ignore}
  430. build_flags = ${common.build_flags_1m} -DITEAD_S20
  431. monitor_baud = 115200
  432. [env:itead-s20-ota]
  433. platform = espressif8266
  434. framework = arduino
  435. board = esp01_1m
  436. board_flash_mode = dout
  437. lib_deps = ${common.lib_deps}
  438. lib_ignore = ${common.lib_ignore}
  439. build_flags = ${common.build_flags_1m} -DITEAD_S20
  440. upload_speed = 115200
  441. upload_port = "192.168.4.1"
  442. upload_flags = --auth=fibonacci --port 8266
  443. monitor_baud = 115200
  444. [env:itead-1ch-inching]
  445. platform = espressif8266
  446. framework = arduino
  447. board = esp01_1m
  448. board_flash_mode = dout
  449. lib_deps = ${common.lib_deps}
  450. lib_ignore = ${common.lib_ignore}
  451. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  452. monitor_baud = 115200
  453. [env:itead-1ch-inching-ota]
  454. platform = espressif8266
  455. framework = arduino
  456. board = esp01_1m
  457. board_flash_mode = dout
  458. lib_deps = ${common.lib_deps}
  459. lib_ignore = ${common.lib_ignore}
  460. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  461. upload_speed = 115200
  462. upload_port = "192.168.4.1"
  463. upload_flags = --auth=fibonacci --port 8266
  464. monitor_baud = 115200
  465. [env:itead-motor]
  466. platform = espressif8266
  467. framework = arduino
  468. board = esp01_1m
  469. board_flash_mode = dout
  470. lib_deps = ${common.lib_deps}
  471. lib_ignore = ${common.lib_ignore}
  472. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  473. monitor_baud = 115200
  474. [env:itead-motor-ota]
  475. platform = espressif8266
  476. framework = arduino
  477. board = esp01_1m
  478. board_flash_mode = dout
  479. lib_deps = ${common.lib_deps}
  480. lib_ignore = ${common.lib_ignore}
  481. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  482. upload_speed = 115200
  483. upload_port = "192.168.4.1"
  484. upload_flags = --auth=fibonacci --port 8266
  485. monitor_baud = 115200
  486. # ------------------------------------------------------------------------------
  487. [env:electrodragon-wifi-iot]
  488. platform = espressif8266
  489. framework = arduino
  490. board = esp12e
  491. lib_deps = ${common.lib_deps}
  492. lib_ignore = ${common.lib_ignore}
  493. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DENABLE_DHT=1
  494. monitor_baud = 115200
  495. [env:electrodragon-wifi-iot-ota]
  496. platform = espressif8266
  497. framework = arduino
  498. board = esp12e
  499. lib_deps = ${common.lib_deps}
  500. lib_ignore = ${common.lib_ignore}
  501. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DENABLE_DHT=1
  502. upload_speed = 115200
  503. upload_port = "192.168.4.1"
  504. upload_flags = --auth=fibonacci --port 8266
  505. monitor_baud = 115200
  506. [env:workchoice-ecoplug]
  507. platform = espressif8266
  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} -DWORKCHOICE_ECOPLUG
  514. monitor_baud = 115200
  515. [env:workchoice-ecoplug-ota]
  516. platform = espressif8266
  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} -DWORKCHOICE_ECOPLUG
  523. upload_speed = 115200
  524. upload_port = "192.168.4.1"
  525. upload_flags = --auth=fibonacci --port 8266
  526. monitor_baud = 115200
  527. [env:jangoe-wifi-relay]
  528. platform = espressif8266
  529. framework = arduino
  530. board = esp12e
  531. lib_deps = ${common.lib_deps}
  532. lib_ignore = ${common.lib_ignore}
  533. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  534. monitor_baud = 115200
  535. [env:jangoe-wifi-relay-ota]
  536. platform = espressif8266
  537. framework = arduino
  538. board = esp12e
  539. lib_deps = ${common.lib_deps}
  540. lib_ignore = ${common.lib_ignore}
  541. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  542. upload_speed = 115200
  543. upload_port = "192.168.4.1"
  544. upload_flags = --auth=fibonacci --port 8266
  545. monitor_baud = 115200
  546. [env:openenergymonitor-mqtt-relay]
  547. platform = espressif8266
  548. framework = arduino
  549. board = esp_wroom_02
  550. lib_deps = ${common.lib_deps}
  551. lib_ignore = ${common.lib_ignore}
  552. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DENABLE_DS18B20=1
  553. monitor_baud = 115200
  554. [env:openenergymonitor-mqtt-relay-ota]
  555. platform = espressif8266
  556. framework = arduino
  557. board = esp_wroom_02
  558. lib_deps = ${common.lib_deps}
  559. lib_ignore = ${common.lib_ignore}
  560. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DENABLE_DS18B20=1
  561. upload_speed = 115200
  562. upload_port = "192.168.4.1"
  563. upload_flags = --auth=fibonacci --port 8266
  564. monitor_baud = 115200
  565. [env:jorgegarcia-wifi-relays]
  566. platform = espressif8266
  567. framework = arduino
  568. board = esp01_1m
  569. lib_deps = ${common.lib_deps}
  570. lib_ignore = ${common.lib_ignore}
  571. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  572. monitor_baud = 115200
  573. [env:jorgegarcia-wifi-relays-ota]
  574. platform = espressif8266
  575. framework = arduino
  576. board = esp01_1m
  577. lib_deps = ${common.lib_deps}
  578. lib_ignore = ${common.lib_ignore}
  579. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  580. upload_speed = 115200
  581. upload_port = "192.168.4.1"
  582. upload_flags = --auth=fibonacci --port 8266
  583. monitor_baud = 115200
  584. [env:aithinker-ai-light]
  585. platform = espressif8266
  586. framework = arduino
  587. board = esp01_1m
  588. board_flash_mode = dout
  589. lib_deps = ${common.lib_deps}
  590. lib_ignore = ${common.lib_ignore}
  591. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  592. monitor_baud = 115200
  593. [env:aithinker-ai-light-ota]
  594. platform = espressif8266
  595. framework = arduino
  596. board = esp01_1m
  597. board_flash_mode = dout
  598. lib_deps = ${common.lib_deps}
  599. lib_ignore = ${common.lib_ignore}
  600. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  601. upload_speed = 115200
  602. upload_port = "192.168.4.1"
  603. upload_flags = --auth=fibonacci --port 8266
  604. monitor_baud = 115200
  605. [env:magichome-led-controller]
  606. platform = espressif8266
  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} -DMAGICHOME_LED_CONTROLLER
  612. monitor_baud = 115200
  613. [env:magichome-led-controller-ota]
  614. platform = espressif8266
  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} -DMAGICHOME_LED_CONTROLLER
  620. upload_speed = 115200
  621. upload_port = "192.168.4.1"
  622. upload_flags = --auth=fibonacci --port 8266
  623. monitor_baud = 115200
  624. [env:huacanxing-h801]
  625. platform = espressif8266
  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 = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  632. monitor_baud = 115200
  633. [env:huacanxing-h801-ota]
  634. platform = espressif8266
  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 = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  641. upload_speed = 115200
  642. upload_port = "192.168.4.1"
  643. upload_flags = --auth=fibonacci --port 8266
  644. monitor_baud = 115200
  645. [env:itead-bnsz01]
  646. platform = espressif8266
  647. framework = arduino
  648. board = esp8285
  649. board_flash_mode = dout
  650. lib_deps = ${common.lib_deps}
  651. lib_ignore = ${common.lib_ignore}
  652. build_flags = ${common.build_flags_1m} -DITEAD_BN_SZ01
  653. monitor_baud = 115200
  654. [env:itead-bnsz01-ota]
  655. platform = espressif8266
  656. framework = arduino
  657. board = esp8285
  658. board_flash_mode = dout
  659. lib_deps = ${common.lib_deps}
  660. lib_ignore = ${common.lib_ignore}
  661. build_flags = ${common.build_flags_1m} -DITEAD_BN_SZ01
  662. upload_speed = 115200
  663. upload_port = "192.168.4.1"
  664. upload_flags = --auth=fibonacci --port 8266
  665. monitor_baud = 115200
  666. [env:wion-50055]
  667. platform = espressif8266
  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} -DWION_50055
  674. monitor_baud = 115200
  675. [env:wion-50055-ota]
  676. platform = espressif8266
  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} -DWION_50055
  683. upload_speed = 115200
  684. upload_port = "192.168.4.1"
  685. upload_flags = --auth=fibonacci --port 8266
  686. monitor_baud = 115200
  687. [env:exs-wifi-relay-v31]
  688. platform = espressif8266
  689. framework = arduino
  690. board = esp07
  691. board_flash_mode = dout
  692. lib_deps = ${common.lib_deps}
  693. lib_ignore = ${common.lib_ignore}
  694. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  695. monitor_baud = 115200
  696. [env:exs-wifi-relay-v31-ota]
  697. platform = espressif8266
  698. framework = arduino
  699. board = esp07
  700. board_flash_mode = dout
  701. lib_deps = ${common.lib_deps}
  702. lib_ignore = ${common.lib_ignore}
  703. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  704. upload_speed = 115200
  705. upload_port = "192.168.4.1"
  706. upload_flags = --auth=fibonacci --port 8266
  707. monitor_baud = 115200
  708. # ------------------------------------------------------------------------------
  709. # GENERIC OTA ENVIRONMENTS
  710. # ------------------------------------------------------------------------------
  711. [env:esp8285-1m-ota]
  712. platform = espressif8266
  713. framework = arduino
  714. board = esp8285
  715. board_flash_mode = dout
  716. lib_deps = ${common.lib_deps}
  717. lib_ignore = ${common.lib_ignore}
  718. build_flags = ${common.build_flags_1m} -D${env.BOARD}
  719. upload_speed = 115200
  720. upload_port = "${env.IP}"
  721. upload_flags = --auth=${env.AUTH} --port 8266
  722. [env:esp8266-1m-ota]
  723. platform = espressif8266
  724. framework = arduino
  725. board = esp01_1m
  726. board_flash_mode = dout
  727. lib_deps = ${common.lib_deps}
  728. lib_ignore = ${common.lib_ignore}
  729. build_flags = ${common.build_flags_1m} -D${env.BOARD}
  730. upload_speed = 115200
  731. upload_port = "${env.IP}"
  732. upload_flags = --auth=${env.AUTH} --port 8266
  733. [env:esp8266-4m-ota]
  734. platform = espressif8266
  735. framework = arduino
  736. board = esp12e
  737. board_flash_mode = dout
  738. lib_deps = ${common.lib_deps}
  739. lib_ignore = ${common.lib_ignore}
  740. build_flags = ${common.build_flags} -D${env.BOARD}
  741. upload_speed = 115200
  742. upload_port = "${env.IP}"
  743. upload_flags = --auth=${env.AUTH} --port 8266