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.

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