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.

464 lines
12 KiB

  1. [platformio]
  2. env_default = d1-debug
  3. src_dir = espurna
  4. data_dir = espurna/data
  5. [common]
  6. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_MAX_PACKET_SIZE=400
  7. build_flags_512k = ${common.build_flags} -Wl,-Tesp8266.flash.512k0.ld
  8. build_flags_1m = ${common.build_flags} -Wl,-Tesp8266.flash.1m0.ld
  9. lib_deps =
  10. DHT sensor library
  11. Adafruit Unified Sensor
  12. https://github.com/xoseperez/Time
  13. ArduinoJson
  14. https://github.com/me-no-dev/ESPAsyncTCP#991f855
  15. https://github.com/me-no-dev/ESPAsyncWebServer#a94265d
  16. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  17. PubSubClient
  18. Embedis
  19. NtpClientLib
  20. OneWire
  21. DallasTemperature
  22. Brzo I2C
  23. https://bitbucket.org/xoseperez/justwifi.git#1.1.3
  24. https://bitbucket.org/xoseperez/hlw8012.git#1.0.1
  25. https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.0
  26. https://bitbucket.org/xoseperez/nofuss.git#0.2.2
  27. https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2
  28. https://bitbucket.org/xoseperez/debounceevent.git#2.0.1
  29. https://github.com/xoseperez/my9291#1.0.0
  30. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  31. lib_ignore =
  32. # ------------------------------------------------------------------------------
  33. [env:d1-analog]
  34. platform = espressif8266
  35. framework = arduino
  36. board = d1_mini
  37. lib_deps = ${common.lib_deps}
  38. lib_ignore = ${common.lib_ignore}
  39. build_flags = ${common.build_flags} -DD1_MINI -DENABLE_DS18B20=1 -DDS_PIN=14 -DENABLE_ADC_VCC=0 -DMQTT_USE_ASYNC=0 -DENABLE_ANALOG=1 -DNOWSAUTH
  40. [env:d1-debug]
  41. platform = espressif8266
  42. framework = arduino
  43. board = d1_mini
  44. lib_deps = ${common.lib_deps}
  45. lib_ignore = ${common.lib_ignore}
  46. build_flags = ${common.build_flags} -DD1_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  47. [env:d1-debug-ota]
  48. platform = espressif8266
  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} -DD1_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  54. upload_speed = 115200
  55. upload_port = "192.168.4.1"
  56. upload_flags = --auth=fibonacci --port 8266
  57. [env:node-debug]
  58. platform = espressif8266
  59. framework = arduino
  60. board = nodemcuv2
  61. lib_deps = ${common.lib_deps}
  62. lib_ignore = ${common.lib_ignore}
  63. build_flags = ${common.build_flags} -DNODEMCUV2 -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  64. [env:node-debug-ota]
  65. platform = espressif8266
  66. framework = arduino
  67. board = nodemcuv2
  68. lib_deps = ${common.lib_deps}
  69. lib_ignore = ${common.lib_ignore}
  70. build_flags = ${common.build_flags} -DNODEMCUV2 -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  71. upload_speed = 115200
  72. upload_port = "192.168.4.1"
  73. upload_flags = --auth=fibonacci --port 8266
  74. [env:espurna-debug]
  75. platform = espressif8266
  76. framework = arduino
  77. board = esp12e
  78. lib_deps = ${common.lib_deps}
  79. lib_ignore = ${common.lib_ignore}
  80. build_flags = ${common.build_flags} -DESPURNA_H
  81. [env:espurna-debug-ota]
  82. platform = espressif8266
  83. framework = arduino
  84. board = esp12e
  85. board_flash_mode = dout
  86. lib_deps = ${common.lib_deps}
  87. lib_ignore = ${common.lib_ignore}
  88. build_flags = ${common.build_flags} -DESPURNA_H
  89. upload_speed = 115200
  90. upload_port = "192.168.4.1"
  91. upload_flags = --auth=fibonacci --port 8266
  92. [env:sonoff-debug]
  93. platform = espressif8266
  94. framework = arduino
  95. board = esp01_1m
  96. board_flash_mode = dout
  97. lib_deps = ${common.lib_deps}
  98. lib_ignore = ${common.lib_ignore}
  99. build_flags = ${common.build_flags_1m} -DSONOFF
  100. [env:sonoff-debug-ota]
  101. platform = espressif8266
  102. framework = arduino
  103. board = esp01_1m
  104. board_flash_mode = dout
  105. lib_deps = ${common.lib_deps}
  106. lib_ignore = ${common.lib_ignore}
  107. build_flags = ${common.build_flags_1m} -DSONOFF
  108. upload_speed = 115200
  109. upload_port = "192.168.4.1"
  110. upload_flags = --auth=fibonacci --port 8266
  111. [env:sonoff-dht22-debug]
  112. platform = espressif8266
  113. framework = arduino
  114. board = esp01_1m
  115. board_flash_mode = dout
  116. lib_deps = ${common.lib_deps}
  117. lib_ignore = ${common.lib_ignore}
  118. build_flags = ${common.build_flags_1m} -DSONOFF -DENABLE_DHT=1
  119. [env:sonoff-ds18b20-debug]
  120. platform = espressif8266
  121. framework = arduino
  122. board = esp01_1m
  123. board_flash_mode = dout
  124. lib_deps = ${common.lib_deps}
  125. lib_ignore = ${common.lib_ignore}
  126. build_flags = ${common.build_flags_1m} -DSONOFF -DENABLE_DS18B20=1
  127. [env:sonoff-pow-debug]
  128. platform = espressif8266
  129. framework = arduino
  130. board = esp01_1m
  131. board_flash_mode = dout
  132. lib_deps = ${common.lib_deps}
  133. lib_ignore = ${common.lib_ignore}
  134. build_flags = ${common.build_flags_1m} -DSONOFF_POW
  135. [env:sonoff-pow-debug-ota]
  136. platform = espressif8266
  137. framework = arduino
  138. board = esp01_1m
  139. board_flash_mode = dout
  140. lib_deps = ${common.lib_deps}
  141. lib_ignore = ${common.lib_ignore}
  142. build_flags = ${common.build_flags_1m} -DSONOFF_POW
  143. upload_speed = 115200
  144. upload_port = "192.168.4.1"
  145. upload_flags = --auth=fibonacci --port 8266
  146. [env:sonoff-dual-debug]
  147. platform = espressif8266
  148. framework = arduino
  149. board = esp01_1m
  150. board_flash_mode = dout
  151. lib_deps = ${common.lib_deps}
  152. lib_ignore = ${common.lib_ignore}
  153. build_flags = ${common.build_flags_1m} -DSONOFF_DUAL
  154. [env:sonoff-dual-debug-ota]
  155. platform = espressif8266
  156. framework = arduino
  157. board = esp01_1m
  158. board_flash_mode = dout
  159. lib_deps = ${common.lib_deps}
  160. lib_ignore = ${common.lib_ignore}
  161. build_flags = ${common.build_flags_1m} -DSONOFF_DUAL
  162. upload_speed = 115200
  163. upload_port = "192.168.4.1"
  164. upload_flags = --auth=fibonacci --port 8266
  165. [env:sonoff-4ch-debug]
  166. platform = espressif8266
  167. framework = arduino
  168. board = esp01_1m
  169. board_flash_mode = dout
  170. lib_deps = ${common.lib_deps}
  171. lib_ignore = ${common.lib_ignore}
  172. build_flags = ${common.build_flags_1m} -DSONOFF_4CH
  173. [env:sonoff-4ch-debug-ota]
  174. platform = espressif8266
  175. framework = arduino
  176. board = esp01_1m
  177. board_flash_mode = dout
  178. lib_deps = ${common.lib_deps}
  179. lib_ignore = ${common.lib_ignore}
  180. build_flags = ${common.build_flags_1m} -DSONOFF_4CH
  181. upload_speed = 115200
  182. upload_port = "192.168.4.1"
  183. upload_flags = --auth=fibonacci --port 8266
  184. [env:sonoff-touch-debug]
  185. platform = espressif8266
  186. framework = arduino
  187. board = esp01_1m
  188. board_flash_mode = dout
  189. lib_deps = ${common.lib_deps}
  190. lib_ignore = ${common.lib_ignore}
  191. build_flags = ${common.build_flags_1m} -DSONOFF_TOUCH
  192. [env:sonoff-touch-debug-ota]
  193. platform = espressif8266
  194. framework = arduino
  195. board = esp01_1m
  196. board_flash_mode = dout
  197. lib_deps = ${common.lib_deps}
  198. lib_ignore = ${common.lib_ignore}
  199. build_flags = ${common.build_flags_1m} -DSONOFF_TOUCH
  200. upload_speed = 115200
  201. upload_port = "192.168.4.1"
  202. upload_flags = --auth=fibonacci --port 8266
  203. [env:slampher-debug]
  204. platform = espressif8266
  205. framework = arduino
  206. board = esp01_1m
  207. board_flash_mode = dout
  208. lib_deps = ${common.lib_deps}
  209. lib_ignore = ${common.lib_ignore}
  210. build_flags = ${common.build_flags_1m} -DSLAMPHER
  211. [env:slampher-debug-ota]
  212. platform = espressif8266
  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} -DSLAMPHER
  219. upload_speed = 115200
  220. upload_port = "192.168.4.1"
  221. upload_flags = --auth=fibonacci --port 8266
  222. [env:s20-debug]
  223. platform = espressif8266
  224. framework = arduino
  225. board = esp01_1m
  226. board_flash_mode = dout
  227. lib_deps = ${common.lib_deps}
  228. lib_ignore = ${common.lib_ignore}
  229. build_flags = ${common.build_flags_1m} -DS20
  230. [env:s20-debug-ota]
  231. platform = espressif8266
  232. framework = arduino
  233. board = esp01_1m
  234. board_flash_mode = dout
  235. lib_deps = ${common.lib_deps}
  236. lib_ignore = ${common.lib_ignore}
  237. build_flags = ${common.build_flags_1m} -DS20
  238. upload_speed = 115200
  239. upload_port = "192.168.4.1"
  240. upload_flags = --auth=fibonacci --port 8266
  241. [env:1ch-inching-debug]
  242. platform = espressif8266
  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_1CH_INCHING
  249. [env:1ch-inching-debug-ota]
  250. platform = espressif8266
  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_1CH_INCHING
  257. upload_speed = 115200
  258. upload_port = "192.168.4.1"
  259. upload_flags = --auth=fibonacci --port 8266
  260. [env:motor-debug]
  261. platform = espressif8266
  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_MOTOR
  268. [env:motor-debug-ota]
  269. platform = espressif8266
  270. framework = arduino
  271. board = esp01_1m
  272. board_flash_mode = dout
  273. lib_deps = ${common.lib_deps}
  274. lib_ignore = ${common.lib_ignore}
  275. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  276. upload_speed = 115200
  277. upload_port = "192.168.4.1"
  278. upload_flags = --auth=fibonacci --port 8266
  279. [env:electrodragon-debug]
  280. platform = espressif8266
  281. framework = arduino
  282. board = esp12e
  283. lib_deps = ${common.lib_deps}
  284. lib_ignore = ${common.lib_ignore}
  285. build_flags = ${common.build_flags} -DESP_RELAY_BOARD -DENABLE_DHT=1
  286. [env:electrodragon-debug-ota]
  287. platform = espressif8266
  288. framework = arduino
  289. board = esp12e
  290. lib_deps = ${common.lib_deps}
  291. lib_ignore = ${common.lib_ignore}
  292. build_flags = ${common.build_flags} -DESP_RELAY_BOARD -DENABLE_DHT=1
  293. upload_speed = 115200
  294. upload_port = "192.168.4.1"
  295. upload_flags = --auth=fibonacci --port 8266
  296. [env:ecoplug-debug]
  297. platform = espressif8266
  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} -DECOPLUG
  304. [env:ecoplug-debug-ota]
  305. platform = espressif8266
  306. framework = arduino
  307. board = esp01_1m
  308. board_flash_mode = dout
  309. lib_deps = ${common.lib_deps}
  310. lib_ignore = ${common.lib_ignore}
  311. build_flags = ${common.build_flags_1m} -DECOPLUG
  312. upload_speed = 115200
  313. upload_port = "192.168.4.1"
  314. upload_flags = --auth=fibonacci --port 8266
  315. [env:jangoe-debug]
  316. platform = espressif8266
  317. framework = arduino
  318. board = esp12e
  319. lib_deps = ${common.lib_deps}
  320. lib_ignore = ${common.lib_ignore}
  321. build_flags = ${common.build_flags} -DWIFI_RELAY_NC
  322. [env:jangoe-debug-ota]
  323. platform = espressif8266
  324. framework = arduino
  325. board = esp12e
  326. lib_deps = ${common.lib_deps}
  327. lib_ignore = ${common.lib_ignore}
  328. build_flags = ${common.build_flags} -DWIFI_RELAY_NC
  329. upload_speed = 115200
  330. upload_port = "192.168.4.1"
  331. upload_flags = --auth=fibonacci --port 8266
  332. [env:mqtt-relay-debug]
  333. platform = espressif8266
  334. framework = arduino
  335. board = esp_wroom_02
  336. lib_deps = ${common.lib_deps}
  337. lib_ignore = ${common.lib_ignore}
  338. build_flags = ${common.build_flags} -DMQTT_RELAY -DENABLE_DS18B20=1
  339. [env:mqtt-relay-debug-ota]
  340. platform = espressif8266
  341. framework = arduino
  342. board = esp_wroom_02
  343. lib_deps = ${common.lib_deps}
  344. lib_ignore = ${common.lib_ignore}
  345. build_flags = ${common.build_flags} -DMQTT_RELAY -DENABLE_DS18B20=1
  346. upload_speed = 115200
  347. upload_port = "192.168.4.1"
  348. upload_flags = --auth=fibonacci --port 8266
  349. [env:wifi-relays-debug]
  350. platform = espressif8266
  351. framework = arduino
  352. board = esp01_1m
  353. lib_deps = ${common.lib_deps}
  354. lib_ignore = ${common.lib_ignore}
  355. build_flags = ${common.build_flags_1m} -DWIFI_RELAYS_BOARD_KIT
  356. [env:wifi-relays-debug-ota]
  357. platform = espressif8266
  358. framework = arduino
  359. board = esp01_1m
  360. lib_deps = ${common.lib_deps}
  361. lib_ignore = ${common.lib_ignore}
  362. build_flags = ${common.build_flags_1m} -DWIFI_RELAYS_BOARD_KIT
  363. upload_speed = 115200
  364. upload_port = "192.168.4.1"
  365. upload_flags = --auth=fibonacci --port 8266
  366. [env:ai-light-debug]
  367. platform = espressif8266
  368. framework = arduino
  369. board = esp01_1m
  370. board_flash_mode = dout
  371. lib_deps = ${common.lib_deps}
  372. lib_ignore = ${common.lib_ignore}
  373. build_flags = ${common.build_flags_1m} -DAI_LIGHT
  374. [env:ai-light-debug-ota]
  375. platform = espressif8266
  376. framework = arduino
  377. board = esp01_1m
  378. board_flash_mode = dout
  379. lib_deps = ${common.lib_deps}
  380. lib_ignore = ${common.lib_ignore}
  381. build_flags = ${common.build_flags_1m} -DAI_LIGHT
  382. upload_speed = 115200
  383. upload_port = "192.168.4.1"
  384. upload_flags = --auth=fibonacci --port 8266
  385. [env:led-controller-debug]
  386. platform = espressif8266
  387. framework = arduino
  388. board = esp01_1m
  389. lib_deps = ${common.lib_deps}
  390. lib_ignore = ${common.lib_ignore}
  391. build_flags = ${common.build_flags_1m} -DLED_CONTROLLER
  392. [env:led-controller-debug-ota]
  393. platform = espressif8266
  394. framework = arduino
  395. board = esp01_1m
  396. lib_deps = ${common.lib_deps}
  397. lib_ignore = ${common.lib_ignore}
  398. build_flags = ${common.build_flags_1m} -DLED_CONTROLLER
  399. upload_speed = 115200
  400. upload_port = "192.168.4.1"
  401. upload_flags = --auth=fibonacci --port 8266
  402. [env:h801-debug]
  403. platform = espressif8266
  404. framework = arduino
  405. board = esp01_1m
  406. board_flash_mode = dout
  407. lib_deps = ${common.lib_deps}
  408. lib_ignore = ${common.lib_ignore}
  409. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DH801_LED_CONTROLLER -DDEBUG_PORT=Serial1
  410. [env:h801-debug-ota]
  411. platform = espressif8266
  412. framework = arduino
  413. board = esp01_1m
  414. board_flash_mode = dout
  415. lib_deps = ${common.lib_deps}
  416. lib_ignore = ${common.lib_ignore}
  417. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DH801_LED_CONTROLLER -DDEBUG_PORT=Serial1
  418. upload_speed = 115200
  419. upload_port = "192.168.4.1"
  420. upload_flags = --auth=fibonacci --port 8266