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.

1169 lines
32 KiB

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