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.

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