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.

271 lines
8.3 KiB

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