2017-05-13 12:02:10 +01:00
/*
2019-10-27 10:13:24 +00:00
my_user_config . h - user specific configuration for Tasmota
2017-05-13 12:02:10 +01:00
2019-12-31 13:23:34 +00:00
Copyright ( C ) 2020 Theo Arends
2017-05-13 12:02:10 +01:00
This program is free software : you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
2018-10-26 16:13:17 +01:00
# ifndef _MY_USER_CONFIG_H_
# define _MY_USER_CONFIG_H_
2017-10-18 17:22:34 +01:00
2017-01-28 13:41:01 +00:00
/*********************************************************************************************\
2018-04-05 14:26:16 +01:00
* This file consists of TWO sections .
2017-01-28 13:41:01 +00:00
*
2018-04-05 14:26:16 +01:00
* SECTION 1 :
* The first section contains PARAMETERS overriding flash settings if define CFG_HOLDER is CHANGED .
* All parameters can be persistent changed online using commands via MQTT , WebConsole or Serial .
* Corresponding MQTT / Serial / Console commands are shown in [ brackets ]
*
* SECTION 2 :
* The second section contains Enabled and Disabled FEATURES allowing different program size .
* Changes in this section do NOT need a change of define CFG_HOLDER .
*
* ATTENTION :
2018-04-05 15:13:17 +01:00
* Users are advised to use the user_config_override . h file for most changes .
2017-01-28 13:41:01 +00:00
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2018-04-05 14:26:16 +01:00
//#define USE_CONFIG_OVERRIDE // Uncomment to use user_config_override.h file. See README.md
2017-09-02 13:37:02 +01:00
2018-04-05 14:26:16 +01:00
/*********************************************************************************************\
* SECTION 1
2018-04-05 15:13:17 +01:00
* - After initial load any change here only take effect if CFG_HOLDER is changed too
2018-04-05 14:26:16 +01:00
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2017-01-28 13:41:01 +00:00
2018-04-05 14:26:16 +01:00
// -- Master parameter control --------------------
2019-07-28 23:36:22 +01:00
# define CFG_HOLDER 4617 // [Reset 1] Change this value (max 32000) to load SECTION1 configuration parameters to flash
2018-04-02 10:24:36 +01:00
2018-04-05 14:26:16 +01:00
// -- Project -------------------------------------
2019-10-27 11:04:08 +00:00
# define PROJECT "tasmota" // PROJECT is used as the default topic delimiter
2018-12-15 14:55:51 +00:00
// If not selected the default will be SONOFF_BASIC
2019-10-27 11:04:08 +00:00
//#define MODULE SONOFF_BASIC // [Module] Select default model from tasmota_template.h
2018-04-02 10:24:36 +01:00
2017-01-28 13:41:01 +00:00
# define SAVE_DATA 1 // [SaveData] Save changed parameters to Flash (0 = disable, 1 - 3600 seconds)
2020-01-20 17:49:57 +00:00
# define SAVE_STATE true // [SetOption0] Save changed power state to Flash (false = disable, true = enable)
2019-01-30 13:34:31 +00:00
# define BOOT_LOOP_OFFSET 1 // [SetOption36] Number of boot loops before starting restoring defaults (0 = disable, 1..200 = boot loops offset)
2017-01-28 13:41:01 +00:00
// -- Wifi ----------------------------------------
2019-09-08 16:30:17 +01:00
# define WIFI_IP_ADDRESS "0.0.0.0" // [IpAddress1] Set to 0.0.0.0 for using DHCP or enter a static IP address
# define WIFI_GATEWAY "192.168.1.1" // [IpAddress2] If not using DHCP set Gateway IP address
# define WIFI_SUBNETMASK "255.255.255.0" // [IpAddress3] If not using DHCP set Network mask
# define WIFI_DNS "192.168.1.1" // [IpAddress4] If not using DHCP set DNS IP address (might be equal to WIFI_GATEWAY)
2017-03-25 16:24:11 +00:00
2019-09-08 03:02:47 +01:00
# define STA_SSID1 "" // [Ssid1] Wifi SSID
# define STA_PASS1 "" // [Password1] Wifi password
2018-02-10 14:13:27 +00:00
# define STA_SSID2 "" // [Ssid2] Optional alternate AP Wifi SSID
# define STA_PASS2 "" // [Password2] Optional alternate AP Wifi password
2020-02-10 12:54:27 +00:00
# define WIFI_AP_PASSPHRASE "" // AccessPoint passphrase. For WPA2 min 8 char, for open use "" (max 63 char).
2019-10-02 20:58:52 +01:00
# define WIFI_CONFIG_TOOL WIFI_RETRY // [WifiConfig] Default tool if wifi fails to connect (default option: 4 - WIFI_RETRY)
2019-10-22 15:34:25 +01:00
// (WIFI_RESTART, WIFI_MANAGER, WIFI_RETRY, WIFI_WAIT, WIFI_SERIAL, WIFI_MANAGER_RESET_ONLY)
// The configuration can be changed after first setup using WifiConfig 0, 2, 4, 5, 6 and 7.
2020-01-20 17:49:57 +00:00
# define WIFI_SCAN_AT_RESTART false // [SetOption56] Scan wifi network at restart for configured AP's
# define WIFI_SCAN_REGULARLY false // [SetOption57] Scan wifi network every 44 minutes for configured AP's
2017-09-02 13:37:02 +01:00
2017-01-28 13:41:01 +00:00
// -- Syslog --------------------------------------
2018-02-10 14:13:27 +00:00
# define SYS_LOG_HOST "" // [LogHost] (Linux) syslog host
2017-01-28 13:41:01 +00:00
# define SYS_LOG_PORT 514 // [LogPort] default syslog UDP port
2018-04-12 13:01:43 +01:00
# define SYS_LOG_LEVEL LOG_LEVEL_NONE // [SysLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)
# define SERIAL_LOG_LEVEL LOG_LEVEL_INFO // [SerialLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)
# define WEB_LOG_LEVEL LOG_LEVEL_INFO // [WebLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)
2019-10-04 09:24:21 +01:00
# define MQTT_LOG_LEVEL LOG_LEVEL_NONE // [MqttLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)
2017-01-28 13:41:01 +00:00
// -- Ota -----------------------------------------
2019-10-27 11:44:37 +00:00
# define OTA_URL "http: //thehackbox.org/tasmota/release/tasmota.bin" // [OtaUrl]
2020-01-20 17:49:57 +00:00
# define OTA_COMPATIBILITY false // [SetOption78] Disable OTA compatibility check
2018-03-02 14:38:37 +00:00
2017-01-28 13:41:01 +00:00
// -- MQTT ----------------------------------------
2020-01-20 17:49:57 +00:00
# define MQTT_USE true // [SetOption3] Select default MQTT use (false = Off, true = On)
2018-03-02 14:38:37 +00:00
2018-04-05 14:26:16 +01:00
# define MQTT_HOST "" // [MqttHost]
2019-06-05 10:44:52 +01:00
# define MQTT_FINGERPRINT1 "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" // [MqttFingerprint1]
2018-04-05 14:26:16 +01:00
# define MQTT_FINGERPRINT2 "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07" // [MqttFingerprint2]
# define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT)
# define MQTT_USER "DVES_USER" // [MqttUser] MQTT user
# define MQTT_PASS "DVES_PASS" // [MqttPassword] MQTT password
2017-01-28 13:41:01 +00:00
2020-01-20 17:49:57 +00:00
# define MQTT_BUTTON_RETAIN false // [ButtonRetain] Button may send retain flag (false = off, true = on)
# define MQTT_POWER_RETAIN false // [PowerRetain] Power status message may send retain flag (false = off, true = on)
# define MQTT_SWITCH_RETAIN false // [SwitchRetain] Switch may send retain flag (false = off, true = on)
2020-01-21 11:36:44 +00:00
# define MQTT_SENSOR_RETAIN false // [SensorRetain] Sensor may send retain flag (false = off, true = on)
2020-02-16 09:31:19 +00:00
# define MQTT_NO_HOLD_RETAIN false // [SetOption62] Disable retain flag on HOLD messages
//#define MQTT_NO_RETAIN // Disable all retain flags (including LWT!) if unsupported by broker (eg Losant)
2017-01-28 13:41:01 +00:00
2017-03-29 17:42:05 +01:00
# define MQTT_STATUS_OFF "OFF" // [StateText1] Command or Status result when turned off (needs to be a string like "0" or "Off")
# define MQTT_STATUS_ON "ON" // [StateText2] Command or Status result when turned on (needs to be a string like "1" or "On")
# define MQTT_CMND_TOGGLE "TOGGLE" // [StateText3] Command to send when toggling (needs to be a string like "2" or "Toggle")
2017-06-06 22:23:23 +01:00
# define MQTT_CMND_HOLD "HOLD" // [StateText4] Command to send when button is kept down for over KEY_HOLD_TIME * 0.1 seconds (needs to be a string like "HOLD")
2017-01-28 13:41:01 +00:00
2017-05-08 12:21:45 +01:00
// -- MQTT topics ---------------------------------
2018-04-05 14:26:16 +01:00
// Example "tasmota/bedroom/%topic%/%prefix%/" up to 80 characers
2017-05-08 12:21:45 +01:00
# define MQTT_FULLTOPIC "%prefix% / %topic% / " // [FullTopic] Subscribe and Publish full topic name - Legacy topic
// %prefix% token options
2019-10-27 11:04:08 +00:00
# define SUB_PREFIX "cmnd" // [Prefix1] Tasmota devices subscribe to %prefix%/%topic% being SUB_PREFIX/MQTT_TOPIC and SUB_PREFIX/MQTT_GRPTOPIC
# define PUB_PREFIX "stat" // [Prefix2] Tasmota devices publish to %prefix%/%topic% being PUB_PREFIX/MQTT_TOPIC
# define PUB_PREFIX2 "tele" // [Prefix3] Tasmota devices publish telemetry data to %prefix%/%topic% being PUB_PREFIX2/MQTT_TOPIC/UPTIME, POWER and TIME
2017-05-08 12:21:45 +01:00
// May be named the same as PUB_PREFIX
// %topic% token options (also ButtonTopic and SwitchTopic)
2020-02-09 18:38:46 +00:00
# define MQTT_TOPIC PROJECT "_%06X" // [Topic] unique MQTT device topic including device MAC address
2019-10-27 11:04:08 +00:00
# define MQTT_GRPTOPIC "tasmotas" // [GroupTopic] MQTT Group topic
2020-01-20 17:49:57 +00:00
# define MQTT_GROUPTOPIC_FORMAT false // [SetOption75] GroupTopic replaces %topic% (false) or fixed topic cmnd/grouptopic (true)
2018-08-05 19:01:50 +01:00
# define MQTT_BUTTON_TOPIC "0" // [ButtonTopic] MQTT button topic, "0" = same as MQTT_TOPIC, set to 'PROJECT "_BTN_%06X"' for unique topic including device MAC address
# define MQTT_SWITCH_TOPIC "0" // [SwitchTopic] MQTT button topic, "0" = same as MQTT_TOPIC, set to 'PROJECT "_SW_%06X"' for unique topic including device MAC address
2017-05-08 12:21:45 +01:00
# define MQTT_CLIENT_ID "DVES_%06X" // [MqttClient] Also fall back topic using Chip Id = last 6 characters of MAC address
2017-01-28 13:41:01 +00:00
// -- MQTT - Telemetry ----------------------------
# define TELE_PERIOD 300 // [TelePeriod] Telemetry (0 = disable, 10 - 3600 seconds)
2020-01-20 17:49:57 +00:00
# define TELE_ON_POWER false // [SetOption59] send tele/STATE together with stat/RESULT (false = Disable, true = Enable)
2017-01-28 13:41:01 +00:00
// -- MQTT - Domoticz -----------------------------
2018-04-05 14:26:16 +01:00
# define DOMOTICZ_UPDATE_TIMER 0 // [DomoticzUpdateTimer] Send relay status (0 = disable, 1 - 3600 seconds)
2017-01-28 13:41:01 +00:00
2018-01-18 15:19:28 +00:00
// -- MQTT - Home Assistant Discovery -------------
2020-01-20 17:49:57 +00:00
# define HOME_ASSISTANT_DISCOVERY_ENABLE false // [SetOption19] Home Assistant Discovery (false = Disable, true = Enable)
# define HASS_AS_LIGHT false // [SetOption30] Enforce HAss autodiscovery as light
// -- MQTT - Options ------------------------------
# define MQTT_RESULT_COMMAND false // [SetOption4] Switch between MQTT RESULT or COMMAND
# define MQTT_LWT_MESSAGE false // [SetOption10] Switch between MQTT LWT OFFLINE or empty message
# define MQTT_POWER_FORMAT false // [SetOption26] Switch between POWER or POWER1 for single power devices
# define MQTT_APPEND_TIMEZONE false // [SetOption52] Append timezone to JSON time
2020-02-16 09:31:19 +00:00
# define MQTT_BUTTON_SWITCH_FORCE_LOCAL false // [SetOption61] Force local operation when button/switch topic is set (false = off, true = on)
2020-01-20 17:49:57 +00:00
# define MQTT_INDEX_SEPARATOR false // [SetOption64] Enable "_" instead of "-" as sensor index separator
# define MQTT_TUYA_RECEIVED false // [SetOption66] Enable TuyaMcuReceived messages over Mqtt
2018-01-18 15:19:28 +00:00
2017-01-28 13:41:01 +00:00
// -- HTTP ----------------------------------------
2018-04-05 14:26:16 +01:00
# define WEB_SERVER 2 // [WebServer] Web server (0 = Off, 1 = Start as User, 2 = Start as Admin)
# define WEB_PASSWORD "" // [WebPassword] Web server Admin mode Password for WEB_USERNAME (empty string = Disable)
2019-10-27 11:04:08 +00:00
# define FRIENDLY_NAME "Tasmota" // [FriendlyName] Friendlyname up to 32 characters used by webpages and Alexa
2018-04-05 14:26:16 +01:00
# define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)
2019-12-09 14:15:16 +00:00
# define CORS_DOMAIN "" // [Cors] CORS Domain for preflight requests
2020-01-20 17:49:57 +00:00
// -- HTTP Options --------------------------------
# define GUI_SHOW_HOSTNAME false // [SetOption53] Show hostname and IP address in GUI main menu
2019-10-28 08:54:23 +00:00
// -- HTTP GUI Colors -----------------------------
2019-04-09 08:37:29 +01:00
// HTML hex color codes. Only 3 and 6 digit hex string values are supported!! See https://www.w3schools.com/colors/colors_hex.asp
2019-11-06 10:16:43 +00:00
// Light theme - pre v7
// WebColor {"WebColor":["#000","#fff","#f2f2f2","#000","#fff","#000","#fff","#f00","#008000","#fff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#fff","#999","#000"]}
2019-10-28 08:54:23 +00:00
/*
2019-04-09 08:37:29 +01:00
# define COLOR_TEXT "#000" // [WebColor1] Global text color - Black
# define COLOR_BACKGROUND "#fff" // [WebColor2] Global background color - White
# define COLOR_FORM "#f2f2f2" // [WebColor3] Form background color - Greyish
# define COLOR_INPUT_TEXT "#000" // [WebColor4] Input text color - Black
# define COLOR_INPUT "#fff" // [WebColor5] Input background color - White
# define COLOR_CONSOLE_TEXT "#000" // [WebColor6] Console text color - Black
# define COLOR_CONSOLE "#fff" // [WebColor7] Console background color - White
# define COLOR_TEXT_WARNING "#f00" // [WebColor8] Warning text color - Red
2019-11-06 10:16:43 +00:00
# define COLOR_TEXT_SUCCESS "#008000" // [WebColor9] Success text color - Dark lime green
2019-04-09 08:37:29 +01:00
# define COLOR_BUTTON_TEXT "#fff" // [WebColor10] Button text color - White
2019-11-06 10:16:43 +00:00
# define COLOR_BUTTON "#1fa3ec" // [WebColor11] Button color - Vivid blue
# define COLOR_BUTTON_HOVER "#0e70a4" // [WebColor12] Button color when hovered over - Dark blue
# define COLOR_BUTTON_RESET "#d43535" // [WebColor13] Restart/Reset/Delete button color - Strong red
# define COLOR_BUTTON_RESET_HOVER "#931f1f" // [WebColor14] Restart/Reset/Delete button color when hovered over - Dark red
# define COLOR_BUTTON_SAVE "#47c266" // [WebColor15] Save button color - Moderate lime green
# define COLOR_BUTTON_SAVE_HOVER "#5aaf6f" // [WebColor16] Save button color when hovered over - Dark moderate lime green
2019-04-09 08:37:29 +01:00
# define COLOR_TIMER_TAB_TEXT "#fff" // [WebColor17] Config timer tab text color - White
2019-11-06 10:16:43 +00:00
# define COLOR_TIMER_TAB_BACKGROUND "#999" // [WebColor18] Config timer tab background color - Dark gray
# define COLOR_TITLE_TEXT "#000" // [WebColor19] Title text color - Whiteish
*/
// Dark theme
// WebColor {"WebColor":["#eaeaea","#252525","#4f4f4f","#000","#ddd","#65c115","#1f1f1f","#ff5661","#008000","#faffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#faffff","#999","#eaeaea"]}
# define COLOR_TEXT "#eaeaea" // [WebColor1] Global text color - Very light gray
# define COLOR_BACKGROUND "#252525" // [WebColor2] Global background color - Very dark gray (mostly black)
# define COLOR_FORM "#4f4f4f" // [WebColor3] Form background color - Very dark gray
# define COLOR_INPUT_TEXT "#000" // [WebColor4] Input text color - Black
# define COLOR_INPUT "#ddd" // [WebColor5] Input background color - Very light gray
# define COLOR_CONSOLE_TEXT "#65c115" // [WebColor6] Console text color - Strong Green
# define COLOR_CONSOLE "#1f1f1f" // [WebColor7] Console background color - Very dark gray (mostly black)
# define COLOR_TEXT_WARNING "#ff5661" // [WebColor8] Warning text color - Brick Red
# define COLOR_TEXT_SUCCESS "#008000" // [WebColor9] Success text color - Dark lime green
# define COLOR_BUTTON_TEXT "#faffff" // [WebColor10] Button text color - Very pale (mostly white) cyan
# define COLOR_BUTTON "#1fa3ec" // [WebColor11] Button color - Vivid blue
# define COLOR_BUTTON_HOVER "#0e70a4" // [WebColor12] Button color when hovered over - Dark blue
# define COLOR_BUTTON_RESET "#d43535" // [WebColor13] Restart/Reset/Delete button color - Strong red
# define COLOR_BUTTON_RESET_HOVER "#931f1f" // [WebColor14] Restart/Reset/Delete button color when hovered over - Dark red
# define COLOR_BUTTON_SAVE "#47c266" // [WebColor15] Save button color - Moderate lime green
# define COLOR_BUTTON_SAVE_HOVER "#5aaf6f" // [WebColor16] Save button color when hovered over - Dark moderate lime green
# define COLOR_TIMER_TAB_TEXT "#faffff" // [WebColor17] Config timer tab text color - Very pale (mostly white) cyan.
# define COLOR_TIMER_TAB_BACKGROUND "#999" // [WebColor18] Config timer tab background color - Dark gray
# define COLOR_TITLE_TEXT "#eaeaea" // [WebColor19] Title text color - Very light gray
2017-01-28 13:41:01 +00:00
2020-01-21 11:36:44 +00:00
// -- KNX -----------------------------------------
# define KNX_ENABLED false // [Knx_Enabled] Enable KNX protocol
# define KNX_ENHANCED false // [Knx_Enhanced] Enable KNX Enhanced Mode
2019-01-14 09:57:01 +00:00
// -- mDNS ----------------------------------------
2020-01-20 17:49:57 +00:00
# define MDNS_ENABLED false // [SetOption55] Use mDNS (false = Disable, true = Enable)
2019-01-14 09:57:01 +00:00
2017-01-28 13:41:01 +00:00
// -- Time - Up to three NTP servers in your region
2017-03-12 17:36:33 +00:00
# define NTP_SERVER1 "pool.ntp.org" // [NtpServer1] Select first NTP server by name or IP address (129.250.35.250)
# define NTP_SERVER2 "nl.pool.ntp.org" // [NtpServer2] Select second NTP server by name or IP address (5.39.184.5)
# define NTP_SERVER3 "0.nl.pool.ntp.org" // [NtpServer3] Select third NTP server by name or IP address (93.94.224.67)
2017-01-28 13:41:01 +00:00
2018-05-13 18:43:48 +01:00
// -- Time - Start Daylight Saving Time and timezone offset from UTC in minutes
2018-10-26 16:13:17 +01:00
# define TIME_DST_HEMISPHERE North // [TimeDst] Hemisphere (0 or North, 1 or South)
# define TIME_DST_WEEK Last // Week of month (0 or Last, 1 or First, 2 or Second, 3 or Third, 4 or Fourth)
# define TIME_DST_DAY Sun // Day of week (1 or Sun, 2 or Mon, 3 or Tue, 4 or Wed, 5 or Thu, 6 or Fri, 7 or Sat)
# define TIME_DST_MONTH Mar // Month (1 or Jan, 2 or Feb, 3 or Mar, 4 or Apr, 5 or May, 6 or Jun, 7 or Jul, 8 or Aug, 9 or Sep, 10 or Oct, 11 or Nov, 12 or Dec)
# define TIME_DST_HOUR 2 // Hour (0 to 23)
# define TIME_DST_OFFSET +120 // Offset from UTC in minutes (-780 to +780)
2018-05-13 18:43:48 +01:00
// -- Time - Start Standard Time and timezone offset from UTC in minutes
2018-10-26 16:13:17 +01:00
# define TIME_STD_HEMISPHERE North // [TimeStd] Hemisphere (0 or North, 1 or South)
# define TIME_STD_WEEK Last // Week of month (0 or Last, 1 or First, 2 or Second, 3 or Third, 4 or Fourth)
# define TIME_STD_DAY Sun // Day of week (1 or Sun, 2 or Mon, 3 or Tue, 4 or Wed, 5 or Thu, 6 or Fri, 7 or Sat)
# define TIME_STD_MONTH Oct // Month (1 or Jan, 2 or Feb, 3 or Mar, 4 or Apr, 5 or May, 6 or Jun, 7 or Jul, 8 or Aug, 9 or Sep, 10 or Oct, 11 or Nov, 12 or Dec)
# define TIME_STD_HOUR 3 // Hour (0 to 23)
# define TIME_STD_OFFSET +60 // Offset from UTC in minutes (-780 to +780)
2018-05-13 18:43:48 +01:00
2018-04-05 14:26:16 +01:00
// -- Location ------------------------------------
# define LATITUDE 48.858360 // [Latitude] Your location to be used with sunrise and sunset
# define LONGITUDE 2.294442 // [Longitude] Your location to be used with sunrise and sunset
2017-01-28 13:41:01 +00:00
// -- Application ---------------------------------
2018-04-05 14:26:16 +01:00
# define APP_TIMEZONE 1 // [Timezone] +1 hour (Amsterdam) (-13 .. 14 = hours from UTC, 99 = use TIME_DST/TIME_STD)
# define APP_LEDSTATE LED_POWER // [LedState] Function of led
// (LED_OFF, LED_POWER, LED_MQTTSUB, LED_POWER_MQTTSUB, LED_MQTTPUB, LED_POWER_MQTTPUB, LED_MQTT, LED_POWER_MQTT)
2019-04-10 13:26:36 +01:00
# define APP_LEDMASK 0xFFFF // [LedMask] Assign Relay to Power led (0xFFFF is default)
2020-01-20 17:49:57 +00:00
# define APP_ENABLE_LEDLINK false // [SetOption31] Enable link led blinking
2017-01-28 13:41:01 +00:00
# define APP_PULSETIME 0 // [PulseTime] Time in 0.1 Sec to turn off power for relay 1 (0 = disabled)
2018-04-05 14:26:16 +01:00
# define APP_POWERON_STATE POWER_ALL_SAVED // [PowerOnState] Power On Relay state
// (POWER_ALL_OFF, POWER_ALL_ON, POWER_ALL_SAVED_TOGGLE, POWER_ALL_SAVED, POWER_ALL_ALWAYS_ON, POWER_ALL_OFF_PULSETIME_ON)
2017-01-28 13:41:01 +00:00
# define APP_BLINKTIME 10 // [BlinkTime] Time in 0.1 Sec to blink/toggle power for relay 1
# define APP_BLINKCOUNT 10 // [BlinkCount] Number of blinks (0 = 32000)
2020-01-20 17:49:57 +00:00
# define APP_NORMAL_SLEEP false // [SetOption60] Enable normal sleep instead of dynamic sleep
2019-11-24 18:35:54 +00:00
# define APP_SLEEP 0 // [Sleep] Sleep time to lower energy consumption (0 = Off, 1 - 250 mSec),
2019-11-29 17:28:25 +00:00
# define PWM_MAX_SLEEP 10 // Sleep will be lowered to this value when light is on, to avoid flickering
2017-01-28 13:41:01 +00:00
2018-08-27 11:01:20 +01:00
# define KEY_DEBOUNCE_TIME 50 // [ButtonDebounce] Number of mSeconds button press debounce time
2017-06-16 13:33:49 +01:00
# define KEY_HOLD_TIME 40 // [SetOption32] Number of 0.1 seconds to hold Button or external Pushbutton before sending HOLD message
2020-01-20 17:49:57 +00:00
# define KEY_DISABLE_MULTIPRESS false // [SetOption1] Disable button multipress
# define KEY_SWAP_DOUBLE_PRESS false // [SetOption11] Swap button single and double press functionality
# define KEY_ONLY_SINGLE_PRESS false // [SetOption13] Enable only single press to speed up button press recognition
2018-08-27 11:01:20 +01:00
# define SWITCH_DEBOUNCE_TIME 50 // [SwitchDebounce] Number of mSeconds switch press debounce time
2020-01-15 15:12:55 +00:00
# define SWITCH_MODE TOGGLE // [SwitchMode] TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON, PUSHBUTTON_INV, PUSHBUTTONHOLD, PUSHBUTTONHOLD_INV, PUSHBUTTON_TOGGLE, TOGGLEMULTI, FOLLOWMULTI, FOLLOWMULTI_INV (the wall switch state)
2017-01-28 13:41:01 +00:00
2020-01-20 17:49:57 +00:00
# define TEMP_CONVERSION false // [SetOption8] Return temperature in (false = Celsius or true = Fahrenheit)
# define PRESSURE_CONVERSION false // [SetOption24] Return pressure in (false = hPa or true = mmHg)
2017-05-03 17:19:13 +01:00
# define TEMP_RESOLUTION 1 // [TempRes] Maximum number of decimals (0 - 3) showing sensor Temperature
# define HUMIDITY_RESOLUTION 1 // [HumRes] Maximum number of decimals (0 - 3) showing sensor Humidity
# define PRESSURE_RESOLUTION 1 // [PressRes] Maximum number of decimals (0 - 3) showing sensor Pressure
# define ENERGY_RESOLUTION 3 // [EnergyRes] Maximum number of decimals (0 - 5) showing energy usage in kWh
2018-12-15 14:55:51 +00:00
# define CALC_RESOLUTION 3 // [CalcRes] Maximum number of decimals (0 - 7) used in commands ADD, SUB, MULT and SCALE
2017-01-28 13:41:01 +00:00
2020-01-20 17:49:57 +00:00
# define APP_FLASH_CYCLE false // [SetOption12] Switch between dynamic or fixed slot flash save location
# define APP_NO_RELAY_SCAN false // [SetOption63] Don't scan relay power state at restart
# define APP_DISABLE_POWERCYCLE false // [SetOption65] Disable fast power cycle detection for device reset
2020-01-21 11:36:44 +00:00
# define DEEPSLEEP_BOOTCOUNT false // [SetOption76] Enable incrementing bootcount when deepsleep is enabled
2020-01-20 17:49:57 +00:00
// -- Lights --------------------------------------
2020-01-21 11:36:44 +00:00
# define WS2812_LEDS 30 // [Pixels] Number of WS2812 LEDs to start with (max is 512)
2020-01-20 17:49:57 +00:00
# define LIGHT_MODE true // [SetOption15] Switch between commands PWM or COLOR/DIMMER/CT/CHANNEL
# define LIGHT_CLOCK_DIRECTION false // [SetOption16] Switch WS2812 clock between clockwise or counter-clockwise
# define LIGHT_COLOR_RADIX false // [SetOption17] Switch between decimal or hexadecimal color output (false = hexadecimal, true = decimal)
# define LIGHT_PAIRS_CO2 false // [SetOption18] Enable Pair light signal with CO2 sensor
# define LIGHT_POWER_CONTROL false // [SetOption20] Enable power control in relation to Dimmer/Color/Ct changes
# define LIGHT_CHANNEL_MODE false // [SetOption68] Enable multi-channels PWM instead of Color PWM
# define LIGHT_SLIDER_POWER false // [SetOption77] Do not power off if slider moved to far left
# define LIGHT_ALEXA_CT_RANGE false // [SetOption82] Reduced CT range for Alexa
// -- Energy --------------------------------------
# define ENERGY_VOLTAGE_ALWAYS false // [SetOption21] Enable show voltage even if powered off
# define ENERGY_DDS2382_MODE false // [SetOption71] Enable DDS2382 different Modbus registers for Active Energy (#6531)
2020-01-21 11:36:44 +00:00
# define ENERGY_HARDWARE_TOTALS false // [SetOption72] Enable hardware energy total counter as reference (#6561)
2020-01-20 17:49:57 +00:00
// -- Other Options -------------------------------
2020-01-21 11:36:44 +00:00
# define TIMERS_ENABLED false // [Timers] Enable Timers
2020-01-20 17:49:57 +00:00
# define RF_DATA_RADIX false // [SetOption28] RF receive data format (false = hexadecimal, true = decimal)
# define IR_DATA_RADIX false // [SetOption29] IR receive data format (false = hexadecimal, true = decimal)
# define TUYA_SETOPTION_20 false // [SetOption54] Apply SetOption20 settings to Tuya device
# define IR_ADD_RAW_DATA false // [SetOption58] Add IR Raw data to JSON message
# define BUZZER_ENABLE false // [SetOption67] Enable buzzer when available
# define DS18X20_PULL_UP false // [SetOption74] Enable internal pullup for single DS18x20 sensor
# define COUNTER_RESET false // [SetOption79] Enable resetting of counters after telemetry was sent
# define SHUTTER_SUPPORT false // [SetOption80] Enable shutter support
# define PCF8574_INVERT_PORTS false // [SetOption81] Invert all ports on PCF8574 devices
# define ZIGBEE_FRIENDLY_NAMES false // [SetOption83] Enable Zigbee FriendlyNames instead of ShortAddresses when possible
2018-04-05 14:26:16 +01:00
/*********************************************************************************************\
* END OF SECTION 1
*
* SECTION 2
* - Enable a feature by removing both // in front of it
* - Disable a feature by preceding it with //
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// -- Localization --------------------------------
// If non selected the default en-GB will be used
2018-04-20 15:07:06 +01:00
//#define MY_LANGUAGE bg-BG // Bulgarian in Bulgaria
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE cs-CZ // Czech in Czech
//#define MY_LANGUAGE de-DE // German in Germany
2018-04-19 20:57:14 +01:00
//#define MY_LANGUAGE el-GR // Greek in Greece
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE en-GB // English in Great Britain. Enabled by Default
2019-04-01 16:41:47 +01:00
//#define MY_LANGUAGE es-ES // Spanish in Spain
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE fr-FR // French in France
2018-10-26 16:13:17 +01:00
//#define MY_LANGUAGE he-HE // Hebrew in Israel
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE hu-HU // Hungarian in Hungary
//#define MY_LANGUAGE it-IT // Italian in Italy
2019-02-26 09:16:56 +00:00
//#define MY_LANGUAGE ko-KO // Korean in Korea
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE nl-NL // Dutch in the Netherlands
//#define MY_LANGUAGE pl-PL // Polish in Poland
2018-05-04 14:39:18 +01:00
//#define MY_LANGUAGE pt-BR // Portuguese in Brazil
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE pt-PT // Portuguese in Portugal
//#define MY_LANGUAGE ru-RU // Russian in Russia
2018-12-18 17:57:37 +00:00
//#define MY_LANGUAGE sk-SK // Slovak in Slovakia
2018-12-15 14:55:51 +00:00
//#define MY_LANGUAGE sv-SE // Swedish in Sweden
2018-07-26 09:57:59 +01:00
//#define MY_LANGUAGE tr-TR // Turkish in Turkey
2019-12-27 22:29:25 +00:00
//#define MY_LANGUAGE uk-UA // Ukrainian in Ukraine
2018-04-05 14:26:16 +01:00
//#define MY_LANGUAGE zh-CN // Chinese (Simplified) in China
//#define MY_LANGUAGE zh-TW // Chinese (Traditional) in Taiwan
2018-07-15 16:30:38 +01:00
// -- Wifi Config tools ---------------------------
2018-12-22 15:13:07 +00:00
# define WIFI_SOFT_AP_CHANNEL 1 // Soft Access Point Channel number between 1 and 13 as used by Wifi Manager web GUI
2018-07-14 14:35:56 +01:00
// -- OTA -----------------------------------------
//#define USE_ARDUINO_OTA // Add optional support for Arduino OTA (+13k code)
2018-04-25 11:06:53 +01:00
// -- MQTT ----------------------------------------
# define MQTT_TELE_RETAIN 0 // Tele messages may send retain flag (0 = off, 1 = on)
2019-11-04 11:23:20 +00:00
# define MQTT_CLEAN_SESSION 1 // Mqtt clean session connection (0 = No clean session, 1 = Clean session (default))
2018-04-25 11:06:53 +01:00
2018-04-05 14:26:16 +01:00
// -- MQTT - Domoticz -----------------------------
# define USE_DOMOTICZ // Enable Domoticz (+6k code, +0.3k mem)
# define DOMOTICZ_IN_TOPIC "domoticz / in" // Domoticz Input Topic
# define DOMOTICZ_OUT_TOPIC "domoticz / out" // Domoticz Output Topic
// -- MQTT - Home Assistant Discovery -------------
2019-12-07 18:44:33 +00:00
# define USE_HOME_ASSISTANT // Enable Home Assistant Discovery Support (+4.1k code, +6 bytes mem)
2018-04-05 14:26:16 +01:00
# define HOME_ASSISTANT_DISCOVERY_PREFIX "homeassistant" // Home Assistant discovery prefix
2019-06-11 13:30:07 +01:00
// -- MQTT - TLS - AWS IoT ------------------------
2019-06-19 08:49:48 +01:00
// Using TLS starting with version v6.5.0.16 compilation will only work using Core 2.4.2 and 2.5.2. No longer supported: 2.3.0
//#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake)
2019-11-24 09:26:57 +00:00
// #define USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use. (+2.2k code, +1.9k mem during connection handshake)
2019-11-29 17:28:25 +00:00
// This includes the LetsEncrypt CA in tasmota_ca.ino for verifying server certificates
2019-07-12 07:11:40 +01:00
// #define USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem)
2019-08-04 18:42:21 +01:00
// #define USE_MQTT_AWS_IOT // Enable MQTT for AWS IoT - requires a private key (+11.9k code, +0.4k mem)
2019-10-27 11:04:08 +00:00
// Note: you need to generate a private key + certificate per device and update 'tasmota/tasmota_aws_iot.cpp'
2019-10-27 10:13:24 +00:00
// Full documentation here: https://github.com/arendst/Tasmota/wiki/AWS-IoT
2019-11-04 14:08:29 +00:00
// #define USE_4K_RSA // Support 4096 bits certificates, instead of 2048
2019-06-05 10:44:52 +01:00
2018-04-18 16:28:45 +01:00
// -- KNX IP Protocol -----------------------------
2018-07-23 04:54:25 +01:00
//#define USE_KNX // Enable KNX IP Protocol Support (+9.4k code, +3k7 mem)
# define USE_KNX_WEB_MENU // Enable KNX WEB MENU (+8.3k code, +144 mem)
2018-04-18 16:28:45 +01:00
2018-04-05 14:26:16 +01:00
// -- HTTP ----------------------------------------
2018-07-15 14:21:48 +01:00
# define USE_WEBSERVER // Enable web server and Wifi Manager (+66k code, +8k mem)
2018-04-05 14:26:16 +01:00
# define WEB_PORT 80 // Web server Port for User and Admin mode
# define WEB_USERNAME "admin" // Web server Admin mode user name
2019-06-12 16:32:25 +01:00
// #define USE_JAVASCRIPT_ES6 // Enable ECMAScript6 syntax using less JavaScript code bytes (fails on IE11)
2019-08-19 09:36:42 +01:00
// #define USE_WEBSEND_RESPONSE // Enable command WebSend response message (+1k code)
2019-05-20 14:09:42 +01:00
# define USE_EMULATION_HUE // Enable Hue Bridge emulation for Alexa (+14k code, +2k mem common)
# define USE_EMULATION_WEMO // Enable Belkin WeMo emulation for Alexa (+6k code, +2k mem common)
2018-04-05 14:26:16 +01:00
// -- mDNS ----------------------------------------
2019-06-10 19:45:36 +01:00
# define USE_DISCOVERY // Enable mDNS for the following services (+8k code or +23.5k code with core 2_5_x, +0.3k mem)
2018-04-05 14:26:16 +01:00
# define WEBSERVER_ADVERTISE // Provide access to webserver by name <Hostname>.local/
# define MQTT_HOST_DISCOVERY // Find MQTT host server (overrides MQTT_HOST if found)
// -- Time ----------------------------------------
# define USE_TIMERS // Add support for up to 16 timers (+2k2 code)
# define USE_TIMERS_WEB // Add timer webpage support (+4k5 code)
# define USE_SUNRISE // Add support for Sunrise and sunset tools (+16k)
2018-04-23 10:37:46 +01:00
# define SUNRISE_DAWN_ANGLE DAWN_NORMAL // Select desired Dawn Angle from (DAWN_NORMAL, DAWN_CIVIL, DAWN_NAUTIC, DAWN_ASTRONOMIC)
2018-04-05 14:26:16 +01:00
2019-05-18 12:34:52 +01:00
// -- Rules or Script ----------------------------
2019-05-18 11:21:09 +01:00
// Select none or only one of the below defines
2019-07-09 09:48:03 +01:00
# define USE_RULES // Add support for rules (+8k code)
//#define USE_SCRIPT // Add support for script (+17k code)
2019-08-19 07:20:51 +01:00
//#define USE_SCRIPT_FATFS 4 // Script: Add FAT FileSystem Support
2019-05-18 08:45:04 +01:00
2019-03-07 16:47:14 +00:00
// #define USE_EXPRESSION // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem)
2019-09-09 16:24:27 +01:00
// #define SUPPORT_IF_STATEMENT // Add support for IF statement in rules (+4k2 code, -332 bytes mem)
2019-03-07 16:47:14 +00:00
// #define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code)
2018-04-13 16:42:11 +01:00
2019-07-14 21:08:19 +01:00
// -- Optional modules ----------------------------
2019-10-15 14:37:22 +01:00
//#define ROTARY_V1 // Add support for MI Desk Lamp
# define USE_SONOFF_RF // Add support for Sonoff Rf Bridge (+3k2 code)
# define USE_RF_FLASH // Add support for flashing the EFM8BB1 chip on the Sonoff RF Bridge. C2CK must be connected to GPIO4, C2D to GPIO5 on the PCB (+2k7 code)
2019-10-14 17:15:43 +01:00
# define USE_SONOFF_SC // Add support for Sonoff Sc (+1k1 code)
2019-09-03 12:23:05 +01:00
# define USE_TUYA_MCU // Add support for Tuya Serial MCU
2019-07-14 21:08:19 +01:00
# define TUYA_DIMMER_ID 0 // Default dimmer Id
# define USE_ARMTRONIX_DIMMERS // Add support for Armtronix Dimmers (+1k4 code)
2019-10-17 11:20:26 +01:00
# define USE_PS_16_DZ // Add support for PS-16-DZ Dimmer (+2k code)
2019-10-15 14:37:22 +01:00
# define USE_SONOFF_IFAN // Add support for Sonoff iFan02 and iFan03 (+2k code)
# define USE_BUZZER // Add support for a buzzer (+0k6 code)
# define USE_ARILUX_RF // Add support for Arilux RF remote controller (+0k8 code, 252 iram (non 2.3.0))
2020-01-09 10:35:01 +00:00
//#define USE_SHUTTER // Add Shutter support for up to 4 shutter with different motortypes (+11k code)
2019-11-11 10:29:15 +00:00
# define USE_DEEPSLEEP // Add support for deepsleep (+1k code)
2019-10-18 16:29:19 +01:00
//#define USE_EXS_DIMMER // Add support for ES-Store WiFi Dimmer (+1k5 code)
// #define EXS_MCU_CMNDS // Add command to send MCU commands (+0k8 code)
2019-12-30 13:23:37 +00:00
//#define USE_HOTPLUG // Add support for sensor HotPlug
2020-02-25 10:08:47 +00:00
//#define USE_DEVICE_GROUPS // Add support for device groups (+4k code)
2019-07-14 21:08:19 +01:00
2019-10-06 16:19:05 +01:00
// -- Optional light modules ----------------------
# define USE_WS2812 // WS2812 Led string using library NeoPixelBus (+5k code, +1k mem, 232 iram) - Disable by //
// #define USE_WS2812_DMA // DMA supports only GPIO03 (= Serial RXD) (+1k mem). When USE_WS2812_DMA is enabled expect Exceptions on Pow
# define USE_WS2812_HARDWARE NEO_HW_WS2812 // Hardware type (NEO_HW_WS2812, NEO_HW_WS2812X, NEO_HW_WS2813, NEO_HW_SK6812, NEO_HW_LC8812, NEO_HW_APA106)
# define USE_WS2812_CTYPE NEO_GRB // Color type (NEO_RGB, NEO_GRB, NEO_BRG, NEO_RBG, NEO_RGBW, NEO_GRBW)
2019-10-06 17:05:17 +01:00
# define USE_MY92X1 // Add support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas
2019-10-06 16:19:05 +01:00
# define USE_SM16716 // Add support for SM16716 RGB LED controller (+0k7 code)
# define USE_SM2135 // Add support for SM2135 RGBCW led control as used in Action LSC (+0k6 code)
2019-10-17 11:20:26 +01:00
# define USE_SONOFF_L1 // Add support for Sonoff L1 led control
2019-10-06 16:19:05 +01:00
2019-07-14 21:08:19 +01:00
// -- Counter input -------------------------------
2019-06-16 15:43:23 +01:00
# define USE_COUNTER // Enable inputs as counter (+0k8 code)
2018-02-07 16:50:02 +00:00
// -- Internal Analog input -----------------------
2019-05-13 14:56:01 +01:00
//#define USE_ADC_VCC // Display Vcc in Power status. Disable for use as Analog input on selected devices
2017-03-14 17:03:25 +00:00
2018-02-07 16:50:02 +00:00
// -- One wire sensors ----------------------------
2019-10-16 10:51:38 +01:00
# define USE_DS18x20 // Add support for DS18x20 sensors with id sort, single scan and read retry (+2k6 code)
2019-09-25 15:28:54 +01:00
// #define W1_PARASITE_POWER // Optimize for parasite powered sensors
2017-01-28 13:41:01 +00:00
2017-12-27 13:10:55 +00:00
// -- I2C sensors ---------------------------------
2018-12-18 17:36:53 +00:00
# define USE_I2C // I2C using library wire (+10k code, 0k2 mem, 124 iram)
2018-08-18 17:11:22 +01:00
2018-01-05 11:26:19 +00:00
# ifdef USE_I2C
2019-11-11 10:29:15 +00:00
# define USE_SHT // [I2cDriver8] Enable SHT1X sensor (+1k4 code)
# define USE_HTU // [I2cDriver9] Enable HTU21/SI7013/SI7020/SI7021 sensor (I2C address 0x40) (+1k5 code)
# define USE_BMP // [I2cDriver10] Enable BMP085/BMP180/BMP280/BME280 sensors (I2C addresses 0x76 and 0x77) (+4k4 code)
2018-12-15 14:55:51 +00:00
// #define USE_BME680 // Enable support for BME680 sensor using Bosch BME680 library (+4k code)
2019-11-11 10:29:15 +00:00
# define USE_BH1750 // [I2cDriver11] Enable BH1750 sensor (I2C address 0x23 or 0x5C) (+0k5 code)
// #define USE_VEML6070 // [I2cDriver12] Enable VEML6070 sensor (I2C addresses 0x38 and 0x39) (+1k5 code)
2018-10-26 16:13:17 +01:00
# define USE_VEML6070_RSET 270000 // VEML6070, Rset in Ohm used on PCB board, default 270K = 270000ohm, range for this sensor: 220K ... 1Meg
# define USE_VEML6070_SHOW_RAW // VEML6070, shows the raw value of UV-A
2019-11-11 10:29:15 +00:00
// #define USE_ADS1115 // [I2cDriver13] Enable ADS1115 16 bit A/D converter (I2C address 0x48, 0x49, 0x4A or 0x4B) based on Adafruit ADS1x15 library (no library needed) (+0k7 code)
// #define USE_INA219 // [I2cDriver14] Enable INA219 (I2C address 0x40, 0x41 0x44 or 0x45) Low voltage and current sensor (+1k code)
// #define USE_INA226 // [I2cDriver35] Enable INA226 (I2C address 0x40, 0x41 0x44 or 0x45) Low voltage and current sensor (+2k3 code)
# define USE_SHT3X // [I2cDriver15] Enable SHT3x (I2C address 0x44 or 0x45) or SHTC3 (I2C address 0x70) sensor (+0k7 code)
// #define USE_TSL2561 // [I2cDriver16] Enable TSL2561 sensor (I2C address 0x29, 0x39 or 0x49) using library Joba_Tsl2561 (+2k3 code)
// #define USE_TSL2591 // [I2cDriver40] Enable TSL2591 sensor (I2C address 0x29) using library Adafruit_TSL2591 (+1k6 code)
// #define USE_MGS // [I2cDriver17] Enable Xadow and Grove Mutichannel Gas sensor using library Multichannel_Gas_Sensor (+10k code)
2018-02-18 17:39:28 +00:00
# define MGS_SENSOR_ADDR 0x04 // Default Mutichannel Gas sensor i2c address
2019-11-11 10:29:15 +00:00
// #define USE_SGP30 // [I2cDriver18] Enable SGP30 sensor (I2C address 0x58) (+1k1 code)
// #define USE_SI1145 // [I2cDriver19] Enable SI1145/46/47 sensor (I2C address 0x60) (+1k code)
# define USE_LM75AD // [I2cDriver20] Enable LM75AD sensor (I2C addresses 0x48 - 0x4F) (+0k5 code)
// #define USE_APDS9960 // [I2cDriver21] Enable APDS9960 Proximity Sensor (I2C address 0x39). Disables SHT and VEML6070 (+4k7 code)
// #define USE_MCP230xx // [I2cDriver22] Enable MCP23008/MCP23017 - Must define I2C Address in #define USE_MCP230xx_ADDR below - range 0x20 - 0x27 (+4k7 code)
2019-11-08 16:48:19 +00:00
// #define USE_MCP230xx_ADDR 0x20 // Enable MCP23008/MCP23017 I2C Address to use (Must be within range 0x20 through 0x26 - set according to your wired setup)
2018-08-27 07:12:33 +01:00
// #define USE_MCP230xx_OUTPUT // Enable MCP23008/MCP23017 OUTPUT support through sensor29 commands (+1k5 code)
2018-08-09 11:02:46 +01:00
// #define USE_MCP230xx_DISPLAYOUTPUT // Enable MCP23008/MCP23017 to display state of OUTPUT pins on Web UI (+0k2 code)
2019-11-11 10:29:15 +00:00
// #define USE_PCA9685 // [I2cDriver1] Enable PCA9685 I2C HW PWM Driver - Must define I2C Address in #define USE_PCA9685_ADDR below - range 0x40 - 0x47 (+1k4 code)
2018-10-26 16:13:17 +01:00
// #define USE_PCA9685_ADDR 0x40 // Enable PCA9685 I2C Address to use (Must be within range 0x40 through 0x47 - set according to your wired setup)
// #define USE_PCA9685_FREQ 50 // Define default PWM frequency in Hz to be used (must be within 24 to 1526) - If other value is used, it will rever to 50Hz
2019-11-11 10:29:15 +00:00
// #define USE_MPR121 // [I2cDriver23] Enable MPR121 controller (I2C addresses 0x5A, 0x5B, 0x5C and 0x5D) in input mode for touch buttons (+1k3 code)
// #define USE_CCS811 // [I2cDriver24] Enable CCS811 sensor (I2C address 0x5A) (+2k2 code)
// #define USE_MPU6050 // [I2cDriver25] Enable MPU6050 sensor (I2C address 0x68 AD0 low or 0x69 AD0 high) (+3K3 of code and 188 Bytes of RAM)
2018-12-15 14:55:51 +00:00
// #define USE_MPU6050_DMP // Enable in MPU6050 to use the DMP on the chip, should create better results (+8k6 of code)
2019-11-11 10:29:15 +00:00
// #define USE_DS3231 // [I2cDriver26] Enable DS3231 external RTC in case no Wifi is avaliable. See docs in the source file (+1k2 code)
2018-10-26 16:13:17 +01:00
// #define USE_RTC_ADDR 0x68 // Default I2C address 0x68
2019-11-11 10:29:15 +00:00
// #define USE_MGC3130 // [I2cDriver27] Enable MGC3130 Electric Field Effect Sensor (I2C address 0x42) (+2k7 code, 0k3 mem)
// #define USE_MAX44009 // [I2cDriver28] Enable MAX44009 Ambient Light sensor (I2C addresses 0x4A and 0x4B) (+0k8 code)
// #define USE_SCD30 // [I2cDriver29] Enable Sensiron SCd30 CO2 sensor (I2C address 0x61) (+3k3 code)
// #define USE_SPS30 // [I2cDriver30] Enable Sensiron SPS30 particle sensor (I2C address 0x69) (+1.7 code)
# define USE_ADE7953 // [I2cDriver7] Enable ADE7953 Energy monitor as used on Shelly 2.5 (I2C address 0x38) (+1k5)
// #define USE_VL53L0X // [I2cDriver31] Enable VL53L0x time of flight sensor (I2C address 0x29) (+4k code)
// #define USE_MLX90614 // [I2cDriver32] Enable MLX90614 ir temp sensor (I2C address 0x5a) (+0.6k code)
// #define USE_CHIRP // [I2cDriver33] Enable CHIRP soil moisture sensor (variable I2C address, default 0x20)
// #define USE_PAJ7620 // [I2cDriver34] Enable PAJ7620 gesture sensor (I2C address 0x73) (+2.5k code)
// #define USE_PCF8574 // [I2cDriver2] Enable PCF8574 I/O Expander (I2C addresses 0x20 - 0x26 and 0x39 - 0x3F) (+1k9 code)
// #define USE_HIH6 // [I2cDriver36] Enable Honeywell HIH Humidity and Temperature sensor (I2C address 0x27) (+0k6)
2019-12-17 21:29:16 +00:00
// #define USE_DHT12 // [I2cDriver41] Enable DHT12 humidity and temperature sensor (I2C address 0x5C) (+0k7 code)
2019-12-28 10:35:44 +00:00
// #define USE_DS1624 // [I2cDriver42] Enable DS1624, DS1621 temperature sensor (I2C addresses 0x48 - 0x4F) (+1k2 code)
2020-02-19 09:23:56 +00:00
// #define USE_AHT1x // [I2cDriver43] Enable AHT10/15 humidity and temperature sensor (I2C address 0x38) (+0k8 code)
2020-02-22 11:18:20 +00:00
// #define USE_WEMOS_MOTOR_V1 // [I2cDriver44] Enable Wemos motor driver V1 (I2C addresses 0x2D - 0x30) (+0k7 code)
// #define WEMOS_MOTOR_V1_ADDR 0x30 // Default I2C address 0x30
// #define WEMOS_MOTOR_V1_FREQ 1000 // Default frequency
2018-10-26 16:13:17 +01:00
// #define USE_DISPLAY // Add I2C Display Support (+2k code)
# define USE_DISPLAY_MODES1TO5 // Enable display mode 1 to 5 in addition to mode 0
2019-11-11 10:29:15 +00:00
# define USE_DISPLAY_LCD // [DisplayModel 1] [I2cDriver3] Enable Lcd display (I2C addresses 0x27 and 0x3F) (+6k code)
# define USE_DISPLAY_SSD1306 // [DisplayModel 2] [I2cDriver4] Enable SSD1306 Oled 128x64 display (I2C addresses 0x3C and 0x3D) (+16k code)
# define USE_DISPLAY_MATRIX // [DisplayModel 3] [I2cDriver5] Enable 8x8 Matrix display (I2C adresseses see below) (+11k code)
2018-10-26 16:13:17 +01:00
# define MTX_ADDRESS1 0x71 // [DisplayAddress1] I2C address of first 8x8 matrix module
# define MTX_ADDRESS2 0x74 // [DisplayAddress2] I2C address of second 8x8 matrix module
# define MTX_ADDRESS3 0x75 // [DisplayAddress3] I2C address of third 8x8 matrix module
# define MTX_ADDRESS4 0x72 // [DisplayAddress4] I2C address of fourth 8x8 matrix module
# define MTX_ADDRESS5 0x73 // [DisplayAddress5] I2C address of fifth 8x8 matrix module
# define MTX_ADDRESS6 0x76 // [DisplayAddress6] I2C address of sixth 8x8 matrix module
# define MTX_ADDRESS7 0x00 // [DisplayAddress7] I2C address of seventh 8x8 matrix module
# define MTX_ADDRESS8 0x00 // [DisplayAddress8] I2C address of eigth 8x8 matrix module
2019-11-11 10:29:15 +00:00
// #define USE_DISPLAY_SH1106 // [DisplayModel 7] [I2cDriver6] Enable SH1106 Oled 128x64 display (I2C addresses 0x3C and 0x3D)
2018-01-05 11:26:19 +00:00
# endif // USE_I2C
2018-04-05 14:26:16 +01:00
// -- SPI sensors ---------------------------------
2020-01-02 08:54:58 +00:00
//#define USE_SPI // Hardware SPI using GPIO12(MISO), GPIO13(MOSI) and GPIO14(CLK) in addition to two user selectable GPIOs(CS and DC)
2018-04-05 14:26:16 +01:00
# ifdef USE_SPI
2020-01-02 15:58:20 +00:00
// #define USE_NRF24 // Add SPI support for NRF24L01(+) (+2k6 code)
# ifdef USE_NRF24
# define USE_MIBLE // BLE-bridge for some Mijia-BLE-sensors (+4k7 code)
# else
# ifndef USE_DISPLAY
# define USE_DISPLAY // Add SPI Display support for 320x240 and 480x320 TFT
2020-01-01 18:09:20 +00:00
# endif
2020-01-02 15:58:20 +00:00
# define USE_DISPLAY_ILI9341 // [DisplayModel 4] Enable ILI9341 Tft 480x320 display (+19k code)
// #define USE_DISPLAY_EPAPER_29 // [DisplayModel 5] Enable e-paper 2.9 inch display (+19k code)
// #define USE_DISPLAY_EPAPER_42 // [DisplayModel 6] Enable e-paper 4.2 inch display
// #define USE_DISPLAY_ILI9488 // [DisplayModel 8] [I2cDriver38] (Touch)
// #define USE_DISPLAY_SSD1351 // [DisplayModel 9]
// #define USE_DISPLAY_RA8876 // [DisplayModel 10] [I2cDriver39] (Touch)
# endif // USE_NRF24
2018-04-05 14:26:16 +01:00
# endif // USE_SPI
2018-02-07 16:50:02 +00:00
// -- Serial sensors ------------------------------
2018-12-18 17:36:53 +00:00
# define USE_MHZ19 // Add support for MH-Z19 CO2 sensor (+2k code)
# define USE_SENSEAIR // Add support for SenseAir K30, K70 and S8 CO2 sensor (+2k3 code)
2017-12-27 13:10:55 +00:00
# define CO2_LOW 800 // Below this CO2 value show green light (needs PWM or WS2812 RG(B) led and enable with SetOption18 1)
# define CO2_HIGH 1200 // Above this CO2 value show red light (needs PWM or WS2812 RG(B) led and enable with SetOption18 1)
2018-12-18 17:36:53 +00:00
# define USE_PMS5003 // Add support for PMS5003 and PMS7003 particle concentration sensor (+1k3 code)
2019-10-16 11:10:48 +01:00
//#define PMS_MODEL_PMS3003 // Enable support of PMS3003 instead of PMS5003/PMS7003 (needs the USE_PMS5003 above)
2019-10-17 12:10:43 +01:00
# define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+1k5 code)
# define STARTING_OFFSET 30 // Turn on NovaSDS XX-seconds before tele_period is reached
2019-11-06 13:05:17 +00:00
//#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor (+1k4)
2018-03-20 13:31:11 +00:00
# define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+0k8 code)
2018-10-26 16:13:17 +01:00
//#define USE_MP3_PLAYER // Use of the DFPlayer Mini MP3 Player RB-DFR-562 commands: play, volume and stop
# define MP3_VOLUME 10 // Set the startup volume on init, the range can be 0..30(max)
2018-12-18 17:36:53 +00:00
//#define USE_AZ7798 // Add support for AZ-Instrument 7798 CO2 datalogger (+1k6 code)
2019-02-08 07:59:33 +00:00
//#define USE_PN532_HSU // Add support for PN532 using HSU (Serial) interface (+1k8 code, 140 bytes mem)
2019-02-08 17:26:02 +00:00
// #define USE_PN532_CAUSE_EVENTS // Cause event execution for PN532_UID= and PN532_DATA=[if defined] (+ 30 bytes code)
2019-02-08 07:59:33 +00:00
// #define USE_PN532_DATA_FUNCTION // Add sensor40 command support for erase, setting data block content (+1k7 code, 388 bytes mem)
// #define USE_PN532_DATA_RAW // Allow DATA block to be used by non-alpha-numberic data (+ 80 bytes code, 48 bytes ram)
2019-08-19 10:47:59 +01:00
//#define USE_RDM6300 // Add support for RDM6300 125kHz RFID Reader (+0k8)
2019-08-25 11:29:48 +01:00
//#define USE_IBEACON // Add support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
2020-02-07 09:50:06 +00:00
//#define USE_GPS // Add support for GPS and NTP Server for becoming Stratus 1 Time Source (+3k1 code, +132 bytes RAM)
// #define USE_FLOG // Add support for GPS logging in OTA's Flash (Experimental) (+2k9 code, +8 bytes RAM)
//#define USE_HM10 // Add support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
2018-12-18 17:36:53 +00:00
2019-10-15 18:49:33 +01:00
// -- Power monitoring sensors --------------------
2019-08-01 14:46:12 +01:00
# define USE_ENERGY_MARGIN_DETECTION // Add support for Energy Margin detection (+1k6 code)
# define USE_ENERGY_POWER_LIMIT // Add additional support for Energy Power Limit detection (+1k2 code)
2018-12-18 17:36:53 +00:00
# define USE_PZEM004T // Add support for PZEM004T Energy monitor (+2k code)
# define USE_PZEM_AC // Add support for PZEM014,016 Energy monitor (+1k1 code)
# define USE_PZEM_DC // Add support for PZEM003,017 Energy monitor (+1k1 code)
# define USE_MCP39F501 // Add support for MCP39F501 Energy monitor as used in Shelly 2 (+3k1 code)
2019-10-18 11:28:29 +01:00
//#define USE_SDM120 // Add support for Eastron SDM120-Modbus energy monitor (+1k1 code)
2019-09-10 14:14:51 +01:00
# define SDM120_SPEED 2400 // SDM120-Modbus RS485 serial speed (default: 2400 baud)
2019-10-18 11:28:29 +01:00
//#define USE_SDM630 // Add support for Eastron SDM630-Modbus energy monitor (+0k6 code)
2019-09-15 16:06:23 +01:00
# define SDM630_SPEED 9600 // SDM630-Modbus RS485 serial speed (default: 9600 baud)
2019-09-10 14:14:51 +01:00
//#define USE_DDS2382 // Add support for Hiking DDS2382 Modbus energy monitor (+0k6 code)
# define DDS2382_SPEED 9600 // Hiking DDS2382 Modbus RS485 serial speed (default: 9600 baud)
2019-10-03 13:18:04 +01:00
//#define USE_DDSU666 // Add support for Chint DDSU666 Modbus energy monitor (+0k6 code)
# define DDSU666_SPEED 9600 // Chint DDSU666 Modbus RS485 serial speed (default: 9600 baud)
2019-10-17 18:30:55 +01:00
//#define USE_SOLAX_X1 // Add support for Solax X1 series Modbus log info (+3k1 code)
2019-10-17 17:22:11 +01:00
# define SOLAXX1_SPEED 9600 // Solax X1 Modbus RS485 serial speed (default: 9600 baud)
# define SOLAXX1_PV2 // Solax X1 using second PV
2020-02-10 14:18:11 +00:00
//#define USE_LE01MR // Add support for F&F LE-01MR Modbus energy monitor (+1k code)
# define LE01MR_SPEED 9600 // LE-01MR modbus baudrate (default: 9600)
# define LE01MR_ADDR 1 // LE-01MR modbus address (default: 0x01)
2018-02-07 16:50:02 +00:00
// -- Low level interface devices -----------------
2019-06-16 16:03:41 +01:00
# define USE_DHT // Add support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor (1k6 code)
2019-07-28 23:36:22 +01:00
//#define USE_MAX31855 // Add support for MAX31855 K-Type thermocouple sensor using softSPI
2019-07-30 16:57:08 +01:00
//#define USE_MAX31865 // Add support for MAX31865 RTD sensors using softSPI
2019-07-29 16:44:49 +01:00
# define MAX31865_PTD_WIRES 2 // PTDs come in several flavors. Pick yours
# define MAX31865_PTD_RES 100 // Nominal PTD resistance at 0°C (100Ω for a PT100, 1000Ω for a PT1000, YMMV!)
# define MAX31865_REF_RES 430 // Reference resistor (Usually 430Ω for a PT100, 4300Ω for a PT1000)
2019-07-31 00:20:17 +01:00
# define MAX31865_PTD_BIAS 0 // To calibrate your not-so-good PTD
2019-07-29 16:44:49 +01:00
2019-08-30 19:41:01 +01:00
// -- IR Remote features - all protocols from IRremoteESP8266 --------------------------
// IR Full Protocols mode is activated through platform.io only.
2019-10-27 11:44:37 +00:00
// Either use 'default_envs = tasmota-ircustom' and disable some features here to keep code not too big
// or use 'default_envs = tasmota-ir' for a pre-packaged IR-dedicated firmware
// When using 'tasmota-ircustom' or 'tasmota-ir', parameters below
2019-08-30 19:41:01 +01:00
// (USE_IR_REMOTE, USE_IR_RECEIVE, USE_IR_HVAC...) are IGNORED.
//
// Code impact of IR full protocols is +81k code, 3k mem
// You can reduce this size by disabling some protocols in "lib/IRremoteESP8266.x.x.x/src/IRremoteESP8266.h"
// -- IR Remote features - subset of IR protocols --------------------------
2018-12-18 17:36:53 +00:00
# define USE_IR_REMOTE // Send IR remote commands using library IRremoteESP8266 and ArduinoJson (+4k3 code, 0k3 mem, 48 iram)
2019-07-21 15:03:20 +01:00
# define USE_IR_SEND_NEC // Support IRsend NEC protocol
# define USE_IR_SEND_RC5 // Support IRsend Philips RC5 protocol
# define USE_IR_SEND_RC6 // Support IRsend Philips RC6 protocol
2018-12-18 17:36:53 +00:00
# define USE_IR_RECEIVE // Support for IR receiver (+7k2 code, 264 iram)
2018-12-15 14:55:51 +00:00
# define IR_RCV_BUFFER_SIZE 100 // Max number of packets allowed in capture buffer (default 100 (*2 bytes ram))
# define IR_RCV_TIMEOUT 15 // Number of milli-Seconds of no-more-data before we consider a message ended (default 15)
2019-05-27 10:56:14 +01:00
# define IR_RCV_MIN_UNKNOWN_SIZE 6 // Set the smallest sized "UNKNOWN" message packets we actually care about (default 6, max 255)
2019-08-09 21:52:33 +01:00
2019-08-10 12:31:05 +01:00
// -- Zigbee interface ----------------------------
2020-01-25 16:42:53 +00:00
//#define USE_ZIGBEE // Enable serial communication with Zigbee CC2530 flashed with ZNP (+35k code, +3.2k mem)
2019-09-19 18:25:08 +01:00
# define USE_ZIGBEE_PANID 0x1A63 // arbitrary PAN ID for Zigbee network, must be unique in the home
2019-08-31 20:52:51 +01:00
# define USE_ZIGBEE_EXTPANID 0xCCCCCCCCCCCCCCCCL // arbitrary extended PAN ID
2019-09-19 18:25:08 +01:00
# define USE_ZIGBEE_CHANNEL 11 // Zigbee Channel (11-26)
2019-08-31 20:52:51 +01:00
# define USE_ZIGBEE_PRECFGKEY_L 0x0F0D0B0907050301L // note: changing requires to re-pair all devices
# define USE_ZIGBEE_PRECFGKEY_H 0x0D0C0A0806040200L // note: changing requires to re-pair all devices
# define USE_ZIGBEE_PERMIT_JOIN false // don't allow joining by default
2019-12-22 16:47:45 +00:00
# define USE_ZIGBEE_COALESCE_ATTR_TIMER 350 // timer to coalesce attribute values (in ms)
2019-08-09 21:52:33 +01:00
2019-10-15 19:00:57 +01:00
// -- Other sensors/drivers -----------------------
2017-02-14 13:27:08 +00:00
2018-12-18 17:36:53 +00:00
# define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code)
2018-04-20 13:31:09 +01:00
2018-08-18 17:11:22 +01:00
//#define USE_TM1638 // Add support for TM1638 switches copying Switch1 .. Switch8 (+1k code)
2018-12-18 17:36:53 +00:00
# define USE_HX711 // Add support for HX711 load cell (+1k5 code)
2018-10-26 16:13:17 +01:00
// #define USE_HX711_GUI // Add optional web GUI to HX711 as scale (+1k8 code)
2018-06-28 16:40:37 +01:00
2020-02-20 17:50:43 +00:00
// Select none or only one of the below defines
//#define USE_TX20_WIND_SENSOR // Add support for La Crosse TX20 anemometer (+1k3 code)
//#define USE_TX23_WIND_SENSOR // Add support for La Crosse TX23 anemometer (+1k4 code)
2018-10-26 16:13:17 +01:00
2019-07-10 16:46:46 +01:00
//#define USE_RC_SWITCH // Add support for RF transceiver using library RcSwitch (+2k7 code, 460 iram)
2018-10-26 16:13:17 +01:00
2018-12-15 14:55:51 +00:00
//#define USE_RF_SENSOR // Add support for RF sensor receiver (434MHz or 868MHz) (+0k8 code)
// #define USE_THEO_V2 // Add support for decoding Theo V2 sensors as documented on https://sidweb.nl using 434MHz RF sensor receiver (+1k4 code)
2018-12-16 13:28:33 +00:00
// #define USE_ALECTO_V2 // Add support for decoding Alecto V2 sensors like ACH2010, WS3000 and DKW2012 weather stations using 868MHz RF sensor receiver (+1k7 code)
2018-12-15 14:55:51 +00:00
2019-03-28 10:14:09 +00:00
//#define USE_HRE // Add support for Badger HR-E Water Meter (+1k4 code)
2019-10-15 19:49:02 +01:00
//#define USE_A4988_STEPPER // Add support for A4988/DRV8825 stepper-motor-driver-circuit (+10k5 code)
2019-03-28 10:14:09 +00:00
2019-10-26 22:11:35 +01:00
//#define USE_TASMOTA_SLAVE // Add support for Arduino Uno/Pro Mini via serial interface including flashing (+2k6 code, 64 mem)
2019-10-26 21:55:18 +01:00
# define USE_TASMOTA_SLAVE_FLASH_SPEED 57600 // Usually 57600 for 3.3V variants and 115200 for 5V variants
# define USE_TASMOTA_SLAVE_SERIAL_SPEED 57600 // Depends on the sketch that is running on the Uno/Pro Mini
2019-10-20 19:10:14 +01:00
2019-10-15 19:03:13 +01:00
// -- End of general directives -------------------
2018-06-24 16:50:42 +01:00
/*********************************************************************************************\
2019-08-08 14:17:39 +01:00
* Debug features
2018-06-24 16:50:42 +01:00
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2019-08-08 15:24:11 +01:00
//#define DEBUG_TASMOTA_CORE // Enable core debug messages
2019-08-08 14:17:39 +01:00
//#define DEBUG_TASMOTA_DRIVER // Enable driver debug messages
//#define DEBUG_TASMOTA_SENSOR // Enable sensor debug messages
2018-06-24 16:50:42 +01:00
//#define USE_DEBUG_DRIVER // Use xdrv_99_debug.ino providing commands CpuChk, CfgXor, CfgDump, CfgPeek and CfgPoke
2018-04-23 10:37:46 +01:00
/*********************************************************************************************\
2018-08-31 13:47:49 +01:00
* Optional firmware configurations
2019-10-27 11:04:08 +00:00
* Select none or just one for optional features and sensors as configured in tasmota_post . h
2018-08-31 13:47:49 +01:00
* See RELEASENOTES . md for selected features
2017-03-05 14:07:30 +00:00
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2019-12-17 14:13:47 +00:00
//#define FIRMWARE_LITE // Create tasmota-lite with no sensors
2019-10-27 11:44:37 +00:00
//#define FIRMWARE_SENSORS // Create tasmota-sensors with useful sensors enabled
//#define FIRMWARE_KNX_NO_EMULATION // Create tasmota-knx with KNX but without Emulation
//#define FIRMWARE_DISPLAYS // Create tasmota-display with display drivers enabled
//#define FIRMWARE_IR // Create tasmota-ir with IR full protocols activated, and many sensors disabled
//#define FIRMWARE_IR_CUSTOM // Create tasmota customizable with special marker to add all IR protocols
//#define FIRMWARE_MINIMAL // Create tasmota-minimal as intermediate firmware for OTA-MAGIC
2017-03-05 14:07:30 +00:00
2017-01-28 13:41:01 +00:00
/*********************************************************************************************\
* No user configurable items below
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2019-08-31 13:44:49 +01:00
# ifdef USE_CONFIG_OVERRIDE
# include "user_config_override.h" // Configuration overrides for my_user_config.h
# endif
2019-06-19 08:49:48 +01:00
# if defined(USE_DISCOVERY) && defined(USE_MQTT_AWS_IOT)
2019-06-05 10:44:52 +01:00
# error "Select either USE_DISCOVERY or USE_MQTT_AWS_IOT, mDNS takes too much code space and is not needed for AWS IoT"
# endif
2018-10-26 16:13:17 +01:00
# endif // _MY_USER_CONFIG_H_