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.

408 lines
11 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_1m128 = ${common.build_flags} -Wl,-Tesp8266.flash.1m128.ld
  8. lib_deps =
  9. DHT sensor library
  10. Adafruit Unified Sensor
  11. https://github.com/xoseperez/Time
  12. ArduinoJson
  13. https://github.com/me-no-dev/ESPAsyncTCP#36b6b5a
  14. https://github.com/me-no-dev/ESPAsyncWebServer#bab5457
  15. https://github.com/marvinroger/async-mqtt-client#f1b4576
  16. PubSubClient
  17. Embedis
  18. NtpClientLib
  19. OneWire
  20. DallasTemperature
  21. Brzo I2C
  22. https://bitbucket.org/xoseperez/justwifi.git#1.1.3
  23. https://bitbucket.org/xoseperez/hlw8012.git#1.0.0
  24. https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.0
  25. https://bitbucket.org/xoseperez/nofuss.git#0.2.2
  26. https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2
  27. https://bitbucket.org/xoseperez/debounceevent.git#2.0.0
  28. https://github.com/xoseperez/my9291#1.0.0
  29. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  30. lib_ignore =
  31. # ------------------------------------------------------------------------------
  32. [env:d1-debug]
  33. platform = espressif8266
  34. framework = arduino
  35. board = d1_mini
  36. lib_deps = ${common.lib_deps}
  37. lib_ignore = ${common.lib_ignore}
  38. extra_script = pio_hooks.py
  39. build_flags = ${common.build_flags} -DD1_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  40. [env:d1-debug-ota]
  41. platform = espressif8266
  42. framework = arduino
  43. board = d1_mini
  44. lib_deps = ${common.lib_deps}
  45. lib_ignore = ${common.lib_ignore}
  46. extra_script = pio_hooks.py
  47. build_flags = ${common.build_flags} -DD1_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  48. upload_speed = 115200
  49. upload_port = "192.168.4.1"
  50. upload_flags = --auth=fibonacci --port 8266
  51. [env:node-debug]
  52. platform = espressif8266
  53. framework = arduino
  54. board = nodemcuv2
  55. lib_deps = ${common.lib_deps}
  56. lib_ignore = ${common.lib_ignore}
  57. extra_script = pio_hooks.py
  58. build_flags = ${common.build_flags} -DNODEMCUV2 -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  59. [env:node-debug-ota]
  60. platform = espressif8266
  61. framework = arduino
  62. board = nodemcuv2
  63. lib_deps = ${common.lib_deps}
  64. lib_ignore = ${common.lib_ignore}
  65. extra_script = pio_hooks.py
  66. build_flags = ${common.build_flags} -DNODEMCUV2 -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  67. upload_speed = 115200
  68. upload_port = "192.168.4.1"
  69. upload_flags = --auth=fibonacci --port 8266
  70. [env:sonoff-debug]
  71. platform = espressif8266
  72. framework = arduino
  73. board = esp01_1m
  74. lib_deps = ${common.lib_deps}
  75. lib_ignore = ${common.lib_ignore}
  76. extra_script = pio_hooks.py
  77. build_flags = ${common.build_flags_1m128} -DSONOFF
  78. [env:sonoff-debug-ota]
  79. platform = espressif8266
  80. framework = arduino
  81. board = esp01_1m
  82. lib_deps = ${common.lib_deps}
  83. lib_ignore = ${common.lib_ignore}
  84. extra_script = pio_hooks.py
  85. build_flags = ${common.build_flags_1m128} -DSONOFF
  86. upload_speed = 115200
  87. upload_port = "192.168.4.1"
  88. upload_flags = --auth=fibonacci --port 8266
  89. [env:sonoff-dht22-debug]
  90. platform = espressif8266
  91. framework = arduino
  92. board = esp01_1m
  93. lib_deps = ${common.lib_deps}
  94. lib_ignore = ${common.lib_ignore}
  95. extra_script = pio_hooks.py
  96. build_flags = ${common.build_flags_1m128} -DSONOFF -DENABLE_DHT=1
  97. [env:sonoff-ds18b20-debug]
  98. platform = espressif8266
  99. framework = arduino
  100. board = esp01_1m
  101. lib_deps = ${common.lib_deps}
  102. lib_ignore = ${common.lib_ignore}
  103. extra_script = pio_hooks.py
  104. build_flags = ${common.build_flags_1m128} -DSONOFF -DENABLE_DS18B20=1
  105. [env:sonoff-pow-debug]
  106. platform = espressif8266
  107. framework = arduino
  108. board = esp01_1m
  109. lib_deps = ${common.lib_deps}
  110. lib_ignore = ${common.lib_ignore}
  111. extra_script = pio_hooks.py
  112. build_flags = ${common.build_flags_1m128} -DSONOFF_POW
  113. [env:sonoff-pow-debug-ota]
  114. platform = espressif8266
  115. framework = arduino
  116. board = esp01_1m
  117. lib_deps = ${common.lib_deps}
  118. lib_ignore = ${common.lib_ignore}
  119. extra_script = pio_hooks.py
  120. build_flags = ${common.build_flags_1m128} -DSONOFF_POW
  121. upload_speed = 115200
  122. upload_port = "192.168.4.1"
  123. upload_flags = --auth=fibonacci --port 8266
  124. [env:sonoff-dual-debug]
  125. platform = espressif8266
  126. framework = arduino
  127. board = esp01_1m
  128. lib_deps = ${common.lib_deps}
  129. lib_ignore = ${common.lib_ignore}
  130. extra_script = pio_hooks.py
  131. build_flags = ${common.build_flags_1m128} -DSONOFF_DUAL
  132. [env:sonoff-dual-debug-ota]
  133. platform = espressif8266
  134. framework = arduino
  135. board = esp01_1m
  136. lib_deps = ${common.lib_deps}
  137. lib_ignore = ${common.lib_ignore}
  138. extra_script = pio_hooks.py
  139. build_flags = ${common.build_flags_1m128} -DSONOFF_DUAL
  140. upload_speed = 115200
  141. upload_port = "192.168.4.1"
  142. upload_flags = --auth=fibonacci --port 8266
  143. [env:sonoff-4ch-debug]
  144. platform = espressif8266
  145. framework = arduino
  146. board = esp8285
  147. lib_deps = ${common.lib_deps}
  148. lib_ignore = ${common.lib_ignore}
  149. extra_script = pio_hooks.py
  150. build_flags = ${common.build_flags_1m128} -DSONOFF_4CH
  151. [env:sonoff-4ch-debug-ota]
  152. platform = espressif8266
  153. framework = arduino
  154. board = esp8285
  155. lib_deps = ${common.lib_deps}
  156. lib_ignore = ${common.lib_ignore}
  157. extra_script = pio_hooks.py
  158. build_flags = ${common.build_flags_1m128} -DSONOFF_4CH
  159. upload_speed = 115200
  160. upload_port = "192.168.4.1"
  161. upload_flags = --auth=fibonacci --port 8266
  162. [env:sonoff-touch-debug]
  163. platform = espressif8266
  164. framework = arduino
  165. board = esp8285
  166. lib_deps = ${common.lib_deps}
  167. lib_ignore = ${common.lib_ignore}
  168. extra_script = pio_hooks.py
  169. build_flags = ${common.build_flags_1m128} -DSONOFF_TOUCH
  170. [env:sonoff-touch-debug-ota]
  171. platform = espressif8266
  172. framework = arduino
  173. board = esp8285
  174. lib_deps = ${common.lib_deps}
  175. lib_ignore = ${common.lib_ignore}
  176. extra_script = pio_hooks.py
  177. build_flags = ${common.build_flags_1m128} -DSONOFF_TOUCH
  178. upload_speed = 115200
  179. upload_port = "192.168.4.1"
  180. upload_flags = --auth=fibonacci --port 8266
  181. [env:slampher-debug]
  182. platform = espressif8266
  183. framework = arduino
  184. board = esp01_1m
  185. lib_deps = ${common.lib_deps}
  186. lib_ignore = ${common.lib_ignore}
  187. extra_script = pio_hooks.py
  188. build_flags = ${common.build_flags_1m128} -DSLAMPHER
  189. [env:slampher-debug-ota]
  190. platform = espressif8266
  191. framework = arduino
  192. board = esp01_1m
  193. lib_deps = ${common.lib_deps}
  194. lib_ignore = ${common.lib_ignore}
  195. extra_script = pio_hooks.py
  196. build_flags = ${common.build_flags_1m128} -DSLAMPHER
  197. upload_speed = 115200
  198. upload_port = "192.168.4.1"
  199. upload_flags = --auth=fibonacci --port 8266
  200. [env:s20-debug]
  201. platform = espressif8266
  202. framework = arduino
  203. board = esp01_1m
  204. lib_deps = ${common.lib_deps}
  205. lib_ignore = ${common.lib_ignore}
  206. extra_script = pio_hooks.py
  207. build_flags = ${common.build_flags_1m128} -DS20
  208. [env:s20-debug-ota]
  209. platform = espressif8266
  210. framework = arduino
  211. board = esp01_1m
  212. lib_deps = ${common.lib_deps}
  213. lib_ignore = ${common.lib_ignore}
  214. extra_script = pio_hooks.py
  215. build_flags = ${common.build_flags_1m128} -DS20
  216. upload_speed = 115200
  217. upload_port = "192.168.4.1"
  218. upload_flags = --auth=fibonacci --port 8266
  219. [env:1ch-inching-debug]
  220. platform = espressif8266
  221. framework = arduino
  222. board = esp01_1m
  223. lib_deps = ${common.lib_deps}
  224. lib_ignore = ${common.lib_ignore}
  225. extra_script = pio_hooks.py
  226. build_flags = ${common.build_flags_1m128} -DITEAD_1CH_INCHING
  227. [env:1ch-inching-debug-ota]
  228. platform = espressif8266
  229. framework = arduino
  230. board = esp01_1m
  231. lib_deps = ${common.lib_deps}
  232. lib_ignore = ${common.lib_ignore}
  233. extra_script = pio_hooks.py
  234. build_flags = ${common.build_flags_1m128} -DITEAD_1CH_INCHING
  235. upload_speed = 115200
  236. upload_port = "192.168.4.1"
  237. upload_flags = --auth=fibonacci --port 8266
  238. [env:motor-debug]
  239. platform = espressif8266
  240. framework = arduino
  241. board = esp01_1m
  242. lib_deps = ${common.lib_deps}
  243. lib_ignore = ${common.lib_ignore}
  244. extra_script = pio_hooks.py
  245. build_flags = ${common.build_flags_1m128} -DITEAD_MOTOR
  246. [env:motor-debug-ota]
  247. platform = espressif8266
  248. framework = arduino
  249. board = esp01_1m
  250. lib_deps = ${common.lib_deps}
  251. lib_ignore = ${common.lib_ignore}
  252. extra_script = pio_hooks.py
  253. build_flags = ${common.build_flags_1m128} -DITEAD_MOTOR
  254. upload_speed = 115200
  255. upload_port = "192.168.4.1"
  256. upload_flags = --auth=fibonacci --port 8266
  257. [env:electrodragon-debug]
  258. platform = espressif8266
  259. framework = arduino
  260. board = esp12e
  261. lib_deps = ${common.lib_deps}
  262. lib_ignore = ${common.lib_ignore}
  263. extra_script = pio_hooks.py
  264. build_flags = ${common.build_flags} -DESP_RELAY_BOARD -DENABLE_DHT=1
  265. [env:electrodragon-debug-ota]
  266. platform = espressif8266
  267. framework = arduino
  268. board = esp12e
  269. lib_deps = ${common.lib_deps}
  270. lib_ignore = ${common.lib_ignore}
  271. extra_script = pio_hooks.py
  272. build_flags = ${common.build_flags} -DESP_RELAY_BOARD -DENABLE_DHT=1
  273. upload_speed = 115200
  274. upload_port = "192.168.4.1"
  275. upload_flags = --auth=fibonacci --port 8266
  276. [env:ecoplug-debug]
  277. platform = espressif8266
  278. framework = arduino
  279. board = esp01_1m
  280. lib_deps = ${common.lib_deps}
  281. lib_ignore = ${common.lib_ignore}
  282. extra_script = pio_hooks.py
  283. build_flags = ${common.build_flags_1m128} -DECOPLUG
  284. [env:ecoplug-debug-ota]
  285. platform = espressif8266
  286. framework = arduino
  287. board = esp01_1m
  288. lib_deps = ${common.lib_deps}
  289. lib_ignore = ${common.lib_ignore}
  290. extra_script = pio_hooks.py
  291. build_flags = ${common.build_flags_1m128} -DECOPLUG
  292. upload_speed = 115200
  293. upload_port = "192.168.4.1"
  294. upload_flags = --auth=fibonacci --port 8266
  295. [env:jangoe-debug]
  296. platform = espressif8266
  297. framework = arduino
  298. board = esp12e
  299. lib_deps = ${common.lib_deps}
  300. lib_ignore = ${common.lib_ignore}
  301. extra_script = pio_hooks.py
  302. build_flags = ${common.build_flags} -DWIFI_RELAY_NC
  303. [env:jangoe-debug-ota]
  304. platform = espressif8266
  305. framework = arduino
  306. board = esp12e
  307. lib_deps = ${common.lib_deps}
  308. lib_ignore = ${common.lib_ignore}
  309. extra_script = pio_hooks.py
  310. build_flags = ${common.build_flags} -DWIFI_RELAY_NC
  311. upload_speed = 115200
  312. upload_port = "192.168.4.1"
  313. upload_flags = --auth=fibonacci --port 8266
  314. [env:mqtt-relay-debug]
  315. platform = espressif8266
  316. framework = arduino
  317. board = esp_wroom_02
  318. lib_deps = ${common.lib_deps}
  319. lib_ignore = ${common.lib_ignore}
  320. extra_script = pio_hooks.py
  321. build_flags = ${common.build_flags} -DMQTT_RELAY -DENABLE_DS18B20=1
  322. [env:mqtt-relay-debug-ota]
  323. platform = espressif8266
  324. framework = arduino
  325. board = esp_wroom_02
  326. lib_deps = ${common.lib_deps}
  327. lib_ignore = ${common.lib_ignore}
  328. extra_script = pio_hooks.py
  329. build_flags = ${common.build_flags} -DMQTT_RELAY -DENABLE_DS18B20=1
  330. upload_speed = 115200
  331. upload_port = "192.168.4.1"
  332. upload_flags = --auth=fibonacci --port 8266
  333. [env:wifi-relays-debug]
  334. platform = espressif8266
  335. framework = arduino
  336. board = esp01_1m
  337. lib_deps = ${common.lib_deps}
  338. lib_ignore = ${common.lib_ignore}
  339. extra_script = pio_hooks.py
  340. build_flags = ${common.build_flags_1m128} -DWIFI_RELAYS_BOARD_KIT
  341. [env:wifi-relays-debug-ota]
  342. platform = espressif8266
  343. framework = arduino
  344. board = esp01_1m
  345. lib_deps = ${common.lib_deps}
  346. lib_ignore = ${common.lib_ignore}
  347. extra_script = pio_hooks.py
  348. build_flags = ${common.build_flags_1m128} -DWIFI_RELAYS_BOARD_KIT
  349. upload_speed = 115200
  350. upload_port = "192.168.4.1"
  351. upload_flags = --auth=fibonacci --port 8266
  352. [env:ai-light-debug]
  353. platform = espressif8266
  354. framework = arduino
  355. board = esp8285
  356. lib_deps = ${common.lib_deps}
  357. lib_ignore = ${common.lib_ignore}
  358. extra_script = pio_hooks.py
  359. build_flags = ${common.build_flags_1m128} -DAI_LIGHT
  360. [env:ai-light-debug-ota]
  361. platform = espressif8266
  362. framework = arduino
  363. board = esp8285
  364. lib_deps = ${common.lib_deps}
  365. lib_ignore = ${common.lib_ignore}
  366. extra_script = pio_hooks.py
  367. build_flags = ${common.build_flags_1m128} -DAI_LIGHT
  368. upload_speed = 115200
  369. upload_port = "192.168.4.1"
  370. upload_flags = --auth=fibonacci --port 8266