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.

1265 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. // IR
  534. #define IR_SUPPORT 1
  535. #define IR_PIN 4
  536. #define IR_BUTTON_SET 1
  537. #elif defined(MAGICHOME_LED_CONTROLLER_20)
  538. // Info
  539. #define MANUFACTURER "MAGICHOME"
  540. #define DEVICE "LED_CONTROLLER_20"
  541. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  542. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  543. #define DUMMY_RELAY_COUNT 1
  544. //#define LIGHT_PROVIDER_EXPERIMENTAL_RGB_ONLY_HSV_IR
  545. // LEDs
  546. #define LED1_PIN 2
  547. #define LED1_PIN_INVERSE 1
  548. // Channels
  549. #define LIGHT_CH1_PIN 5 // RED
  550. #define LIGHT_CH2_PIN 12 // GREEN
  551. #define LIGHT_CH3_PIN 13 // BLUE
  552. #define LIGHT_CH4_PIN 15 // WHITE
  553. #define LIGHT_CH1_INVERSE 0
  554. #define LIGHT_CH2_INVERSE 0
  555. #define LIGHT_CH3_INVERSE 0
  556. #define LIGHT_CH4_INVERSE 0
  557. // IR
  558. #define IR_SUPPORT 1
  559. #define IR_PIN 4
  560. #define IR_BUTTON_SET 1
  561. // -----------------------------------------------------------------------------
  562. // HUACANXING H801 & H802
  563. // -----------------------------------------------------------------------------
  564. #elif defined(HUACANXING_H801)
  565. // Info
  566. #define MANUFACTURER "HUACANXING"
  567. #define DEVICE "H801"
  568. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  569. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  570. #define DUMMY_RELAY_COUNT 1
  571. // LEDs
  572. #define LED1_PIN 5
  573. #define LED1_PIN_INVERSE 1
  574. // Channels
  575. #define LIGHT_CH1_PIN 15 // RED
  576. #define LIGHT_CH2_PIN 13 // GREEN
  577. #define LIGHT_CH3_PIN 12 // BLUE
  578. #define LIGHT_CH4_PIN 14 // WHITE1
  579. #define LIGHT_CH5_PIN 4 // WHITE2
  580. #define LIGHT_CH1_INVERSE 0
  581. #define LIGHT_CH2_INVERSE 0
  582. #define LIGHT_CH3_INVERSE 0
  583. #define LIGHT_CH4_INVERSE 0
  584. #define LIGHT_CH5_INVERSE 0
  585. #elif defined(HUACANXING_H802)
  586. // Info
  587. #define MANUFACTURER "HUACANXING"
  588. #define DEVICE "H802"
  589. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  590. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  591. #define DUMMY_RELAY_COUNT 1
  592. // Channels
  593. #define LIGHT_CH1_PIN 12 // RED
  594. #define LIGHT_CH2_PIN 14 // GREEN
  595. #define LIGHT_CH3_PIN 13 // BLUE
  596. #define LIGHT_CH4_PIN 15 // WHITE
  597. #define LIGHT_CH1_INVERSE 0
  598. #define LIGHT_CH2_INVERSE 0
  599. #define LIGHT_CH3_INVERSE 0
  600. #define LIGHT_CH4_INVERSE 0
  601. // -----------------------------------------------------------------------------
  602. // Jan Goedeke Wifi Relay
  603. // https://github.com/JanGoe/esp8266-wifi-relay
  604. // -----------------------------------------------------------------------------
  605. #elif defined(JANGOE_WIFI_RELAY_NC)
  606. // Info
  607. #define MANUFACTURER "JANGOE"
  608. #define DEVICE "WIFI_RELAY_NC"
  609. // Buttons
  610. #define BUTTON1_PIN 12
  611. #define BUTTON2_PIN 13
  612. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  613. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  614. #define BUTTON1_RELAY 1
  615. #define BUTTON2_RELAY 2
  616. // Relays
  617. #define RELAY1_PIN 2
  618. #define RELAY2_PIN 14
  619. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  620. #define RELAY2_TYPE RELAY_TYPE_INVERSE
  621. #elif defined(JANGOE_WIFI_RELAY_NO)
  622. // Info
  623. #define MANUFACTURER "JANGOE"
  624. #define DEVICE "WIFI_RELAY_NO"
  625. // Buttons
  626. #define BUTTON1_PIN 12
  627. #define BUTTON2_PIN 13
  628. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  629. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  630. #define BUTTON1_RELAY 1
  631. #define BUTTON2_RELAY 2
  632. // Relays
  633. #define RELAY1_PIN 2
  634. #define RELAY2_PIN 14
  635. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  636. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  637. // -----------------------------------------------------------------------------
  638. // Jorge García Wifi+Relays Board Kit
  639. // https://www.tindie.com/products/jorgegarciadev/wifi--relays-board-kit
  640. // https://github.com/jorgegarciadev/wifikit
  641. // -----------------------------------------------------------------------------
  642. #elif defined(JORGEGARCIA_WIFI_RELAYS)
  643. // Info
  644. #define MANUFACTURER "JORGEGARCIA"
  645. #define DEVICE "WIFI_RELAYS"
  646. // Relays
  647. #define RELAY1_PIN 0
  648. #define RELAY2_PIN 2
  649. #define RELAY1_TYPE RELAY_TYPE_INVERSE
  650. #define RELAY2_TYPE RELAY_TYPE_INVERSE
  651. // -----------------------------------------------------------------------------
  652. // WiFi MQTT Relay / Thermostat
  653. // -----------------------------------------------------------------------------
  654. #elif defined(OPENENERGYMONITOR_MQTT_RELAY)
  655. // Info
  656. #define MANUFACTURER "OPENENERGYMONITOR"
  657. #define DEVICE "MQTT_RELAY"
  658. // Buttons
  659. #define BUTTON1_PIN 0
  660. #define BUTTON1_RELAY 1
  661. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  662. // Relays
  663. #define RELAY1_PIN 12
  664. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  665. // LEDs
  666. #define LED1_PIN 16
  667. #define LED1_PIN_INVERSE 0
  668. // -----------------------------------------------------------------------------
  669. // WiOn 50055 Indoor Wi-Fi Wall Outlet & Tap
  670. // 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
  671. // 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
  672. // -----------------------------------------------------------------------------
  673. #elif defined(WION_50055)
  674. // Currently untested, does not support energy monitoring
  675. // Info
  676. #define MANUFACTURER "WION"
  677. #define DEVICE "50055"
  678. // Buttons
  679. #define BUTTON1_PIN 13
  680. #define BUTTON1_RELAY 1
  681. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  682. // Relays
  683. #define RELAY1_PIN 15
  684. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  685. // LEDs
  686. #define LED1_PIN 2
  687. #define LED1_PIN_INVERSE 0
  688. // -----------------------------------------------------------------------------
  689. // EX-Store Wifi Relay v3.1
  690. // https://ex-store.de/ESP8266-WiFi-Relay-V31
  691. // -----------------------------------------------------------------------------
  692. #elif defined(EXS_WIFI_RELAY_V31)
  693. // Untested
  694. // Info
  695. #define MANUFACTURER "EXS"
  696. #define DEVICE "WIFI_RELAY_V31"
  697. // Buttons
  698. #define BUTTON1_PIN 0
  699. #define BUTTON1_RELAY 1
  700. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  701. // Relays
  702. #define RELAY1_PIN 13
  703. #define RELAY1_TYPE RELAY_TYPE_LATCHED
  704. #define RELAY1_RESET_PIN 12
  705. // -----------------------------------------------------------------------------
  706. // V9261F
  707. // -----------------------------------------------------------------------------
  708. #elif defined(GENERIC_V9261F)
  709. // Info
  710. #define MANUFACTURER "GENERIC"
  711. #define DEVICE "V9261F"
  712. // V9261F
  713. #define POWER_PROVIDER POWER_PROVIDER_V9261F
  714. #define V9261F_PIN 2
  715. #define V9261F_PIN_INVERSE 1
  716. // -----------------------------------------------------------------------------
  717. // ECH1560
  718. // -----------------------------------------------------------------------------
  719. #elif defined(GENERIC_ECH1560)
  720. // Info
  721. #define MANUFACTURER "GENERIC"
  722. #define DEVICE "ECH1560"
  723. // ECH1560
  724. #define POWER_PROVIDER POWER_PROVIDER_ECH1560
  725. #define ECH1560_CLK_PIN 4
  726. #define ECH1560_MISO_PIN 5
  727. #define ECH1560_INVERTED 0
  728. // -----------------------------------------------------------------------------
  729. // ESPLive
  730. // https://github.com/ManCaveMade/ESP-Live
  731. // -----------------------------------------------------------------------------
  732. #elif defined(MANCAVEMADE_ESPLIVE)
  733. // Info
  734. #define MANUFACTURER "MANCAVEMADE"
  735. #define DEVICE "ESPLIVE"
  736. // Buttons
  737. #define BUTTON1_PIN 4
  738. #define BUTTON2_PIN 5
  739. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  740. #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  741. #define BUTTON1_RELAY 1
  742. #define BUTTON2_RELAY 2
  743. // Relays
  744. #define RELAY1_PIN 12
  745. #define RELAY2_PIN 13
  746. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  747. #define RELAY2_TYPE RELAY_TYPE_NORMAL
  748. // DB18B20
  749. #define DS18B20_SUPPORT 1
  750. #define DS18B20_PIN 2
  751. #define DS18B20_UPDATE_INTERVAL 5000
  752. #define DS18B20_UPDATE_ON_CHANGE 1.0
  753. // -----------------------------------------------------------------------------
  754. // QuinLED
  755. // http://blog.quindorian.org/2017/02/esp8266-led-lighting-quinled-v2-6-pcb.html
  756. // -----------------------------------------------------------------------------
  757. #elif defined(INTERMITTECH_QUINLED)
  758. // Info
  759. #define MANUFACTURER "INTERMITTECH"
  760. #define DEVICE "QUINLED"
  761. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  762. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  763. #define DUMMY_RELAY_COUNT 1
  764. // LEDs
  765. #define LED1_PIN 5
  766. #define LED1_PIN_INVERSE 1
  767. // Channels
  768. #define LIGHT_CH1_PIN 0
  769. #define LIGHT_CH2_PIN 2
  770. #define LIGHT_CH1_INVERSE 0
  771. #define LIGHT_CH2_INVERSE 0
  772. // -----------------------------------------------------------------------------
  773. // Arilux AL-LC06
  774. // -----------------------------------------------------------------------------
  775. #elif defined(ARILUX_AL_LC06)
  776. // Info
  777. #define MANUFACTURER "ARILUX"
  778. #define DEVICE "AL-LC06"
  779. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  780. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  781. #define DUMMY_RELAY_COUNT 1
  782. // Channels
  783. #define LIGHT_CH1_PIN 12 // RED
  784. #define LIGHT_CH2_PIN 14 // GREEN
  785. #define LIGHT_CH3_PIN 13 // BLUE
  786. #define LIGHT_CH4_PIN 15 // WHITE1
  787. #define LIGHT_CH5_PIN 5 // WHITE2
  788. #define LIGHT_CH1_INVERSE 0
  789. #define LIGHT_CH2_INVERSE 0
  790. #define LIGHT_CH3_INVERSE 0
  791. #define LIGHT_CH4_INVERSE 0
  792. #define LIGHT_CH5_INVERSE 0
  793. // -----------------------------------------------------------------------------
  794. // XENON SM-PW701U
  795. // -----------------------------------------------------------------------------
  796. #elif defined(XENON_SM_PW702U)
  797. // Info
  798. #define MANUFACTURER "XENON"
  799. #define DEVICE "SM_PW702U"
  800. // Buttons
  801. #define BUTTON1_PIN 13
  802. #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
  803. #define BUTTON1_RELAY 1
  804. // Relays
  805. #define RELAY1_PIN 12
  806. #define RELAY1_TYPE RELAY_TYPE_NORMAL
  807. // LEDs
  808. #define LED1_PIN 4
  809. #define LED1_PIN_INVERSE 1
  810. // -----------------------------------------------------------------------------
  811. // AUTHOMETION LYT8266
  812. // https://authometion.com/shop/en/home/13-lyt8266.html
  813. // -----------------------------------------------------------------------------
  814. #elif defined(AUTHOMETION_LYT8266)
  815. // Info
  816. #define MANUFACTURER "AUTHOMETION"
  817. #define DEVICE "LYT8266"
  818. #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
  819. #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
  820. #define DUMMY_RELAY_COUNT 1
  821. // Channels
  822. #define LIGHT_CH1_PIN 13 // RED
  823. #define LIGHT_CH2_PIN 12 // GREEN
  824. #define LIGHT_CH3_PIN 14 // BLUE
  825. #define LIGHT_CH4_PIN 2 // WHITE
  826. #define LIGHT_CH1_INVERSE 0
  827. #define LIGHT_CH2_INVERSE 0
  828. #define LIGHT_CH3_INVERSE 0
  829. #define LIGHT_CH4_INVERSE 0
  830. #define LIGHT_ENABLE_PIN 15
  831. // -----------------------------------------------------------------------------
  832. // Unknown hardware
  833. // -----------------------------------------------------------------------------
  834. #else
  835. #error "UNSUPPORTED HARDWARE!"
  836. #endif
  837. // -----------------------------------------------------------------------------
  838. // Default values
  839. // -----------------------------------------------------------------------------
  840. #ifndef BUTTON1_PRESS
  841. #define BUTTON1_PRESS BUTTON_MODE_NONE
  842. #endif
  843. #ifndef BUTTON2_PRESS
  844. #define BUTTON2_PRESS BUTTON_MODE_NONE
  845. #endif
  846. #ifndef BUTTON3_PRESS
  847. #define BUTTON3_PRESS BUTTON_MODE_NONE
  848. #endif
  849. #ifndef BUTTON4_PRESS
  850. #define BUTTON4_PRESS BUTTON_MODE_NONE
  851. #endif
  852. #ifndef BUTTON1_CLICK
  853. #define BUTTON1_CLICK BUTTON_MODE_TOGGLE
  854. #endif
  855. #ifndef BUTTON2_CLICK
  856. #define BUTTON2_CLICK BUTTON_MODE_TOGGLE
  857. #endif
  858. #ifndef BUTTON3_CLICK
  859. #define BUTTON3_CLICK BUTTON_MODE_TOGGLE
  860. #endif
  861. #ifndef BUTTON4_CLICK
  862. #define BUTTON4_CLICK BUTTON_MODE_TOGGLE
  863. #endif
  864. #ifndef BUTTON1_DBLCLICK
  865. #define BUTTON1_DBLCLICK BUTTON_MODE_AP
  866. #endif
  867. #ifndef BUTTON2_DBLCLICK
  868. #define BUTTON2_DBLCLICK BUTTON_MODE_NONE
  869. #endif
  870. #ifndef BUTTON3_DBLCLICK
  871. #define BUTTON3_DBLCLICK BUTTON_MODE_NONE
  872. #endif
  873. #ifndef BUTTON4_DBLCLICK
  874. #define BUTTON4_DBLCLICK BUTTON_MODE_NONE
  875. #endif
  876. #ifndef BUTTON1_LNGCLICK
  877. #define BUTTON1_LNGCLICK BUTTON_MODE_RESET
  878. #endif
  879. #ifndef BUTTON2_LNGCLICK
  880. #define BUTTON2_LNGCLICK BUTTON_MODE_NONE
  881. #endif
  882. #ifndef BUTTON3_LNGCLICK
  883. #define BUTTON3_LNGCLICK BUTTON_MODE_NONE
  884. #endif
  885. #ifndef BUTTON4_LNGCLICK
  886. #define BUTTON4_LNGCLICK BUTTON_MODE_NONE
  887. #endif
  888. #ifndef BUTTON1_LNGLNGCLICK
  889. #define BUTTON1_LNGLNGCLICK BUTTON_MODE_FACTORY
  890. #endif
  891. #ifndef BUTTON2_LNGLNGCLICK
  892. #define BUTTON2_LNGLNGCLICK BUTTON_MODE_NONE
  893. #endif
  894. #ifndef BUTTON3_LNGLNGCLICK
  895. #define BUTTON3_LNGLNGCLICK BUTTON_MODE_NONE
  896. #endif
  897. #ifndef BUTTON4_LNGLNGCLICK
  898. #define BUTTON4_LNGLNGCLICK BUTTON_MODE_NONE
  899. #endif
  900. #ifndef BUTTON1_RELAY
  901. #define BUTTON1_RELAY 0
  902. #endif
  903. #ifndef BUTTON2_RELAY
  904. #define BUTTON2_RELAY 0
  905. #endif
  906. #ifndef BUTTON3_RELAY
  907. #define BUTTON3_RELAY 0
  908. #endif
  909. #ifndef BUTTON4_RELAY
  910. #define BUTTON4_RELAY 0
  911. #endif
  912. #ifndef RELAY1_RESET_PIN
  913. #define RELAY1_RESET_PIN 0
  914. #endif
  915. #ifndef RELAY2_RESET_PIN
  916. #define RELAY2_RESET_PIN 0
  917. #endif
  918. #ifndef RELAY3_RESET_PIN
  919. #define RELAY3_RESET_PIN 0
  920. #endif
  921. #ifndef RELAY4_RESET_PIN
  922. #define RELAY4_RESET_PIN 0
  923. #endif
  924. #ifndef RELAY1_DELAY_ON
  925. #define RELAY1_DELAY_ON 0
  926. #endif
  927. #ifndef RELAY2_DELAY_ON
  928. #define RELAY2_DELAY_ON 0
  929. #endif
  930. #ifndef RELAY3_DELAY_ON
  931. #define RELAY3_DELAY_ON 0
  932. #endif
  933. #ifndef RELAY4_DELAY_ON
  934. #define RELAY4_DELAY_ON 0
  935. #endif
  936. #ifndef RELAY1_DELAY_OFF
  937. #define RELAY1_DELAY_OFF 0
  938. #endif
  939. #ifndef RELAY2_DELAY_OFF
  940. #define RELAY2_DELAY_OFF 0
  941. #endif
  942. #ifndef RELAY3_DELAY_OFF
  943. #define RELAY3_DELAY_OFF 0
  944. #endif
  945. #ifndef RELAY4_DELAY_OFF
  946. #define RELAY4_DELAY_OFF 0
  947. #endif
  948. #ifndef RELAY1_LED
  949. #define RELAY1_LED 0
  950. #endif
  951. #ifndef RELAY2_LED
  952. #define RELAY2_LED 0
  953. #endif
  954. #ifndef RELAY3_LED
  955. #define RELAY3_LED 0
  956. #endif
  957. #ifndef RELAY4_LED
  958. #define RELAY4_LED 0
  959. #endif
  960. // Needed for ESP8285 boards under Windows using PlatformIO (?)
  961. #ifndef BUTTON_PUSHBUTTON
  962. #define BUTTON_PUSHBUTTON 0
  963. #define BUTTON_SWITCH 1
  964. #define BUTTON_DEFAULT_HIGH 2
  965. #define BUTTON_SET_PULLUP 4
  966. #endif
  967. // Does the board track the relay status?
  968. #ifndef TRACK_RELAY_STATUS
  969. #define TRACK_RELAY_STATUS 1
  970. #endif
  971. // Serial baudrate
  972. #ifndef SERIAL_BAUDRATE
  973. #define SERIAL_BAUDRATE 115200
  974. #endif
  975. // Relay providers
  976. #ifndef RELAY_PROVIDER
  977. #define RELAY_PROVIDER RELAY_PROVIDER_RELAY
  978. #endif
  979. // Light provider
  980. #ifndef LIGHT_PROVIDER
  981. #define LIGHT_PROVIDER LIGHT_PROVIDER_NONE
  982. #endif