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.

1261 lines
36 KiB

7 years ago
7 years ago
  1. // -----------------------------------------------------------------------------
  2. // Configuration HELP
  3. // -----------------------------------------------------------------------------
  4. //
  5. // MANUFACTURER: Name of the manufacturer of the board ("string")
  6. // DEVICE: Name of the device ("string")
  7. // BUTTON#_PIN: GPIO for the n-th button (1-based, up to 4 buttons)
  8. // BUTTON#_RELAY: Relay number that will be bind to the n-th button (1-based)
  9. // BUTTON#_MODE: A mask of options (BUTTON_PUSHBUTTON and BUTTON_SWITCH cannot be together)
  10. // - BUTTON_PUSHBUTTON: button event is fired when released
  11. // - BUTTON_SWITCH: button event is fired when pressed or released
  12. // - BUTTON_DEFAULT_HIGH: there is a pull up in place
  13. // - BUTTON_SET_PULLUP: set pullup by software
  14. // RELAY#_PIN: GPIO for the n-th relay (1-based, up to 4 relays)
  15. // RELAY#_TYPE: Relay can be RELAY_TYPE_NORMAL, RELAY_TYPE_INVERSE or RELAY_TYPE_LATCHED
  16. // RELAY#_LED: LED number that will be bind to the n-th relay (1-based)
  17. // LED#_PIN: GPIO for the n-th LED (1-based, up to 4 LEDs)
  18. // LED#_PIN_INVERSE: LED has inversed logic (lit when pulled down)
  19. //
  20. // Besides, other hardware specific information should be stated here
  21. // -----------------------------------------------------------------------------
  22. // Development boards
  23. // -----------------------------------------------------------------------------
  24. #if defined(NODEMCU_LOLIN)
  25. // Info
  26. #define MANUFACTURER "NODEMCU"
  27. #define DEVICE "LOLIN"
  28. // Buttons
  29. #define BUTTON1_PIN 0
  30. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  31. #define BUTTON1_RELAY 1
  32. // Relays
  33. #define RELAY1_PIN 12
  34. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  35. // LEDs
  36. #define LED1_PIN 2
  37. #define LED1_PIN_INVERSE 1
  38. #elif defined(WEMOS_D1_MINI_RELAYSHIELD)
  39. // Info
  40. #define MANUFACTURER "WEMOS"
  41. #define DEVICE "D1_MINI_RELAYSHIELD"
  42. // Buttons
  43. // No buttons on the D1 MINI alone, but defining it without adding a button doen't create problems
  44. #define BUTTON1_PIN 0 // Connect a pushbutton between D3 and GND,
  45. // it's the same as using a Wemos one button shield
  46. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  47. #define BUTTON1_RELAY 1
  48. // Relays
  49. #define RELAY1_PIN 5
  50. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  51. // LEDs
  52. #define LED1_PIN 2
  53. #define LED1_PIN_INVERSE 1
  54. // -----------------------------------------------------------------------------
  55. // ESPurna
  56. // -----------------------------------------------------------------------------
  57. #elif defined(TINKERMAN_ESPURNA_H06)
  58. // Info
  59. #define MANUFACTURER "TINKERMAN"
  60. #define DEVICE "ESPURNA_H06"
  61. // Buttons
  62. #define BUTTON1_PIN 4
  63. #define BUTTON1_RELAY 1
  64. #ifdef USE_TOUCH_BUTTON
  65. // Touch button
  66. #define BUTTON1_MODE BUTTON_PUSHBUTTON
  67. #define BUTTON1_PRESS BUTTON_MODE_TOGGLE
  68. #define BUTTON1_CLICK BUTTON_MODE_NONE
  69. #define BUTTON1_DBLCLICK BUTTON_MODE_NONE
  70. #define BUTTON1_LNGCLICK BUTTON_MODE_NONE
  71. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE
  72. #else
  73. // Normal pushbutton
  74. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  75. #endif
  76. // Relays
  77. #define RELAY1_PIN 12
  78. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  79. // LEDs
  80. #define LED1_PIN 5
  81. #define LED1_PIN_INVERSE 0
  82. // HLW8012
  83. #define POWER_PROVIDER POWER_PROVIDER_HLW8012
  84. #define HLW8012_SEL_PIN 2
  85. #define HLW8012_CF1_PIN 13
  86. #define HLW8012_CF_PIN 14
  87. #elif defined(TINKERMAN_ESPURNA_H08)
  88. // Info
  89. #define MANUFACTURER "TINKERMAN"
  90. #define DEVICE "ESPURNA_H08"
  91. // Buttons
  92. #define BUTTON1_PIN 4
  93. #define BUTTON1_RELAY 1
  94. #ifdef USE_TOUCH_BUTTON
  95. // Touch button
  96. #define BUTTON1_MODE BUTTON_PUSHBUTTON
  97. #define BUTTON1_PRESS BUTTON_MODE_TOGGLE
  98. #define BUTTON1_CLICK BUTTON_MODE_NONE
  99. #define BUTTON1_DBLCLICK BUTTON_MODE_NONE
  100. #define BUTTON1_LNGCLICK BUTTON_MODE_NONE
  101. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE
  102. #else
  103. // Normal pushbutton
  104. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  105. #endif
  106. // Relays
  107. #define RELAY1_PIN 12
  108. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  109. // LEDs
  110. #define LED1_PIN 2
  111. #define LED1_PIN_INVERSE 1
  112. // HLW8012
  113. #define POWER_PROVIDER POWER_PROVIDER_HLW8012
  114. #define HLW8012_SEL_PIN 5
  115. #define HLW8012_CF1_PIN 13
  116. #define HLW8012_CF_PIN 14
  117. // -----------------------------------------------------------------------------
  118. // Itead Studio boards
  119. // -----------------------------------------------------------------------------
  120. #elif defined(ITEAD_SONOFF_BASIC)
  121. // Info
  122. #define MANUFACTURER "ITEAD"
  123. #define DEVICE "SONOFF_BASIC"
  124. // Buttons
  125. #define BUTTON1_PIN 0
  126. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  127. #define BUTTON1_RELAY 1
  128. // Relays
  129. #define RELAY1_PIN 12
  130. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  131. // LEDs
  132. #define LED1_PIN 13
  133. #define LED1_PIN_INVERSE 1
  134. #elif defined(ITEAD_SONOFF_RF)
  135. // Info
  136. #define MANUFACTURER "ITEAD"
  137. #define DEVICE "SONOFF_RF"
  138. // Buttons
  139. #define BUTTON1_PIN 0
  140. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  141. #define BUTTON1_RELAY 1
  142. // Relays
  143. #define RELAY1_PIN 12
  144. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  145. // LEDs
  146. #define LED1_PIN 13
  147. #define LED1_PIN_INVERSE 1
  148. #elif defined(ITEAD_SONOFF_TH)
  149. // Info
  150. #define MANUFACTURER "ITEAD"
  151. #define DEVICE "SONOFF_TH"
  152. // Buttons
  153. #define BUTTON1_PIN 0
  154. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  155. #define BUTTON1_RELAY 1
  156. // Relays
  157. #define RELAY1_PIN 12
  158. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  159. // LEDs
  160. #define LED1_PIN 13
  161. #define LED1_PIN_INVERSE 1
  162. #elif defined(ITEAD_SONOFF_SV)
  163. // Info
  164. #define MANUFACTURER "ITEAD"
  165. #define DEVICE "SONOFF_SV"
  166. // Buttons
  167. #define BUTTON1_PIN 0
  168. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  169. #define BUTTON1_RELAY 1
  170. // Relays
  171. #define RELAY1_PIN 12
  172. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  173. // LEDs
  174. #define LED1_PIN 13
  175. #define LED1_PIN_INVERSE 1
  176. #elif defined(ITEAD_SLAMPHER)
  177. // Info
  178. #define MANUFACTURER "ITEAD"
  179. #define DEVICE "SLAMPHER"
  180. // Buttons
  181. #define BUTTON1_PIN 0
  182. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  183. #define BUTTON1_RELAY 1
  184. // Relays
  185. #define RELAY1_PIN 12
  186. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  187. // LEDs
  188. #define LED1_PIN 13
  189. #define LED1_PIN_INVERSE 1
  190. #elif defined(ITEAD_S20)
  191. // Info
  192. #define MANUFACTURER "ITEAD"
  193. #define DEVICE "S20"
  194. // Buttons
  195. #define BUTTON1_PIN 0
  196. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  197. #define BUTTON1_RELAY 1
  198. // Relays
  199. #define RELAY1_PIN 12
  200. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  201. // LEDs
  202. #define LED1_PIN 13
  203. #define LED1_PIN_INVERSE 1
  204. #elif defined(ITEAD_SONOFF_TOUCH)
  205. // Info
  206. #define MANUFACTURER "ITEAD"
  207. #define DEVICE "SONOFF_TOUCH"
  208. // Buttons
  209. #define BUTTON1_PIN 0
  210. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  211. #define BUTTON1_RELAY 1
  212. // Relays
  213. #define RELAY1_PIN 12
  214. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  215. // LEDs
  216. #define LED1_PIN 13
  217. #define LED1_PIN_INVERSE 1
  218. #elif defined(ITEAD_SONOFF_POW)
  219. // Info
  220. #define MANUFACTURER "ITEAD"
  221. #define DEVICE "SONOFF_POW"
  222. // Buttons
  223. #define BUTTON1_PIN 0
  224. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  225. #define BUTTON1_RELAY 1
  226. // Relays
  227. #define RELAY1_PIN 12
  228. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  229. // LEDs
  230. #define LED1_PIN 15
  231. #define LED1_PIN_INVERSE 0
  232. // HLW8012
  233. #define POWER_PROVIDER POWER_PROVIDER_HLW8012
  234. #define HLW8012_SEL_PIN 5
  235. #define HLW8012_CF1_PIN 13
  236. #define HLW8012_CF_PIN 14
  237. #elif defined(ITEAD_SONOFF_DUAL)
  238. // Info
  239. #define MANUFACTURER "ITEAD"
  240. #define DEVICE "SONOFF_DUAL"
  241. #define SERIAL_BAUDRATE 19230
  242. #define RELAY_PROVIDER RELAY_PROVIDER_DUAL
  243. #define DUMMY_RELAY_COUNT 2
  244. #define DEBUG_SERIAL_SUPPORT 0
  245. #define TERMINAL_SUPPORT 0
  246. // Buttons
  247. #define BUTTON3_RELAY 1
  248. // LEDs
  249. #define LED1_PIN 13
  250. #define LED1_PIN_INVERSE 1
  251. #elif defined(ITEAD_SONOFF_4CH)
  252. // Info
  253. #define MANUFACTURER "ITEAD"
  254. #define DEVICE "SONOFF_4CH"
  255. // Buttons
  256. #define BUTTON1_PIN 0
  257. #define BUTTON2_PIN 9
  258. #define BUTTON3_PIN 10
  259. #define BUTTON4_PIN 14
  260. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  261. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  262. #define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  263. #define BUTTON4_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  264. #define BUTTON1_RELAY 1
  265. #define BUTTON2_RELAY 2
  266. #define BUTTON3_RELAY 3
  267. #define BUTTON4_RELAY 4
  268. // Relays
  269. #define RELAY1_PIN 12
  270. #define RELAY2_PIN 5
  271. #define RELAY3_PIN 4
  272. #define RELAY4_PIN 15
  273. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  274. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  275. #define RELAY3_TYPE RELAY_TYPE_NORMAL
  276. #define RELAY4_TYPE RELAY_TYPE_NORMAL
  277. // LEDs
  278. #define LED1_PIN 13
  279. #define LED1_PIN_INVERSE 1
  280. #elif defined(ITEAD_SONOFF_4CH_PRO)
  281. // Info
  282. #define MANUFACTURER "ITEAD"
  283. #define DEVICE "SONOFF_4CH_PRO"
  284. // Buttons
  285. #define BUTTON1_PIN 0
  286. #define BUTTON2_PIN 9
  287. #define BUTTON3_PIN 10
  288. #define BUTTON4_PIN 14
  289. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  290. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  291. #define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  292. #define BUTTON4_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  293. #define BUTTON1_RELAY 1
  294. #define BUTTON2_RELAY 2
  295. #define BUTTON3_RELAY 3
  296. #define BUTTON4_RELAY 4
  297. // Relays
  298. #define RELAY1_PIN 12
  299. #define RELAY2_PIN 5
  300. #define RELAY3_PIN 4
  301. #define RELAY4_PIN 15
  302. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  303. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  304. #define RELAY3_TYPE RELAY_TYPE_NORMAL
  305. #define RELAY4_TYPE RELAY_TYPE_NORMAL
  306. // LEDs
  307. #define LED1_PIN 13
  308. #define LED1_PIN_INVERSE 1
  309. #elif defined(ITEAD_1CH_INCHING)
  310. // The inching functionality is managed by a misterious IC in the board.
  311. // You cannot control the inching button and functionality from the ESP8266
  312. // Besides, enabling the inching functionality using the hardware button
  313. // will result in the relay switching on and off continuously.
  314. // Fortunately the unkown IC keeps memory of the hardware inching status
  315. // so you can just disable it and forget. The inching LED must be lit.
  316. // You can still use the pulse options from the web interface
  317. // without problem.
  318. // Info
  319. #define MANUFACTURER "ITEAD"
  320. #define DEVICE "1CH_INCHING"
  321. // Buttons
  322. #define BUTTON1_PIN 0
  323. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  324. #define BUTTON1_RELAY 1
  325. // Relays
  326. #define RELAY1_PIN 12
  327. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  328. // LEDs
  329. #define LED1_PIN 13
  330. #define LED1_PIN_INVERSE 1
  331. #elif defined(ITEAD_MOTOR)
  332. // Info
  333. #define MANUFACTURER "ITEAD"
  334. #define DEVICE "MOTOR"
  335. // Buttons
  336. #define BUTTON1_PIN 0
  337. #define BUTTON1_RELAY 1
  338. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  339. // Relays
  340. #define RELAY1_PIN 12
  341. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  342. // LEDs
  343. #define LED1_PIN 13
  344. #define LED1_PIN_INVERSE 1
  345. #elif defined(ITEAD_BNSZ01)
  346. // Info
  347. #define MANUFACTURER "ITEAD"
  348. #define DEVICE "BNSZ01"
  349. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  350. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  351. #define DUMMY_RELAY_COUNT 1
  352. // LEDs
  353. #define LED1_PIN 13
  354. #define LED1_PIN_INVERSE 1
  355. // Channels
  356. #define LIGHT_CH1_PIN 12
  357. #define LIGHT_CH1_INVERSE 0
  358. #elif defined(ITEAD_SONOFF_RFBRIDGE)
  359. // Info
  360. #define MANUFACTURER "ITEAD"
  361. #define DEVICE "SONOFF_RFBRIDGE"
  362. #define SERIAL_BAUDRATE 19200
  363. #define RELAY_PROVIDER RELAY_PROVIDER_RFBRIDGE
  364. #ifndef DUMMY_RELAY_COUNT
  365. #define DUMMY_RELAY_COUNT 6
  366. #endif
  367. #define TERMINAL_SUPPORT 0
  368. #define TRACK_RELAY_STATUS 0
  369. // Buttons
  370. #define BUTTON1_PIN 0
  371. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  372. // LEDs
  373. #define LED1_PIN 13
  374. #define LED1_PIN_INVERSE 1
  375. #elif defined(ITEAD_SONOFF_B1)
  376. // Info
  377. #define MANUFACTURER "ITEAD"
  378. #define DEVICE "SONOFF_B1"
  379. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  380. #define LIGHT_PROVIDER LIGHT_PROVIDER_MY9192
  381. #define DUMMY_RELAY_COUNT 1
  382. #define MY9291_DI_PIN 12
  383. #define MY9291_DCKI_PIN 14
  384. #define MY9291_COMMAND MY9291_COMMAND_DEFAULT
  385. #define MY9291_CHANNELS 5
  386. #elif defined(ITEAD_SONOFF_LED)
  387. // Info
  388. #define MANUFACTURER "ITEAD"
  389. #define DEVICE "SONOFF_LED"
  390. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  391. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  392. #define DUMMY_RELAY_COUNT 1
  393. // LEDs
  394. #define LED1_PIN 13
  395. #define LED1_PIN_INVERSE 1
  396. // Channels
  397. #define LIGHT_CH1_PIN 12 // Cold white
  398. #define LIGHT_CH2_PIN 14 // Warm white
  399. #define LIGHT_CH1_INVERSE 0
  400. #define LIGHT_CH2_INVERSE 0
  401. #elif defined(ITEAD_SONOFF_T1_1CH)
  402. // Info
  403. #define MANUFACTURER "ITEAD"
  404. #define DEVICE "SONOFF_T1_1CH"
  405. // Buttons
  406. #define BUTTON1_PIN 9
  407. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  408. #define BUTTON1_RELAY 1
  409. // Relays
  410. #define RELAY1_PIN 5
  411. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  412. // LEDs
  413. #define LED1_PIN 13
  414. #define LED1_PIN_INVERSE 1
  415. #elif defined(ITEAD_SONOFF_T1_2CH)
  416. // Info
  417. #define MANUFACTURER "ITEAD"
  418. #define DEVICE "SONOFF_T1_2CH"
  419. // Buttons
  420. #define BUTTON1_PIN 0
  421. #define BUTTON2_PIN 10
  422. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  423. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  424. #define BUTTON1_RELAY 1
  425. #define BUTTON2_RELAY 2
  426. // Relays
  427. #define RELAY1_PIN 12
  428. #define RELAY2_PIN 4
  429. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  430. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  431. // LEDs
  432. #define LED1_PIN 13
  433. #define LED1_PIN_INVERSE 1
  434. #elif defined(ITEAD_SONOFF_T1_3CH)
  435. // Info
  436. #define MANUFACTURER "ITEAD"
  437. #define DEVICE "SONOFF_T1_3CH"
  438. // Buttons
  439. #define BUTTON1_PIN 0
  440. #define BUTTON2_PIN 9
  441. #define BUTTON3_PIN 10
  442. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  443. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  444. #define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  445. #define BUTTON1_RELAY 1
  446. #define BUTTON2_RELAY 2
  447. #define BUTTON3_RELAY 3
  448. // Relays
  449. #define RELAY1_PIN 12
  450. #define RELAY2_PIN 5
  451. #define RELAY3_PIN 4
  452. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  453. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  454. #define RELAY3_TYPE RELAY_TYPE_NORMAL
  455. // LEDs
  456. #define LED1_PIN 13
  457. #define LED1_PIN_INVERSE 1
  458. // -----------------------------------------------------------------------------
  459. // Electrodragon boards
  460. // -----------------------------------------------------------------------------
  461. #elif defined(ELECTRODRAGON_WIFI_IOT)
  462. // Info
  463. #define MANUFACTURER "ELECTRODRAGON"
  464. #define DEVICE "WIFI_IOT"
  465. // Buttons
  466. #define BUTTON1_PIN 0
  467. #define BUTTON2_PIN 2
  468. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  469. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  470. #define BUTTON1_RELAY 1
  471. #define BUTTON2_RELAY 2
  472. // Relays
  473. #define RELAY1_PIN 12
  474. #define RELAY2_PIN 13
  475. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  476. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  477. // LEDs
  478. #define LED1_PIN 16
  479. #define LED1_PIN_INVERSE 0
  480. // -----------------------------------------------------------------------------
  481. // WorkChoice ecoPlug
  482. // -----------------------------------------------------------------------------
  483. #elif defined(WORKCHOICE_ECOPLUG)
  484. // Info
  485. #define MANUFACTURER "WORKCHOICE"
  486. #define DEVICE "ECOPLUG"
  487. // Buttons
  488. #define BUTTON1_PIN 13
  489. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  490. #define BUTTON1_RELAY 1
  491. // Relays
  492. #define RELAY1_PIN 15
  493. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  494. // LEDs
  495. #define LED1_PIN 2
  496. #define LED1_PIN_INVERSE 0
  497. // -----------------------------------------------------------------------------
  498. // AI Thinker
  499. // -----------------------------------------------------------------------------
  500. #elif defined(AITHINKER_AI_LIGHT)
  501. // Info
  502. #define MANUFACTURER "AITHINKER"
  503. #define DEVICE "AI_LIGHT"
  504. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  505. #define LIGHT_PROVIDER LIGHT_PROVIDER_MY9192
  506. #define DUMMY_RELAY_COUNT 1
  507. #define MY9291_DI_PIN 13
  508. #define MY9291_DCKI_PIN 15
  509. #define MY9291_COMMAND MY9291_COMMAND_DEFAULT
  510. #define MY9291_CHANNELS 4
  511. // -----------------------------------------------------------------------------
  512. // LED Controller
  513. // -----------------------------------------------------------------------------
  514. #elif defined(MAGICHOME_LED_CONTROLLER)
  515. // Info
  516. #define MANUFACTURER "MAGICHOME"
  517. #define DEVICE "LED_CONTROLLER"
  518. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  519. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  520. #define DUMMY_RELAY_COUNT 1
  521. // LEDs
  522. #define LED1_PIN 2
  523. #define LED1_PIN_INVERSE 1
  524. // Channels
  525. #define LIGHT_CH1_PIN 14 // RED
  526. #define LIGHT_CH2_PIN 5 // GREEN
  527. #define LIGHT_CH3_PIN 12 // BLUE
  528. #define LIGHT_CH4_PIN 13 // WHITE
  529. #define LIGHT_CH1_INVERSE 0
  530. #define LIGHT_CH2_INVERSE 0
  531. #define LIGHT_CH3_INVERSE 0
  532. #define LIGHT_CH4_INVERSE 0
  533. #elif defined(MAGICHOME_LED_CONTROLLER_20)
  534. // Info
  535. #define MANUFACTURER "MAGICHOME"
  536. #define DEVICE "LED_CONTROLLER_20"
  537. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  538. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  539. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  540. #define DUMMY_RELAY_COUNT 1
  541. //#define LIGHT_PROVIDER_EXPERIMENTAL_RGB_ONLY_HSV_IR
  542. // LEDs
  543. #define LED1_PIN 2
  544. #define LED1_PIN_INVERSE 1
  545. // Channels
  546. #define LIGHT_CH1_PIN 5 // RED
  547. #define LIGHT_CH2_PIN 12 // GREEN
  548. #define LIGHT_CH3_PIN 13 // BLUE
  549. #define LIGHT_CH4_PIN 15 // WHITE
  550. #define LIGHT_CH1_INVERSE 0
  551. #define LIGHT_CH2_INVERSE 0
  552. #define LIGHT_CH3_INVERSE 0
  553. #define LIGHT_CH4_INVERSE 0
  554. // IR
  555. #define IR_SUPPORT 1
  556. #define IR_PIN 4
  557. #define IR_BUTTON_SET 1
  558. // -----------------------------------------------------------------------------
  559. // HUACANXING H801 & H802
  560. // -----------------------------------------------------------------------------
  561. #elif defined(HUACANXING_H801)
  562. // Info
  563. #define MANUFACTURER "HUACANXING"
  564. #define DEVICE "H801"
  565. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  566. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  567. #define DUMMY_RELAY_COUNT 1
  568. // LEDs
  569. #define LED1_PIN 5
  570. #define LED1_PIN_INVERSE 1
  571. // Channels
  572. #define LIGHT_CH1_PIN 15 // RED
  573. #define LIGHT_CH2_PIN 13 // GREEN
  574. #define LIGHT_CH3_PIN 12 // BLUE
  575. #define LIGHT_CH4_PIN 14 // WHITE1
  576. #define LIGHT_CH5_PIN 4 // WHITE2
  577. #define LIGHT_CH1_INVERSE 0
  578. #define LIGHT_CH2_INVERSE 0
  579. #define LIGHT_CH3_INVERSE 0
  580. #define LIGHT_CH4_INVERSE 0
  581. #define LIGHT_CH5_INVERSE 0
  582. #elif defined(HUACANXING_H802)
  583. // Info
  584. #define MANUFACTURER "HUACANXING"
  585. #define DEVICE "H802"
  586. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  587. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  588. #define DUMMY_RELAY_COUNT 1
  589. // Channels
  590. #define LIGHT_CH1_PIN 12 // RED
  591. #define LIGHT_CH2_PIN 14 // GREEN
  592. #define LIGHT_CH3_PIN 13 // BLUE
  593. #define LIGHT_CH4_PIN 15 // WHITE
  594. #define LIGHT_CH1_INVERSE 0
  595. #define LIGHT_CH2_INVERSE 0
  596. #define LIGHT_CH3_INVERSE 0
  597. #define LIGHT_CH4_INVERSE 0
  598. // -----------------------------------------------------------------------------
  599. // Jan Goedeke Wifi Relay
  600. // https://github.com/JanGoe/esp8266-wifi-relay
  601. // -----------------------------------------------------------------------------
  602. #elif defined(JANGOE_WIFI_RELAY_NC)
  603. // Info
  604. #define MANUFACTURER "JANGOE"
  605. #define DEVICE "WIFI_RELAY_NC"
  606. // Buttons
  607. #define BUTTON1_PIN 12
  608. #define BUTTON2_PIN 13
  609. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  610. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  611. #define BUTTON1_RELAY 1
  612. #define BUTTON2_RELAY 2
  613. // Relays
  614. #define RELAY1_PIN 2
  615. #define RELAY2_PIN 14
  616. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  617. #define RELAY2_TYPE RELAY_TYPE_INVERSE
  618. #elif defined(JANGOE_WIFI_RELAY_NO)
  619. // Info
  620. #define MANUFACTURER "JANGOE"
  621. #define DEVICE "WIFI_RELAY_NO"
  622. // Buttons
  623. #define BUTTON1_PIN 12
  624. #define BUTTON2_PIN 13
  625. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  626. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  627. #define BUTTON1_RELAY 1
  628. #define BUTTON2_RELAY 2
  629. // Relays
  630. #define RELAY1_PIN 2
  631. #define RELAY2_PIN 14
  632. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  633. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  634. // -----------------------------------------------------------------------------
  635. // Jorge García Wifi+Relays Board Kit
  636. // https://www.tindie.com/products/jorgegarciadev/wifi--relays-board-kit
  637. // https://github.com/jorgegarciadev/wifikit
  638. // -----------------------------------------------------------------------------
  639. #elif defined(JORGEGARCIA_WIFI_RELAYS)
  640. // Info
  641. #define MANUFACTURER "JORGEGARCIA"
  642. #define DEVICE "WIFI_RELAYS"
  643. // Relays
  644. #define RELAY1_PIN 0
  645. #define RELAY2_PIN 2
  646. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  647. #define RELAY2_TYPE RELAY_TYPE_INVERSE
  648. // -----------------------------------------------------------------------------
  649. // WiFi MQTT Relay / Thermostat
  650. // -----------------------------------------------------------------------------
  651. #elif defined(OPENENERGYMONITOR_MQTT_RELAY)
  652. // Info
  653. #define MANUFACTURER "OPENENERGYMONITOR"
  654. #define DEVICE "MQTT_RELAY"
  655. // Buttons
  656. #define BUTTON1_PIN 0
  657. #define BUTTON1_RELAY 1
  658. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  659. // Relays
  660. #define RELAY1_PIN 12
  661. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  662. // LEDs
  663. #define LED1_PIN 16
  664. #define LED1_PIN_INVERSE 0
  665. // -----------------------------------------------------------------------------
  666. // WiOn 50055 Indoor Wi-Fi Wall Outlet & Tap
  667. // https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338044841&mpre=http%3A%2F%2Fwww.ebay.com%2Fitm%2FWiOn-50050-Indoor-Wi-Fi-Outlet-Wireless-Switch-Programmable-Timer-%2F263112281551
  668. // https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338044841&mpre=http%3A%2F%2Fwww.ebay.com%2Fitm%2FWiOn-50055-Indoor-Wi-Fi-Wall-Tap-Monitor-Energy-Usage-Wireless-Smart-Switch-%2F263020837777
  669. // -----------------------------------------------------------------------------
  670. #elif defined(WION_50055)
  671. // Currently untested, does not support energy monitoring
  672. // Info
  673. #define MANUFACTURER "WION"
  674. #define DEVICE "50055"
  675. // Buttons
  676. #define BUTTON1_PIN 13
  677. #define BUTTON1_RELAY 1
  678. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  679. // Relays
  680. #define RELAY1_PIN 15
  681. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  682. // LEDs
  683. #define LED1_PIN 2
  684. #define LED1_PIN_INVERSE 0
  685. // -----------------------------------------------------------------------------
  686. // EX-Store Wifi Relay v3.1
  687. // https://ex-store.de/ESP8266-WiFi-Relay-V31
  688. // -----------------------------------------------------------------------------
  689. #elif defined(EXS_WIFI_RELAY_V31)
  690. // Untested
  691. // Info
  692. #define MANUFACTURER "EXS"
  693. #define DEVICE "WIFI_RELAY_V31"
  694. // Buttons
  695. #define BUTTON1_PIN 0
  696. #define BUTTON1_RELAY 1
  697. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  698. // Relays
  699. #define RELAY1_PIN 13
  700. #define RELAY1_TYPE RELAY_TYPE_LATCHED
  701. #define RELAY1_RESET_PIN 12
  702. // -----------------------------------------------------------------------------
  703. // V9261F
  704. // -----------------------------------------------------------------------------
  705. #elif defined(GENERIC_V9261F)
  706. // Info
  707. #define MANUFACTURER "GENERIC"
  708. #define DEVICE "V9261F"
  709. // V9261F
  710. #define POWER_PROVIDER POWER_PROVIDER_V9261F
  711. #define V9261F_PIN 2
  712. #define V9261F_PIN_INVERSE 1
  713. // -----------------------------------------------------------------------------
  714. // ECH1560
  715. // -----------------------------------------------------------------------------
  716. #elif defined(GENERIC_ECH1560)
  717. // Info
  718. #define MANUFACTURER "GENERIC"
  719. #define DEVICE "ECH1560"
  720. // ECH1560
  721. #define POWER_PROVIDER POWER_PROVIDER_ECH1560
  722. #define ECH1560_CLK_PIN 4
  723. #define ECH1560_MISO_PIN 5
  724. #define ECH1560_INVERTED 0
  725. // -----------------------------------------------------------------------------
  726. // ESPLive
  727. // https://github.com/ManCaveMade/ESP-Live
  728. // -----------------------------------------------------------------------------
  729. #elif defined(MANCAVEMADE_ESPLIVE)
  730. // Info
  731. #define MANUFACTURER "MANCAVEMADE"
  732. #define DEVICE "ESPLIVE"
  733. // Buttons
  734. #define BUTTON1_PIN 4
  735. #define BUTTON2_PIN 5
  736. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  737. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  738. #define BUTTON1_RELAY 1
  739. #define BUTTON2_RELAY 2
  740. // Relays
  741. #define RELAY1_PIN 12
  742. #define RELAY2_PIN 13
  743. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  744. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  745. // DB18B20
  746. #define DS18B20_SUPPORT 1
  747. #define DS18B20_PIN 2
  748. #define DS18B20_UPDATE_INTERVAL 5000
  749. #define DS18B20_UPDATE_ON_CHANGE 1.0
  750. // -----------------------------------------------------------------------------
  751. // QuinLED
  752. // http://blog.quindorian.org/2017/02/esp8266-led-lighting-quinled-v2-6-pcb.html
  753. // -----------------------------------------------------------------------------
  754. #elif defined(INTERMITTECH_QUINLED)
  755. // Info
  756. #define MANUFACTURER "INTERMITTECH"
  757. #define DEVICE "QUINLED"
  758. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  759. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  760. #define DUMMY_RELAY_COUNT 1
  761. // LEDs
  762. #define LED1_PIN 5
  763. #define LED1_PIN_INVERSE 1
  764. // Channels
  765. #define LIGHT_CH1_PIN 0
  766. #define LIGHT_CH2_PIN 2
  767. #define LIGHT_CH1_INVERSE 0
  768. #define LIGHT_CH2_INVERSE 0
  769. // -----------------------------------------------------------------------------
  770. // Arilux AL-LC06
  771. // -----------------------------------------------------------------------------
  772. #elif defined(ARILUX_AL_LC06)
  773. // Info
  774. #define MANUFACTURER "ARILUX"
  775. #define DEVICE "AL-LC06"
  776. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  777. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  778. #define DUMMY_RELAY_COUNT 1
  779. // Channels
  780. #define LIGHT_CH1_PIN 12 // RED
  781. #define LIGHT_CH2_PIN 14 // GREEN
  782. #define LIGHT_CH3_PIN 13 // BLUE
  783. #define LIGHT_CH4_PIN 15 // WHITE1
  784. #define LIGHT_CH5_PIN 5 // WHITE2
  785. #define LIGHT_CH1_INVERSE 0
  786. #define LIGHT_CH2_INVERSE 0
  787. #define LIGHT_CH3_INVERSE 0
  788. #define LIGHT_CH4_INVERSE 0
  789. #define LIGHT_CH5_INVERSE 0
  790. // -----------------------------------------------------------------------------
  791. // XENON SM-PW701U
  792. // -----------------------------------------------------------------------------
  793. #elif defined(XENON_SM_PW702U)
  794. // Info
  795. #define MANUFACTURER "XENON"
  796. #define DEVICE "SM_PW702U"
  797. // Buttons
  798. #define BUTTON1_PIN 13
  799. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  800. #define BUTTON1_RELAY 1
  801. // Relays
  802. #define RELAY1_PIN 12
  803. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  804. // LEDs
  805. #define LED1_PIN 4
  806. #define LED1_PIN_INVERSE 1
  807. // -----------------------------------------------------------------------------
  808. // AUTHOMETION LYT8266
  809. // https://authometion.com/shop/en/home/13-lyt8266.html
  810. // -----------------------------------------------------------------------------
  811. #elif defined(AUTHOMETION_LYT8266)
  812. // Info
  813. #define MANUFACTURER "AUTHOMETION"
  814. #define DEVICE "LYT8266"
  815. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  816. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  817. #define DUMMY_RELAY_COUNT 1
  818. // Channels
  819. #define LIGHT_CH1_PIN 13 // RED
  820. #define LIGHT_CH2_PIN 12 // GREEN
  821. #define LIGHT_CH3_PIN 14 // BLUE
  822. #define LIGHT_CH4_PIN 2 // WHITE
  823. #define LIGHT_CH1_INVERSE 0
  824. #define LIGHT_CH2_INVERSE 0
  825. #define LIGHT_CH3_INVERSE 0
  826. #define LIGHT_CH4_INVERSE 0
  827. #define LIGHT_ENABLE_PIN 15
  828. // -----------------------------------------------------------------------------
  829. // Unknown hardware
  830. // -----------------------------------------------------------------------------
  831. #else
  832. #error "UNSUPPORTED HARDWARE!"
  833. #endif
  834. // -----------------------------------------------------------------------------
  835. // Default values
  836. // -----------------------------------------------------------------------------
  837. #ifndef BUTTON1_PRESS
  838. #define BUTTON1_PRESS BUTTON_MODE_NONE
  839. #endif
  840. #ifndef BUTTON2_PRESS
  841. #define BUTTON2_PRESS BUTTON_MODE_NONE
  842. #endif
  843. #ifndef BUTTON3_PRESS
  844. #define BUTTON3_PRESS BUTTON_MODE_NONE
  845. #endif
  846. #ifndef BUTTON4_PRESS
  847. #define BUTTON4_PRESS BUTTON_MODE_NONE
  848. #endif
  849. #ifndef BUTTON1_CLICK
  850. #define BUTTON1_CLICK BUTTON_MODE_TOGGLE
  851. #endif
  852. #ifndef BUTTON2_CLICK
  853. #define BUTTON2_CLICK BUTTON_MODE_TOGGLE
  854. #endif
  855. #ifndef BUTTON3_CLICK
  856. #define BUTTON3_CLICK BUTTON_MODE_TOGGLE
  857. #endif
  858. #ifndef BUTTON4_CLICK
  859. #define BUTTON4_CLICK BUTTON_MODE_TOGGLE
  860. #endif
  861. #ifndef BUTTON1_DBLCLICK
  862. #define BUTTON1_DBLCLICK BUTTON_MODE_AP
  863. #endif
  864. #ifndef BUTTON2_DBLCLICK
  865. #define BUTTON2_DBLCLICK BUTTON_MODE_NONE
  866. #endif
  867. #ifndef BUTTON3_DBLCLICK
  868. #define BUTTON3_DBLCLICK BUTTON_MODE_NONE
  869. #endif
  870. #ifndef BUTTON4_DBLCLICK
  871. #define BUTTON4_DBLCLICK BUTTON_MODE_NONE
  872. #endif
  873. #ifndef BUTTON1_LNGCLICK
  874. #define BUTTON1_LNGCLICK BUTTON_MODE_RESET
  875. #endif
  876. #ifndef BUTTON2_LNGCLICK
  877. #define BUTTON2_LNGCLICK BUTTON_MODE_NONE
  878. #endif
  879. #ifndef BUTTON3_LNGCLICK
  880. #define BUTTON3_LNGCLICK BUTTON_MODE_NONE
  881. #endif
  882. #ifndef BUTTON4_LNGCLICK
  883. #define BUTTON4_LNGCLICK BUTTON_MODE_NONE
  884. #endif
  885. #ifndef BUTTON1_LNGLNGCLICK
  886. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_FACTORY
  887. #endif
  888. #ifndef BUTTON2_LNGLNGCLICK
  889. #define BUTTON2_LNGLNGCLICK BUTTON_MODE_NONE
  890. #endif
  891. #ifndef BUTTON3_LNGLNGCLICK
  892. #define BUTTON3_LNGLNGCLICK BUTTON_MODE_NONE
  893. #endif
  894. #ifndef BUTTON4_LNGLNGCLICK
  895. #define BUTTON4_LNGLNGCLICK BUTTON_MODE_NONE
  896. #endif
  897. #ifndef BUTTON1_RELAY
  898. #define BUTTON1_RELAY 0
  899. #endif
  900. #ifndef BUTTON2_RELAY
  901. #define BUTTON2_RELAY 0
  902. #endif
  903. #ifndef BUTTON3_RELAY
  904. #define BUTTON3_RELAY 0
  905. #endif
  906. #ifndef BUTTON4_RELAY
  907. #define BUTTON4_RELAY 0
  908. #endif
  909. #ifndef RELAY1_RESET_PIN
  910. #define RELAY1_RESET_PIN 0
  911. #endif
  912. #ifndef RELAY2_RESET_PIN
  913. #define RELAY2_RESET_PIN 0
  914. #endif
  915. #ifndef RELAY3_RESET_PIN
  916. #define RELAY3_RESET_PIN 0
  917. #endif
  918. #ifndef RELAY4_RESET_PIN
  919. #define RELAY4_RESET_PIN 0
  920. #endif
  921. #ifndef RELAY1_DELAY_ON
  922. #define RELAY1_DELAY_ON 0
  923. #endif
  924. #ifndef RELAY2_DELAY_ON
  925. #define RELAY2_DELAY_ON 0
  926. #endif
  927. #ifndef RELAY3_DELAY_ON
  928. #define RELAY3_DELAY_ON 0
  929. #endif
  930. #ifndef RELAY4_DELAY_ON
  931. #define RELAY4_DELAY_ON 0
  932. #endif
  933. #ifndef RELAY1_DELAY_OFF
  934. #define RELAY1_DELAY_OFF 0
  935. #endif
  936. #ifndef RELAY2_DELAY_OFF
  937. #define RELAY2_DELAY_OFF 0
  938. #endif
  939. #ifndef RELAY3_DELAY_OFF
  940. #define RELAY3_DELAY_OFF 0
  941. #endif
  942. #ifndef RELAY4_DELAY_OFF
  943. #define RELAY4_DELAY_OFF 0
  944. #endif
  945. #ifndef RELAY1_LED
  946. #define RELAY1_LED 0
  947. #endif
  948. #ifndef RELAY2_LED
  949. #define RELAY2_LED 0
  950. #endif
  951. #ifndef RELAY3_LED
  952. #define RELAY3_LED 0
  953. #endif
  954. #ifndef RELAY4_LED
  955. #define RELAY4_LED 0
  956. #endif
  957. // Needed for ESP8285 boards under Windows using PlatformIO (?)
  958. #ifndef BUTTON_PUSHBUTTON
  959. #define BUTTON_PUSHBUTTON 0
  960. #define BUTTON_SWITCH 1
  961. #define BUTTON_DEFAULT_HIGH 2
  962. #define BUTTON_SET_PULLUP 4
  963. #endif
  964. // Does the board track the relay status?
  965. #ifndef TRACK_RELAY_STATUS
  966. #define TRACK_RELAY_STATUS 1
  967. #endif
  968. // Serial baudrate
  969. #ifndef SERIAL_BAUDRATE
  970. #define SERIAL_BAUDRATE 115200
  971. #endif
  972. // Relay providers
  973. #ifndef RELAY_PROVIDER
  974. #define RELAY_PROVIDER RELAY_PROVIDER_RELAY
  975. #endif
  976. // Light provider
  977. #ifndef LIGHT_PROVIDER
  978. #define LIGHT_PROVIDER LIGHT_PROVIDER_NONE
  979. #endif