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.

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