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.

260 lines
8.0 KiB

5 years ago
7 years ago
7 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
6 years ago
7 years ago
7 years ago
6 years ago
  1. //--------------------------------------------------------------------------------
  2. // These settings are normally provided by PlatformIO
  3. // Uncomment the appropiate line(s) to build from the Arduino IDE
  4. //--------------------------------------------------------------------------------
  5. #pragma once
  6. //--------------------------------------------------------------------------------
  7. // Hardware
  8. //--------------------------------------------------------------------------------
  9. //#define AITHINKER_AI_LIGHT
  10. //#define ALLNET_4DUINO_IOT_WLAN_RELAIS
  11. //#define ALLTERCO_SHELLY1
  12. //#define ALLTERCO_SHELLY1PM
  13. //#define ALLTERCO_SHELLY2
  14. //#define ALLTERCO_SHELLY25
  15. //#define AOYCOCR_X5P
  16. //#define ARILUX_AL_LC01
  17. //#define ARILUX_AL_LC02
  18. //#define ARILUX_AL_LC02_V14
  19. //#define ARILUX_AL_LC06
  20. //#define ARILUX_AL_LC11
  21. //#define ARILUX_E27
  22. //#define ARNIEX_SWIFITCH
  23. //#define AUTHOMETION_LYT8266
  24. //#define AVATTO_NAS_WR01W
  25. //#define BESTEK_MRJ1011
  26. //#define BH_ONOFRE
  27. //#define BLITZWOLF_BWSHP5
  28. //#define BLITZWOLF_BWSHPX
  29. //#define BLITZWOLF_BWSHPX_V23
  30. //#define DELTACO_SH_LEXXRGB
  31. //#define DELTACO_SH_LEXXW
  32. //#define DELTACO_SH_P01
  33. //#define DELTACO_SH_P03USB
  34. //#define DIGOO_NX_SP202
  35. //#define EHOMEDIY_WT02
  36. //#define EHOMEDIY_WT03
  37. //#define ELECTRODRAGON_WIFI_IOT
  38. //#define ESPURNA_CORE
  39. //#define ESPURNA_CORE_WEBUI
  40. //#define ETEKCITY_ESW01_USA
  41. //#define EUROMATE_WIFI_STECKER_SCHUKO
  42. //#define EUROMATE_WIFI_STECKER_SCHUKO_V2
  43. //#define EXS_WIFI_RELAY_V31
  44. //#define EXS_WIFI_RELAY_V50
  45. //#define FORNORM_ZLD_34EU
  46. //#define FOXEL_LIGHTFOX_DUAL
  47. //#define FS_UAP1
  48. //#define GBLIFE_RGBW_SOCKET
  49. //#define GENERIC_8CH
  50. //#define GENERIC_AG_L4
  51. //#define GENERIC_E14
  52. //#define GENERIC_ECH1560
  53. //#define GENERIC_ESP01S_DHT11_V10
  54. //#define GENERIC_ESP01S_DS18B20_V10
  55. //#define GENERIC_ESP01S_RELAY_V40
  56. //#define GENERIC_ESP01S_RGBLED_V10
  57. //#define GENERIC_ESP01_512KB
  58. //#define GENERIC_GU10
  59. //#define GENERIC_V9261F
  60. //#define GIZWITS_WITTY_CLOUD
  61. //#define GOSUND_WP3
  62. //#define GOSUND_WS1
  63. //#define GREEN_ESP8266RELAY
  64. //#define HAMA_WIFI_STECKDOSE_00176533
  65. //#define HELTEC_TOUCHRELAY
  66. //#define HEYGO_HY02
  67. //#define HOMECUBE_16A
  68. //#define HUACANXING_H801
  69. //#define HUACANXING_H802
  70. //#define HUGOAI_AWP02L_N
  71. //#define HYKKER_SMART_HOME_POWER_PLUG
  72. //#define IKE_ESPIKE
  73. //#define INTERMITTECH_QUINLED
  74. //#define ISELECTOR_SM_PW702
  75. //#define ITEAD_1CH_INCHING
  76. //#define ITEAD_BNSZ01
  77. //#define ITEAD_MOTOR
  78. //#define ITEAD_S20
  79. //#define ITEAD_SLAMPHER
  80. //#define ITEAD_SONOFF_4CH
  81. //#define ITEAD_SONOFF_4CH_PRO
  82. //#define ITEAD_SONOFF_B1
  83. //#define ITEAD_SONOFF_BASIC
  84. //#define ITEAD_SONOFF_DUAL
  85. //#define ITEAD_SONOFF_DUAL_R2
  86. //#define ITEAD_SONOFF_IFAN02
  87. //#define ITEAD_SONOFF_LED
  88. //#define ITEAD_SONOFF_MINI
  89. //#define ITEAD_SONOFF_POW
  90. //#define ITEAD_SONOFF_POW_R2
  91. //#define ITEAD_SONOFF_RF
  92. //#define ITEAD_SONOFF_RFBRIDGE
  93. //#define ITEAD_SONOFF_S31
  94. //#define ITEAD_SONOFF_S31_LITE
  95. //#define ITEAD_SONOFF_SV
  96. //#define ITEAD_SONOFF_T1_1CH
  97. //#define ITEAD_SONOFF_T1_2CH
  98. //#define ITEAD_SONOFF_T1_3CH
  99. //#define ITEAD_SONOFF_TH
  100. //#define ITEAD_SONOFF_TOUCH
  101. //#define IWOOLE_LED_TABLE_LAMP
  102. //#define JANGOE_WIFI_RELAY_NC
  103. //#define JANGOE_WIFI_RELAY_NO
  104. //#define JINVOO_VALVE_SM_AW713
  105. //#define JORGEGARCIA_WIFI_RELAYS
  106. //#define KINGART_CURTAIN_SWITCH
  107. //#define KMC_70011
  108. //#define KOGAN_SMARTER_HOME_PLUG_W_POW
  109. //#define LINGAN_SWA1
  110. //#define LINKSPRITE_LINKNODE_R4
  111. //#define LITESUN_LA_WF3
  112. //#define LOHAS_E26_A19
  113. //#define LOHAS_E27_9W
  114. //#define LOMBEX_LUX_NOVA2_TUNABLE_WHITE
  115. //#define LOMBEX_LUX_NOVA2_WHITE_COLOR
  116. //#define LSC_SMART_LED_LIGHT_STRIP
  117. //#define LUANI_HVIO
  118. //#define LYASI_LIGHT
  119. //#define MAGICHOME_LED_CONTROLLER
  120. //#define MAGICHOME_LED_CONTROLLER_20
  121. //#define MAGICHOME_ZJ_ESPM_5CH_B_13
  122. //#define MAGICHOME_ZJ_LB_RGBWW_L
  123. //#define MAGICHOME_ZJ_WFMN_A_11
  124. //#define MAGICHOME_ZJ_WFMN_B_11
  125. //#define MAGICHOME_ZJ_WFMN_C_11
  126. //#define MANCAVEMADE_ESPLIVE
  127. //#define MAXCIO_WDE004
  128. //#define MAXCIO_WUK007S
  129. //#define MAXCIO_WUS002S
  130. //#define MUVIT_IO_MIOBULB001
  131. //#define NEO_COOLCAM_NAS_WR01W
  132. //#define NEXETE_A19
  133. //#define NODEMCU_BASIC
  134. //#define NODEMCU_LOLIN
  135. //#define OPENENERGYMONITOR_MQTT_RELAY
  136. //#define ORVIBO_B25
  137. //#define OUKITEL_P1
  138. //#define PHYX_ESP12_RGB
  139. //#define PILOTAK_ESP_DIN_V1
  140. //#define PSH_RGBW_CONTROLLER
  141. //#define PSH_WIFI_PLUG
  142. //#define PSH_WIFI_SENSOR
  143. //#define SMARTLIFE_MINI_SMART_SOCKET
  144. //#define STM_RELAY
  145. //#define TECKIN_SB53
  146. //#define TECKIN_SP20
  147. //#define TECKIN_SP21
  148. //#define TECKIN_SP22_V14
  149. //#define TECKIN_SP23_V13
  150. //#define TFLAG_NX_SMX00
  151. //#define TINKERMAN_ESPURNA_H06
  152. //#define TINKERMAN_ESPURNA_H08
  153. //#define TINKERMAN_ESPURNA_SWITCH
  154. //#define TINKERMAN_RFM69GW
  155. //#define TONBUX_MOSQUITO_KILLER
  156. //#define TONBUX_POWERSTRIP02
  157. //#define TONBUX_XSSSA01
  158. //#define TONBUX_XSSSA06
  159. //#define TUYA_GENERIC_DIMMER
  160. //#define VANZAVANZU_SMART_WIFI_PLUG_MINI
  161. //#define WEMOS_D1_MINI
  162. //#define WEMOS_D1_MINI_RELAYSHIELD
  163. //#define WEMOS_D1_TARPUNA_SHIELD
  164. //#define WION_50055
  165. //#define WORKCHOICE_ECOPLUG
  166. //#define XENON_SM_PW702U
  167. //#define XIAOMI_SMART_DESK_LAMP
  168. //#define YIDIAN_XSSSA05
  169. //#define YJZK_SWITCH_1CH
  170. //#define YJZK_SWITCH_2CH
  171. //#define YJZK_SWITCH_3CH
  172. //#define ZHILDE_EU44_W
  173. //--------------------------------------------------------------------------------
  174. // Features (values below are non-default values)
  175. //--------------------------------------------------------------------------------
  176. //#define ALEXA_SUPPORT 0
  177. //#define API_SUPPORT 0
  178. //#define BROKER_SUPPORT 0
  179. //#define BUTTON_SUPPORT 0
  180. //#define DEBUG_SERIAL_SUPPORT 0
  181. //#define DEBUG_TELNET_SUPPORT 0
  182. //#define DEBUG_UDP_SUPPORT 1
  183. //#define DEBUG_WEB_SUPPORT 0
  184. //#define DOMOTICZ_SUPPORT 0
  185. //#define ENCODER_SUPPORT 1
  186. //#define HOMEASSISTANT_SUPPORT 0
  187. //#define I2C_SUPPORT 1
  188. //#define INFLUXDB_SUPPORT 1
  189. //#define IR_SUPPORT 1
  190. //#define LED_SUPPORT 0
  191. //#define LLMNR_SUPPORT 1 // Only with latest Arduino Core
  192. //#define MDNS_CLIENT_SUPPORT 1
  193. //#define MDNS_SERVER_SUPPORT 0
  194. //#define MQTT_SUPPORT 0
  195. //#define NETBIOS_SUPPORT 1 // Only with latest Arduino Core
  196. //#define NOFUSS_SUPPORT 1
  197. //#define NTP_SUPPORT 0
  198. //#define OTA_ARDUINOOTA_SUPPORT 1
  199. //#define RFM69_SUPPORT 1
  200. //#define RF_SUPPORT 1
  201. //#define RPN_RULES_SUPPORT 0
  202. //#define SCHEDULER_SUPPORT 0
  203. //#define SPIFFS_SUPPORT 1
  204. //#define SSDP_SUPPORT 1
  205. //#define TELNET_SUPPORT 0
  206. //#define TERMINAL_SUPPORT 0
  207. //#define THINGSPEAK_SUPPORT 0
  208. //#define TUYA_SUPPORT 0
  209. //#define UART_MQTT_SUPPORT 1
  210. //#define WEB_SUPPORT 0
  211. //--------------------------------------------------------------------------------
  212. // Sensors (values below are non-default values)
  213. //--------------------------------------------------------------------------------
  214. //#define ADE7953_SUPPORT 1
  215. //#define AM2320_SUPPORT 1
  216. //#define ANALOG_SUPPORT 1
  217. //#define BH1750_SUPPORT 1
  218. //#define BMP180_SUPPORT 1
  219. //#define BMX280_SUPPORT 1
  220. //#define CSE7766_SUPPORT 1
  221. //#define DALLAS_SUPPORT 1
  222. //#define DHT_SUPPORT 1
  223. //#define DIGITAL_SUPPORT 1
  224. //#define ECH1560_SUPPORT 1
  225. //#define EMON_ADC121_SUPPORT 1
  226. //#define EMON_ADS1X15_SUPPORT 1
  227. //#define EMON_ANALOG_SUPPORT 1
  228. //#define EVENTS_SUPPORT 1
  229. //#define EZOPH_SUPPORT 1
  230. //#define GEIGER_SUPPORT 1
  231. //#define GUVAS12SD_SUPPORT 1
  232. //#define HLW8012_SUPPORT 1
  233. //#define LDR_SUPPORT 1
  234. //#define MAX6675_SUPPORT 1
  235. //#define MHZ19_SUPPORT 1
  236. //#define MICS2710_SUPPORT 1
  237. //#define MICS5525_SUPPORT 1
  238. //#define NTC_SUPPORT 1
  239. //#define PMSX003_SUPPORT 1
  240. //#define PULSEMETER_SUPPORT 1
  241. //#define PZEM004T_SUPPORT 1
  242. //#define SDS011_SUPPORT 1
  243. //#define SENSEAIR_SUPPORT 1
  244. //#define SHT3X_I2C_SUPPORT 1
  245. //#define SI7021_SUPPORT 1
  246. //#define SONAR_SUPPORT 1
  247. //#define T6613_SUPPORT 1
  248. //#define THERMOSTAT_SUPPORT 1
  249. //#define TMP3X_SUPPORT 1
  250. //#define V9261F_SUPPORT 1
  251. //#define VEML6075_SUPPORT 1
  252. //#define VL53L1X_SUPPORT 1
  253. //#define HDC1080_SUPPORT 1