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.

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